<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums User Favorites: insivia</title>
		<link><a href='https://legacy.forums.gravityhelp.com/profile/insivia'>insivia</a></link>
		<description>Gravity Support Forums User Favorites: insivia</description>
		<language>en-US</language>
		<pubDate>Fri, 17 Apr 2026 04:56:45 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Dana Cobb on "Display form via ajax request and admin_ajax.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-form-via-ajax-request-and-admin_ajaxphp#post-48487</link>
			<pubDate>Mon, 06 Feb 2012 17:20:00 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">48487@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, insivia,&#60;/p&#62;
&#60;p&#62;We will take a look at this and see if it is something we want to include in a future release.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>insivia on "Display form via ajax request and admin_ajax.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-form-via-ajax-request-and-admin_ajaxphp#post-47216</link>
			<pubDate>Tue, 24 Jan 2012 12:08:21 +0000</pubDate>
			<dc:creator>insivia</dc:creator>
			<guid isPermaLink="false">47216@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Situation: There is a custom post type that is calling the gravity forms shortcode, &#60;code&#62;[gravityform id=&#38;quot;1&#38;quot; name=&#38;quot;Event Registration Default&#38;quot; title=&#38;quot;false&#38;quot; description=&#38;quot;false&#38;quot;]&#60;/code&#62;, to display a form on the page. This custom post is being called by an ajax request to admin_ajax.php and dynamically replacing a portion of the current page.&#60;/p&#62;
&#60;p&#62;Problem: Because admin_ajax.php is the actual file that is requesting the content of the post and running the shortcode for the form via &#60;code&#62;$content = apply_filters(&#38;#39;the_content&#38;#39;, get_the_content());&#60;/code&#62;, the form is being displayed in admin more when placed on the page. Form is disabled, admin icons and markup are being shown.&#60;/p&#62;
&#60;p&#62;Temporary Solution: adjust gravityforms.php to check if the requesting page is admin_ajax.php and set &#34;IS_ADMIN&#34; = false.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!defined(&#38;quot;IS_ADMIN&#38;quot;) &#38;amp;&#38;amp; RG_CURRENT_PAGE != &#38;#39;admin-ajax.php&#38;#39;)
{
  define(&#38;quot;IS_ADMIN&#38;quot;,  is_admin());
}
else if (RG_CURRENT_PAGE === &#38;#39;admin-ajax.php&#38;#39;)
{
  define(&#38;quot;IS_ADMIN&#38;quot;,  false);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;i would like a better solution so that when upgrading gravityforms plugin I do not need to remember to make this edit within the plugin.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
