<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Limiting message length in comments - Advanced Poll"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Limiting message length in comments - Advanced Poll"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Limiting message length in comments - Advanced Poll</title>
				<description><![CDATA[ I have searched for an answer but wave not found one. How can I set a maximum length for a comment in advnced poll.  I know some inputs to a form take a maxlength=x but the textarea does not. Is there some PHP change I can do? Is there one built in? Limiting message length would help with spam etc.<br /> <br /> thanks<br /> Frank]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5635/20485.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5635/20485.php</link>
				<pubDate><![CDATA[Wed, 17 May 2006 21:02:00]]> GMT</pubDate>
				<author><![CDATA[ fmon]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I Think I have found an answer here, a js for the form that limits input to a textarea<br /> <br /> <a class="snap_shots" href="http://javascript.internet.com/page-details/limit-characters-and-lines.html#source" target="_blank" rel="nofollow">http://javascript.internet.com/page-details/limit-characters-and-lines.html#source</a>]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5635/20491.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5635/20491.php</link>
				<pubDate><![CDATA[Thu, 18 May 2006 23:16:46]]> GMT</pubDate>
				<author><![CDATA[ fmon]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ This is better<br /> <br /> <a class="snap_shots" href="http://javascript.internet.com/forms/limit-textarea.html#source" target="_blank" rel="nofollow">http://javascript.internet.com/forms/limit-textarea.html#source</a>]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5635/20492.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5635/20492.php</link>
				<pubDate><![CDATA[Thu, 18 May 2006 23:56:09]]> GMT</pubDate>
				<author><![CDATA[ fmon]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ any idea where this script should be pasted?<br /> <br /> comment.php?<br /> <br /> thanks]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5635/20752.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5635/20752.php</link>
				<pubDate><![CDATA[Tue, 13 Jun 2006 21:09:04]]> GMT</pubDate>
				<author><![CDATA[ justme]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Put it at the top of form.php]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5635/20753.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5635/20753.php</link>
				<pubDate><![CDATA[Tue, 13 Jun 2006 22:28:32]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I did the following, in the template for comments,  i didn't bother with a counter, just a reminder to limit maximum lenght. In the textarea I put:<br /> [code]  &lt;textarea name=&quot;message&quot; cols=&quot;19&quot; wrap=&quot;VIRTUAL&quot; rows=&quot;6&quot; class=&quot;textarea&quot;  onkeypress=&quot;this.value=this.value.substring&#40;0,1000&#41;;&quot; <br /> onmouseout=&quot;this.value=this.value.substring&#40;0,1000&#41;;&quot;  <br /> onblur=&quot;this.value=this.value.substring&#40;0,1000&#41;;&quot;&gt;[/code] <br /> <br /> You could put the stuff in a function and provide a counter as in the examples in the links above. I tried to put  the substring function in an "onsubmit" in the form tag but it did not work, anyone know why?<br /> <br />  You also need to do something on the server side to prevent hacking around the html, I did this in comments.php after name and message are checked for input.<br /> <br /> [code]else &#123;<br />             $HTTP_POST_VARS&#91;'message'&#93; = substr&#40;$HTTP_POST_VARS&#91;'message'&#93;,0,1000&#41;; // added to limit length<br />             $my_comment-&gt;add_comment&#40;$id&#41;;<br />             echo $my_comment-&gt;print_message&#40;&quot;Your message has been sent!&quot;,1&#41;;[/code] <br /> <br /> I am limiting message length to 1000 characters. So far seems to work well.[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5635/20774.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5635/20774.php</link>
				<pubDate><![CDATA[Fri, 16 Jun 2006 05:19:27]]> GMT</pubDate>
				<author><![CDATA[ fmon]]></author>
			</item>
	</channel>
</rss>