<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "requiring fields in ADV Guestbook 2.2"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "requiring fields in ADV Guestbook 2.2"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>requiring fields in ADV Guestbook 2.2</title>
				<description><![CDATA[ Hey guys can you help me out here? I am having problems requiring the location field in guestbook 2.2.  This code is from the form.php file .<br /> <br /> The funny thing is that I make these changes on the script and instead of it using the message for requiring I had for the first name field. It is still using the one from the lang/english.php file. So it's not recoginizing changes from either one. <br /> <br /> Would there be another file that I am forgeting?<br /> <br /> Thanks Jas<br /> <br /> <br /> [code]<br /> <br /> &lt;script language=&quot;JavaScript&quot;&gt;<br /> &lt;!--<br /> var flag=0;<br /> function openCentered&#40;theURL,winName,winWidth,winHeight,features&#41; &#123;<br />  var w = &#40;screen.width - winWidth&#41;/2;<br />  var h = &#40;screen.height - winHeight&#41;/2 - 30;<br />  features = features+',width='+winWidth+',height='+winHeight+',top='+h+',left='+w;<br />  window.open&#40;theURL,winName,features&#41;;<br /> &#125;<br /> function checkForm&#40;&#41; &#123;<br />  document.book.name.value=trim&#40;document.book.name.value&#41;;<br />  document.book.location.value=trim&#40;document.book.location.value&#41;;<br />  document.book.comment.value=trim&#40;document.book.comment.value&#41;;<br />  if&#40;document.book.name.value == &quot;&quot;&#41; &#123;<br />    alert&#40;&quot;Please add your first name.&quot;&#41;;<br />    document.book.name.focus&#40;&#41;;<br />    return false;<br />  &#125;<br />  if&#40;document.book.location.value == &quot;&quot;&#41; &#123;<br />    alert&#40;&quot;Please add your location.&quot;&#41;;<br />    document.book.location.focus&#40;&#41;;<br />    return false;<br />  &#125;<br /> <br />  if&#40;document.book.comment.value == &quot;&quot;&#41; &#123;<br />    alert&#40;&quot;$LANG&#91;ErrorPost2&#93;&quot;&#41;;<br />    document.book.comment.focus&#40;&#41;;<br />    return false;<br />  &#125;<br /> <br /> <br />  if&#40;document.book.comment.value.length&lt;$VARS&#91;min_text&#93; || document.book.comment.value.length&gt;$VARS&#91;max_text&#93;&#41; &#123;<br />    alert&#40;&quot;$LANG&#91;ErrorPost3&#93;&quot;&#41;;<br />    document.book.comment.focus&#40;&#41;;<br />    return false;<br />  &#125;<br />  flag=1;<br />  return true;<br /> &#125;<br /> function trim&#40;value&#41; &#123;<br />  startpos=0;<br />  while&#40;&#40;value.charAt&#40;startpos&#41;==&quot; &quot;&#41;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;&#40;startpos&lt;value.length&#41;&#41; &#123;<br />    startpos++;<br />  &#125;<br />  if&#40;startpos==value.length&#41; &#123;<br />    value=&quot;&quot;;<br />  &#125; else &#123;<br />    value=value.substring&#40;startpos,value.length&#41;;<br />    endpos=&#40;value.length&#41;-1;<br />    while&#40;value.charAt&#40;endpos&#41;==&quot; &quot;&#41; &#123;<br />      endpos--;<br />    &#125;<br />    value=value.substring&#40;0,endpos+1&#41;;<br />  &#125;<br />  return&#40;value&#41;;<br /> &#125;<br /> //--&gt;<br /> &lt;/script&gt;<br /> &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; align=&quot;center&quot; width=&quot;800&quot;&gt;<br />   &lt;tr&gt;<br />    &lt;td height=&quot;45&quot; align=&quot;center&quot;&gt;&lt;b&gt;&lt;font size=&quot;4&quot; face=&quot;$VARS&#91;font_face&#93;&quot; color=&quot;02566f&quot;&gt;Post A Trade&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;<br />    &lt;td height=&quot;45&quot;&gt; &lt;/td&gt;<br />  &lt;/tr&gt;<br />  &lt;tr&gt;<br />    &lt;td valign=&quot;bottom&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;arial&quot;&gt;Post your hunting or fishing trade with this form. Explain in detail what you have to offer, and what would you like in exchange for your offer. At least one side of the trade must be somehow related to fishing or hunting.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;<br /> <br /> <br />    &lt;tr&gt;&lt;td  align=&quot;left&quot; valign=&quot;bottom&quot; class=&quot;font2&quot;&gt;&lt;br&gt;&lt;b&gt;&lt;img src=&quot;img/return.gif&quot; width=&quot;10&quot; height=&quot;10&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;<br />      &lt;a href=&quot;index.php&quot;&gt;Back to the Trade Listings&lt;/a&gt; | &lt;img src=&quot;img/lock.gif&quot; width=&quot;9&quot; height=&quot;11&quot;&gt; &lt;a href=&quot;admin.php&quot;&gt;$LANG&#91;BookMess5&#93;&lt;/a&gt;&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;<br />  &lt;/tr&gt;<br /> &lt;/table&gt;<br /> &lt;form method=&quot;post&quot; action=&quot;$SELF&quot; name=&quot;book&quot; enctype=&quot;multipart/form-data&quot; onsubmit=&quot;return checkForm&#40;&#41;&quot;&gt;<br /> &lt;table border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;4&quot; width=&quot;800&quot; align=&quot;center&quot; bgcolor=&quot;$VARS&#91;tb_bg_color&#93;&quot;&gt;<br />   &lt;tr&gt;<br />     &lt;td colspan=&quot;2&quot; bgcolor=&quot;$VARS&#91;tb_hdr_color&#93;&quot;&gt;&lt;b&gt;&lt;font size=&quot;2&quot; face=&quot;$VARS&#91;font_face&#93;&quot; color=&quot;$VARS&#91;tb_text&#93;&quot;&gt;Post your trade&#58;&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;<br />   &lt;/tr&gt;<br />   &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;&lt;img src=&quot;img/user.gif&quot; width=&quot;16&quot; height=&quot;15&quot;&gt;First Name&#58;&lt;/td&gt;<br />     &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;name&quot; size=&quot;42&quot; maxlength=&quot;30&quot;&gt;&lt;/td&gt;<br />   &lt;/tr&gt;<br /> &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;&lt;img src=&quot;img/user.gif&quot; width=&quot;16&quot; height=&quot;15&quot;&gt;Last Name&#58;&lt;/td&gt;<br />     &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;location&quot; size=&quot;42&quot; maxlength=&quot;30&quot;&gt;&lt;/td&gt;<br />   &lt;/tr&gt;<br /> <br />   &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;&lt;img src=&quot;img/email.gif&quot; width=&quot;15&quot; height=&quot;15&quot;&gt; $LANG&#91;FormEmail&#93;&#58;&lt;/td&gt;<br />     &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; size=&quot;42&quot; maxlength=&quot;30&quot;&gt;&lt;/td&gt;<br />   &lt;/tr&gt;<br /> <br /> <br /> $OPTIONAL<br /> <br />   &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot; valign=&quot;top&quot; class=&quot;font1&quot;&gt;Trade Description&#58;<br />     &lt;br&gt;&lt;br&gt;&lt;div align=&quot;left&quot; class=&quot;font2&quot;&gt;$HTML_CODE&lt;br&gt;$SMILE_CODE&lt;br&gt;$AG_CODE&lt;br&gt;&lt;br&gt;<br />      &lt;a href=&quot;javascript&#58;openCentered&#40;'$LANG_CODES','codes','640','450','scrollbars=yes'&#41;&quot;&gt;$LANG&#91;FormMess4&#93;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;<br />     &lt;td bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;&lt;textarea name=&quot;comment&quot; cols=&quot;41&quot; rows=&quot;10&quot; wrap=&quot;VIRTUAL&quot;&gt;&lt;/text&gt;&lt;br&gt;<br />     &lt;/td&gt;<br />   &lt;/tr&gt;<br />   &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot;&gt; &lt;/td&gt;<br />     &lt;td&gt;<br />       &lt;input type=&quot;submit&quot; name=&quot;gb_action&quot; value=&quot;$LANG&#91;FormSubmit&#93;&quot; class=&quot;input&quot; onclick=&quot;if&#40;flag==1&#41; return false;&quot;&gt;<br /> <br /> <br />       &lt;input type=&quot;reset&quot; value=&quot;$LANG&#91;FormReset&#93;&quot; class=&quot;input&quot;&gt;<br />     &lt;/td&gt;<br />   &lt;/tr&gt;<br /> &lt;/table&gt;<br /> &lt;/form&gt;<br /> <br /> [/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2690/7116.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2690/7116.php</link>
				<pubDate><![CDATA[Tue, 20 Jan 2004 06:23:52]]> GMT</pubDate>
				<author><![CDATA[ aerojaz]]></author>
			</item>
	</channel>
</rss>