<?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 Topic: Form submission in buddypress not working</title>
		<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working</link>
		<description>Gravity Support Forums Topic: Form submission in buddypress not working</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:45:18 +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/topic/form-submission-in-buddypress-not-working" rel="self" type="application/rss+xml" />

		<item>
			<title>Idealien on "Form submission in buddypress not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working#post-51225</link>
			<pubDate>Sat, 03 Mar 2012 18:17:31 +0000</pubDate>
			<dc:creator>Idealien</dc:creator>
			<guid isPermaLink="false">51225@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Fantastic find for this tricky problem. If you're using it as a plugin / class, the following call will also ensure that the modification only fires when buddyPress is active:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(function_exists(&#38;#39;bp_core_get_userid&#38;#39;)) {
	add_action( &#38;quot;init&#38;quot;, array(&#38;amp;$this, &#38;quot;bbg_switch_gf_hooks&#38;quot;), 99 );
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>sascha on "Form submission in buddypress not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working#post-46403</link>
			<pubDate>Sat, 14 Jan 2012 20:16:22 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46403@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi wollemi,&#60;/p&#62;
&#60;p&#62;thanks for posting your code right at the top! That will help me set up some extra navigation items. Just did not seem to work last time I tried and the BP skeleton component is a bit overkill I thought. Would you know why the hooks needs to be switched? Does that have any negativ effects further down the line?&#60;/p&#62;
&#60;p&#62;Is the wp hook totally redundant?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wollemi on "Form submission in buddypress not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working#post-46211</link>
			<pubDate>Thu, 12 Jan 2012 04:32:04 +0000</pubDate>
			<dc:creator>wollemi</dc:creator>
			<guid isPermaLink="false">46211@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok it works now! Here's the solution (plug it into &#34;functions.php&#34;):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function bbg_switch_gf_hooks() {
    remove_action(&#38;#39;wp&#38;#39;,  array(&#38;#39;RGForms&#38;#39;, &#38;#39;maybe_process_form&#38;#39;), 9);
    add_action( &#38;#39;bp_actions&#38;#39;, array( &#38;#39;RGForms&#38;#39;, &#38;#39;maybe_process_form&#38;#39; ), 1 );
}
add_action( &#38;#39;init&#38;#39;, &#38;#39;bbg_switch_gf_hooks&#38;#39;, 99 );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;.. for more details: &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/form-submission-buddypress&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/form-submission-buddypress&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wollemi on "Form submission in buddypress not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working#post-46209</link>
			<pubDate>Thu, 12 Jan 2012 04:01:13 +0000</pubDate>
			<dc:creator>wollemi</dc:creator>
			<guid isPermaLink="false">46209@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When I tried this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;echo do_shortcode(&#38;#39;[gravityform id=&#38;quot;1&#38;quot; name=&#38;quot;Write Blog&#38;quot; title=&#38;quot;false&#38;quot; description=&#38;quot;false&#38;quot; ajax=&#38;quot;false&#38;quot;]&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;instead of:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;gravity_form(1, false, false, false, &#38;#39;&#38;#39;, false);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;.. the same thing happens.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wollemi on "Form submission in buddypress not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working#post-46207</link>
			<pubDate>Thu, 12 Jan 2012 03:46:51 +0000</pubDate>
			<dc:creator>wollemi</dc:creator>
			<guid isPermaLink="false">46207@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Perhaps you could replicate my code on your machine and see what happens. All I did was to create a simple blog post form (with title and body), and tried embedding it in buddypress as described in my first post.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wollemi on "Form submission in buddypress not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working#post-46206</link>
			<pubDate>Thu, 12 Jan 2012 03:33:49 +0000</pubDate>
			<dc:creator>wollemi</dc:creator>
			<guid isPermaLink="false">46206@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It won't be able to come online if I can't fix this though. Is there a workaround? I just need it to show up inside a buddypress page template (with the headers, avatars, etc.).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Form submission in buddypress not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working#post-46204</link>
			<pubDate>Thu, 12 Jan 2012 03:13:15 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46204@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK.  When you have it online, we will be happy to take a look at it for you.  With AJAX turned on, it might have been a JavaScript conflict.  But with AJAX turned off, that should not be the case, and there is something else going on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wollemi on "Form submission in buddypress not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working#post-46202</link>
			<pubDate>Thu, 12 Jan 2012 03:10:10 +0000</pubDate>
			<dc:creator>wollemi</dc:creator>
			<guid isPermaLink="false">46202@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I tried it without AJAX as well but it still does not submit. The project is still in development and is not yet online.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Form submission in buddypress not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working#post-46201</link>
			<pubDate>Thu, 12 Jan 2012 03:07:22 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46201@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you try it without AJAX and see if it submits then?&#60;/p&#62;
&#60;p&#62;Can you share a link to your form page, if we will be able to submit it?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wollemi on "Form submission in buddypress not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-submission-in-buddypress-not-working#post-46199</link>
			<pubDate>Thu, 12 Jan 2012 02:54:04 +0000</pubDate>
			<dc:creator>wollemi</dc:creator>
			<guid isPermaLink="false">46199@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am manually inserting a write blog form into a page in buddypress: &#34;../members/lyradmil/write&#34;. My form displays fine but hitting the submit button does not submit the form. No entries are recorded. The page simply &#34;refreshes&#34; and nothing else happens. I have also included: &#38;lt;?php gravity_form_enqueue_scripts(1, true); ?&#38;gt; in the &#34;header.php&#34; file but to no avail.&#60;/p&#62;
&#60;p&#62;This is my code in &#34;functions.php&#34; to display the form:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;// Write blog
		bp_core_new_nav_item(
			array(
				&#38;#39;name&#38;#39; =&#38;gt; __( &#38;#39;Write Blog&#38;#39;, &#38;#39;buddypress&#38;#39; ),
				&#38;#39;slug&#38;#39; =&#38;gt; &#38;#39;write&#38;#39;,
				&#38;#39;position&#38;#39; =&#38;gt; 50,
				&#38;#39;show_for_displayed_user&#38;#39; =&#38;gt; false,
				&#38;#39;screen_function&#38;#39; =&#38;gt; &#38;#39;write_blog&#38;#39;,
				&#38;#39;item_css_id&#38;#39; =&#38;gt; &#38;#39;bp_special_nav&#38;#39;,
				&#38;#39;default_subnav_slug&#38;#39; =&#38;gt; &#38;#39;write&#38;#39;
			)
		);
// Write blog (subnav)
		bp_core_new_subnav_item(
			array(
				&#38;#39;name&#38;#39; =&#38;gt; __( &#38;#39;Write blog&#38;#39; ),
				&#38;#39;slug&#38;#39; =&#38;gt; &#38;#39;write&#38;#39;,
				&#38;#39;parent_url&#38;#39; =&#38;gt; $bp-&#38;gt;loggedin_user-&#38;gt;domain . $bp-&#38;gt;slug,
				&#38;#39;parent_slug&#38;#39; =&#38;gt; &#38;#39;write&#38;#39;,
				&#38;#39;screen_function&#38;#39; =&#38;gt; &#38;#39;write_blog&#38;#39;,
				&#38;#39;position&#38;#39; =&#38;gt; 10,
				&#38;#39;item_css_id&#38;#39; =&#38;gt; &#38;#39;bp_special_subnav&#38;#39;
			)
		);
/* Create write blog page */
		function write_blog() {
			//add title and content here – last is to call the members plugin.php template
			add_action( &#38;#39;bp_template_title&#38;#39;, &#38;#39;write_blog_title&#38;#39; );
			add_action( &#38;#39;bp_template_content&#38;#39;, &#38;#39;write_blog_content&#38;#39; );
			bp_core_load_template( apply_filters( &#38;#39;bp_core_template_plugin&#38;#39;, &#38;#39;members/single/plugins&#38;#39; ) );
		}

		/* Link title for Write blog page */
		function write_blog_title() {
			echo &#38;#39;Start writing!&#38;#39;;
		}

		/* Add content to the Invite page */
		function write_blog_content() {
			//add_filter( &#38;#39;bp_get_activity_content_body&#38;#39;, &#38;#39;do_shortcode&#38;#39; );
			echo do_shortcode(&#38;#39;[gravityform id=1 title=false description=false ajax=true]&#38;#39;);
			//gravity_form(1, false, false, false, &#38;#39;&#38;#39;, true);
		}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
