<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Need to add fields to the guest book, howto?"]]></title>
		<link>https://proxy2.de/forum/posts/list/6.php</link>
		<description><![CDATA[Latest messages posted in the topic "Need to add fields to the guest book, howto?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Need to add fields to the guest book, howto?</title>
				<description><![CDATA[ Hi,<br /> <br /> Love the guest book.<br /> <br /> Although i need the ability to add a few fields specificaly motorcycle Make/Model/year, years experience, and a few others.<br /> <br /> I also want to replace AIM and ICQ with Hotmail account.<br /> <br /> Is this possible and how do I do this?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5538/20223.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5538/20223.php</link>
				<pubDate><![CDATA[Mon, 17 Apr 2006 17:29:51]]> GMT</pubDate>
				<author><![CDATA[ npereira]]></author>
			</item>
			<item>
				<title>Me too.</title>
				<description><![CDATA[ I want to add fields as well. I'm a novice at this and don't know how to do anything to the script. I can only do little things like change background color with html code.<br /> <br /> I'd also like to change the aim and icq to something else.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5538/20507.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5538/20507.php</link>
				<pubDate><![CDATA[Mon, 22 May 2006 21:55:37]]> GMT</pubDate>
				<author><![CDATA[ yea]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I made this tutorial 2 years ago to add the extra fields<br /> I know it works, the only problem at the moment is that when you preview the entry the extra field isn’t written away.<br /> <br /> I don’t have any time at the moment and I stopped support for the guestbook.<br /> So I never looked to fix this problem<br /> <br /> <br /> To use it:<br /> <br /> 1.   Import the table (with phpMyadmin).<br /> 2.   Change “extra1” and “extra field:” with the name you want, “extra1 is the database name and “extra field:” is what the guestbook shows the guests.<br /> 3.   Replace “Your_picture.gif"” with the image you want to see.<br /> 4.   Just follow the instructions.<br /> <br /> <br /> <br /> Import (with phpMyadmin) this table into your database:<br /> <br /> [code]# MySQL dump 8.16<br /> #<br /> # Host&#58; localhost    Database&#58; gb23<br /> #--------------------------------------------------------<br /> # Server version   3.23.42<br /> <br /> #<br /> # alter Table structure for table 'Extra Field'<br /> #<br /> <br /> ALTER TABLE `book_data` ADD `extra1` varchar&#40;70&#41; NOT NULL default '';  <br /> ALTER TABLE `book_private` ADD `extra1` varchar&#40;70&#41; NOT NULL default '';  [/code] <br /> <br /> <br /> Open index.php<br /> <br /> Find:<br /> [code]$gb_post-&gt;location = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_location&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_location&quot;&#93; &#58; '';[/code]<br /> <br /> Add  after:<br /> [code]$gb_post-&gt;extra1 = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_ extra1&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_ extra1&quot;&#93; &#58; '';[/code]<br /> <br /> <br /> <br /> Open addentry.php<br /> <br /> Find:<br /> [code]$gb_post-&gt;location = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_location&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_location&quot;&#93; &#58; '';[/code]<br /> <br /> Add  after:<br /> [code]$gb_post-&gt;extra1 = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_extra1&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_extra1&quot;&#93; &#58; '';[/code]<br /> <br /> <br /> <br /> Open templates/entry.php<br /> <br /> Find:<br /> [code]     &lt;tr&gt;<br />        &lt;td colspan=&quot;2&quot; class=&quot;font1&quot;&gt;$LANG&#91;FormLoc&#93;&#58;&amp;nbsp;$row&#91;location&#93;&lt;/td&gt;<br />      &lt;/tr&gt;[/code]<br /> <br /> Add after:<br /> [code]     &lt;tr&gt;<br />        &lt;td colspan=&quot;2&quot; class=&quot;font2&quot;&gt;Extra Field 1&#58;&amp;nbsp;$row&#91;extra1&#93;&lt;/td&gt;<br />      &lt;/tr&gt;[/code]<br /> <br /> <br /> Open templates/form.php<br /> <br /> Find:<br /> [code]  &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;$GB_PG&#91;base_url&#93;/img/location.gif&quot; width=&quot;16&quot; height=&quot;16&quot;&gt; $LANG&#91;FormLoc&#93;&#58;&lt;/td&gt;<br />     &lt;td&gt;&lt;input class=inputbox type=&quot;text&quot; name=&quot;gb_location&quot; size=&quot;42&quot; maxlength=&quot;30&quot;&gt;&lt;/td&gt;<br />    &lt;/tr&gt;[/code]<br /> <br /> Add after:<br /> [code]  &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;$GB_PG&#91;base_url&#93;/img/Your_picture.gif&quot; width=&quot;24&quot; height=&quot;14&quot;&gt; Extra Field 1&#58;&lt;/td&gt;<br />     &lt;td&gt;&lt;input class=inputbox type=&quot;text&quot; name=&quot;gb_extra1&quot; size=&quot;42&quot; maxlength=&quot;50&quot;&gt;&lt;/td&gt;<br /> &lt;/tr&gt;[/code]<br /> <br /> <br /> Open templates/previewentry.php<br /> <br /> Find:<br /> [code]&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;font2&quot;&gt;$LANG&#91;FormLoc&#93;&#58;&lt;br&gt;$row&#91;location&#93;&lt;/td&gt;<br /> &lt;/tr&gt;[/code]<br /> <br /> Add after:<br /> [code]&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;font2&quot;&gt;Extra Field 1&#58;&lt;br&gt;$row&#91;extra1&#93;&lt;/td&gt;<br /> &lt;/tr&gt;[/code]<br /> <br /> <br /> <br /> Open admin/panel_edit.php<br /> <br /> Find:<br /> [code]    &lt;tr bgcolor=&quot;#EFEFEF&quot;&gt;<br />       &lt;td width=&quot;25%&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;&gt;Location&#58;&lt;/font&gt;&lt;/td&gt;<br />       &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;location&quot; size=&quot;44&quot; maxlength=&quot;60&quot; value=&quot;&lt;?php echo $row&#91;'location'&#93;; ?&gt;&quot;&gt;&lt;/td&gt;<br />     &lt;/tr&gt;[/code]<br /> Add after:<br /> [code]    &lt;tr bgcolor=&quot;#EFEFEF&quot;&gt;<br />       &lt;td width=&quot;25%&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;&gt;Extra Field 1&#58;&lt;/font&gt;&lt;/td&gt;<br />       &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;extra1&quot; size=&quot;44&quot; maxlength=&quot;60&quot; value=&quot;&lt;?php echo $row&#91;'extra1'&#93;; ?&gt;&quot;&gt;&lt;/td&gt;<br />     &lt;/tr&gt;[/code]<br /> <br /> <br /> Open admin/panel_easy.php<br /> <br /> Find:<br /> [code]if &#40;$row&#91;'location'&#93;&#41; &#123;<br />   echo &quot;    &lt;tr&gt;\n     &lt;td&gt;&lt;b&gt;&lt;font size=1&gt;Location&#58;&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;<br />      &lt;td&gt;&lt;font size=1&gt;$row&#91;location&#93;&lt;/font&gt;&lt;/td&gt;\n    &lt;/tr&gt;\n&quot;;<br /> &#125;     [/code] <br /> Add after:<br /> [code]if &#40;$row&#91;'extra1'&#93;&#41; &#123;<br />   echo &quot;    &lt;tr&gt;\n     &lt;td&gt;&lt;b&gt;&lt;font size=1&gt;Extra Field 1&#58;&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;<br />      &lt;td&gt;&lt;font size=1&gt;$row&#91;extra1&#93;&lt;/font&gt;&lt;/td&gt;\n    &lt;/tr&gt;\n&quot;;     <br /> &#125;[/code]<br /> <br /> <br /> <br /> Open lib/add.class.php<br /> <br /> Find:<br /> [code]    var $location = '';[/code]<br /> <br /> Add after:<br /> [code]    var $extra1 = '';[/code]<br /> <br /> <br /> Find:<br /> [code]        $this-&gt;location = $this-&gt;db-&gt;FormatString&#40;$this-&gt;location&#41;;[/code]<br /> Add after:<br /> [code]        $this-&gt;extra1 = $this-&gt;db-&gt;FormatString&#40;$this-&gt;extra1&#41;;[/code]<br /> <br /> Find:<br /> [code]            $this-&gt;location = addslashes&#40;$this-&gt;location&#41;;[/code]<br /> <br /> Add after:<br /> [code]            $this-&gt;extra1 = addslashes&#40;$this-&gt;extra1&#41;;[/code]<br /> <br /> <br /> Find:<br /> [code]$this-&gt;db-&gt;query&#40;&quot;INSERT INTO $sql_usertable &#40;name,gender,email,url,date,location,host,browser,comment,icq,aim&#41; VALUES &#40;'$this-&gt;name','$this-&gt;gender','$this-&gt;email','$this-&gt;url','$the_time','$this-&gt;location' ,'$host','$agent','$this-&gt;comment','$this-&gt;icq','$this-&gt;aim'&#41;&quot;&#41;;[/code]<br /> <br /> And replace with:<br /> [code]$this-&gt;db-&gt;query&#40;&quot;INSERT INTO $sql_usertable &#40;name,gender,email,url,date,location,extra1,host,browser,comment,icq,aim&#41; VALUES &#40;'$this-&gt;name','$this-&gt;gender','$this-&gt;email','$this-&gt;url','$the_time','$this-&gt;location','$this-&gt;extra1','$host','$agent','$this-&gt;comment','$this-&gt;icq','$this-&gt;aim'&#41;&quot;&#41;;[/code]<br /> <br /> Find:<br /> [code]            $this-&gt;location = stripslashes&#40;$this-&gt;location&#41;;[/code]<br /> <br /> Add after:<br /> [code]            $this-&gt;extra1 = stripslashes&#40;$this-&gt;extra1&#41;;[/code]<br /> <br /> <br /> Find:<br /> [code]        $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_location\&quot; value=\&quot;&quot;.$this-&gt;location.&quot;\&quot;&gt;\n&quot;;[/code]<br /> <br /> Add after:<br /> [code]        $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_extra1\&quot; value=\&quot;&quot;.$this-&gt;extra1.&quot;\&quot;&gt;\n&quot;;[/code]<br /> <br /> Find:<br /> [code]        $row&#91;'location'&#93; = $this-&gt;location;[/code]<br /> <br /> Add after:<br /> [code]        $row&#91;'extra1'&#93; = $this-&gt;extra1;[/code]<br /> <br /> <br /> <br /> Open lib/admin.class.php<br /> <br /> Find:<br /> [code]        $sqlquery= &quot;UPDATE $gb_tbl set name='$HTTP_POST_VARS&#91;name&#93;', email='$HTTP_POST_VARS&#91;email&#93;', gender='$HTTP_POST_VARS&#91;gender&#93;', url='$HTTP_POST_VARS&#91;url&#93;', location='$HTTP_POST_VARS&#91;location&#93;', &quot;;[/code]<br /> <br /> And replace with:<br /> [code]        $sqlquery= &quot;UPDATE $gb_tbl set name='$HTTP_POST_VARS&#91;name&#93;', email='$HTTP_POST_VARS&#91;email&#93;', gender='$HTTP_POST_VARS&#91;gender&#93;', url='$HTTP_POST_VARS&#91;url&#93;', location='$HTTP_POST_VARS&#91;location&#93;',<br /> extra1='$HTTP_POST_VARS&#91;extra1&#93;', &quot;;[/code]<br /> <br /> <br /> <br /> Open lib/comment.class.php<br /> <br /> [code]Find&#58;<br />         if &#40;!$row&#91;'location'&#93;&#41; &#123;<br />             $row&#91;'location'&#93; = &quot;-&quot;;<br />         &#125;[/code]<br /> <br /> Add after:<br /> [code]        if &#40;!$row&#91;'extra1'&#93;&#41; &#123;<br />             $row&#91;'extra1'&#93; = &quot;-&quot;;<br />         &#125;[/code]<br /> <br /> <br /> <br /> Open lib/gb.class.php<br /> <br /> Find:<br /> [code]            if &#40;!$row&#91;'location'&#93;&#41; &#123;<br />                 $row&#91;'location'&#93; = &quot;-&quot;;<br />             &#125;[/code]<br /> <br /> Add after:<br /> [code]        if &#40;!$row&#91;'extra1'&#93;&#41; &#123;<br />             $row&#91;'extra1'&#93; = &quot;-&quot;;<br />         &#125;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5538/20798.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5538/20798.php</link>
				<pubDate><![CDATA[Wed, 21 Jun 2006 15:35:19]]> GMT</pubDate>
				<author><![CDATA[ Jam'n]]></author>
			</item>
	</channel>
</rss>