<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
		<link>https://punbb.informer.com/forums/topic/11853/how-can-i-limit-the-amount-of-emoticonssmilies-that-can-be-posted-in/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/11853/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How can I limit the amount of emoticons(smilies) that can be posted in.]]></description>
		<lastBuildDate>Sat, 03 Jun 2006 09:47:29 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69949/#p69949</link>
			<description><![CDATA[<p>Nice work smarty and thank you viper for asking <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (FhdQa)]]></author>
			<pubDate>Sat, 03 Jun 2006 09:47:29 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69949/#p69949</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69935/#p69935</link>
			<description><![CDATA[<p>Awesome! Thank you SO much for taking the time to help me!</p><p><img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (viperjosh)]]></author>
			<pubDate>Sat, 03 Jun 2006 01:19:59 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69935/#p69935</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69933/#p69933</link>
			<description><![CDATA[<p>Because I&#039;m being stupid <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br /></p><div class="codebox"><pre><code>function check_smilies($text)
{
    global $smiley_text;

    $text = &#039; &#039;.$text.&#039; &#039;;

    $num_smilies = count($smiley_text);
        
    $num_message_smilies = 0;

    for ($i = 0; $i &lt; $num_smilies; ++$i)
    {
        $num_message_smilies = $num_message_smilies + substr_count($text, $smiley_text[$i]);
    }
    
    return $num_message_smilies;
}</code></pre></div><p>Try that</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sat, 03 Jun 2006 01:12:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69933/#p69933</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69931/#p69931</link>
			<description><![CDATA[<p>Hm. Nope. Same thing.</p><p><img src="https://punbb.informer.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (viperjosh)]]></author>
			<pubDate>Sat, 03 Jun 2006 01:07:51 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69931/#p69931</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69930/#p69930</link>
			<description><![CDATA[<p>Aha, I realized that what I was doing required &gt;= 5.1.0 <img src="https://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Edit: OK, new function<br /></p><div class="codebox"><pre><code>function check_smilies($text)
{
    global $smiley_text;

    $text = &#039; &#039;.$text.&#039; &#039;;

    $num_smilies = count($smiley_text);
        
    $num_message_smilies = 0;

    for ($i = 0; $i &lt; $num_smilies; ++$i)
    {
        $num_message_smilies = $num_message_smilies + substr_count($smiley_text[$i]);
    }
    
    return $num_message_smilies;
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sat, 03 Jun 2006 00:50:34 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69930/#p69930</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69929/#p69929</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>You added the function in the correct place (at the end of parser.php, outside of anything else)?<br />You added the edits to post.php and edit.php in the right place?</p><p>What version of PHP are you using?</p></blockquote></div><p>Yep, everything added in correct locations.</p><p>I&#039;m running 4.4.2</p>]]></description>
			<author><![CDATA[null@example.com (viperjosh)]]></author>
			<pubDate>Sat, 03 Jun 2006 00:47:28 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69929/#p69929</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69928/#p69928</link>
			<description><![CDATA[<p>You added the function in the correct place (at the end of parser.php, outside of anything else)?<br />You added the edits to post.php and edit.php in the right place?</p><p>What version of PHP are you using?</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sat, 03 Jun 2006 00:37:07 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69928/#p69928</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69927/#p69927</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><div class="quotebox"><cite>viperjosh wrote:</cite><blockquote><div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>Can you email me a copy of your parser.php (smartys@gmail.com)</p></blockquote></div><p>on its way <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>The copy you sent me doesn&#039;t have the new function in it <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p></blockquote></div><p>Yeah, I took it out after the code wasn&#039;t working - remember it was giving the error if you tried to use a registered username</p>]]></description>
			<author><![CDATA[null@example.com (viperjosh)]]></author>
			<pubDate>Sat, 03 Jun 2006 00:18:14 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69927/#p69927</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69926/#p69926</link>
			<description><![CDATA[<div class="quotebox"><cite>viperjosh wrote:</cite><blockquote><div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>Can you email me a copy of your parser.php (smartys@gmail.com)</p></blockquote></div><p>on its way <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>The copy you sent me doesn&#039;t have the new function in it <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sat, 03 Jun 2006 00:09:30 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69926/#p69926</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69925/#p69925</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>Can you email me a copy of your parser.php (smartys@gmail.com)</p></blockquote></div><p>on its way <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (viperjosh)]]></author>
			<pubDate>Sat, 03 Jun 2006 00:07:10 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69925/#p69925</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69924/#p69924</link>
			<description><![CDATA[<p>Can you email me a copy of your parser.php (smartys@gmail.com)</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sat, 03 Jun 2006 00:02:33 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69924/#p69924</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69923/#p69923</link>
			<description><![CDATA[<p>Nope. Re entering the code did nothing. Also, I did see that error when trying to use a registered username, this was after entering your code.</p>]]></description>
			<author><![CDATA[null@example.com (viperjosh)]]></author>
			<pubDate>Fri, 02 Jun 2006 23:57:18 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69923/#p69923</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69922/#p69922</link>
			<description><![CDATA[<p>Hmm.. I restored the code back to original. I&#039;ll try to re-enter it and see what happens.</p>]]></description>
			<author><![CDATA[null@example.com (viperjosh)]]></author>
			<pubDate>Fri, 02 Jun 2006 23:52:32 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69922/#p69922</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69921/#p69921</link>
			<description><![CDATA[<div class="quotebox"><cite>viperjosh wrote:</cite><blockquote><div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>I&#039;m getting a bunch of errors like this<br />Warning: Wrong parameter count for preg_replace() in /home/.ester/million1/ffc.fcstuff.com/include/parser.php on line 922</p></blockquote></div><p>Hm. I didn&#039;t get those when I tested...</p></blockquote></div><p>I got them because I entered a username that was already taken: you don&#039;t see them when you post normally because you redirect away from the page after posting</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Fri, 02 Jun 2006 23:49:59 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69921/#p69921</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I limit the amount of emoticons(smilies) that can be posted in]]></title>
			<link>https://punbb.informer.com/forums/post/69920/#p69920</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>I&#039;m getting a bunch of errors like this<br />Warning: Wrong parameter count for preg_replace() in /home/.ester/million1/ffc.fcstuff.com/include/parser.php on line 922</p></blockquote></div><p>Hm. I didn&#039;t get those when I tested...</p>]]></description>
			<author><![CDATA[null@example.com (viperjosh)]]></author>
			<pubDate>Fri, 02 Jun 2006 23:46:15 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69920/#p69920</guid>
		</item>
	</channel>
</rss>
