<?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: Profanity filter possible on post form?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/profanity-filter-possible-on-post-form</link>
		<description>Gravity Support Forums Topic: Profanity filter possible on post form?</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 10:46:17 +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/profanity-filter-possible-on-post-form" rel="self" type="application/rss+xml" />

		<item>
			<title>eCurtis on "Profanity filter possible on post form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/profanity-filter-possible-on-post-form#post-346280</link>
			<pubDate>Wed, 26 Jun 2013 16:08:35 +0000</pubDate>
			<dc:creator>eCurtis</dc:creator>
			<guid isPermaLink="false">346280@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We managed to get it done with gform_confirmation.&#60;/p&#62;
&#60;p&#62;Check it out here (until late July 2013 when contest ends)&#60;br /&#62;
&#60;a href=&#34;http://skypestaytogether.com/contest-entry/&#34; rel=&#34;nofollow&#34;&#62;http://skypestaytogether.com/contest-entry/&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_confirmation&#38;quot;, &#38;quot;custom_confirmation&#38;quot;, 10, 4);
function custom_confirmation($confirmation, $form, $lead, $ajax){
	$gfe = $lead[&#38;#39;id&#38;#39;];
	$storyTitle=$lead[&#38;#39;4&#38;#39;];
	$storyBody=$lead[&#38;#39;2&#38;#39;];

	$body = $storyBody.&#38;quot; &#38;quot;.$storyTitle;
	if (($form[&#38;quot;id&#38;quot;] == &#38;quot;3&#38;quot;)&#124;&#124; ($form[&#38;quot;id&#38;quot;] == &#38;quot;5&#38;quot;)){
		if (containsProfanity($body)){
			$confirmation = array(&#38;#39;redirect&#38;#39; =&#38;gt; home_url().&#38;#39;/thank-you&#38;#39;);
			changePostToDraft($lead);
			$confirmation = array(&#38;#39;redirect&#38;#39; =&#38;gt; home_url().&#38;#39;/review-entry/?e=&#38;#39;.$gfe);
		} else {
		$confirmation = array(&#38;#39;redirect&#38;#39; =&#38;gt; home_url().&#38;#39;/thank-you&#38;#39;);
		}
		return $confirmation;
	}
}

function containsProfanity($text){
//our check went here
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Profanity filter possible on post form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/profanity-filter-possible-on-post-form#post-323113</link>
			<pubDate>Fri, 14 Jun 2013 10:56:17 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">323113@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So you want it to be a draft if the post trips a profanity filter? This would require customization. You would want to use the post_submission_filter, check all the submitted content for bad words, and then change it to draft if it fails the check. It seems like it could be a bit intense if the post body is long, but it is possible.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eCurtis on "Profanity filter possible on post form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/profanity-filter-possible-on-post-form#post-321565</link>
			<pubDate>Thu, 13 Jun 2013 20:17:22 +0000</pubDate>
			<dc:creator>eCurtis</dc:creator>
			<guid isPermaLink="false">321565@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a form that takes user input and makes a post that is visible right away (no moderation,  I suggested they not do this). However they would like to know if a profanity filter is possible so that it profanity is detected the post is kept but not published, with an email getting fired off.&#60;/p&#62;
&#60;p&#62;Is this possible? What hooks would you suggest if so?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
