<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "My Modifications"]]></title>
		<link>https://proxy2.de/forum/posts/list/6.php</link>
		<description><![CDATA[Latest messages posted in the topic "My Modifications"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>My Modifications</title>
				<description><![CDATA[ Hi,<br /> I'm missing 2 things at ADVGuestbook:<br /> 1. Spamwords Managements<br /> 2. Administration of new Items<br /> <br /> My quick and dirty solutions:<br /> Spamword management:<br /> Edit add.class.php at about line 224 in function add_entry():<br /> [code]		$spam_array = array&#40;&quot;viagra&quot;, &quot;tadalafil&quot;, &quot;hydrocodone&quot;, &quot;diazepam&quot;&#41;;<br /> 		foreach&#40;$spam_array as $spam_value&#41; &#123;<br /> 			if &#40;strpos&#40;strtolower&#40;$this-&gt;comment&#41;, $spam_value&#41;&gt;0&#41;&#123;<br /> 				return $this-&gt;db-&gt;gb_error&#40;&quot;Your guestbook-entry is canceled by the spam management!&quot;&#41;;<br /> 			&#125;<br /> 		&#125;[/code]<br /> <br /> Second Managing new Entries:<br /> I added a new field called validate tinyint(2) with 0 as default value.<br /> Then changed gb.class.php as follow:<br /> [code]    function show_entries&#40;$entry=0&#41; &#123;<br />         global $GB_PG, $ISADMIN;<br />         $entry = intval&#40;$entry&#41;;<br />         $LANG = &amp;$this-&gt;db-&gt;LANG;<br />         $VARS = &amp;$this-&gt;db-&gt;VARS;<br />         $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;select count&#40;*&#41; as total from &quot;.$this-&gt;db-&gt;table&#91;'data'&#93;.&quot; Where validate = 1&quot;&#41;&#41;;<br /> 		if &#40;$ISADMIN&#41;&#123;<br /> 			$this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;select count&#40;*&#41; as total from &quot;.$this-&gt;db-&gt;table&#91;'data'&#93;&#41;&#41;;<br /> 		&#125;[/code]<br /> <br /> And function get_entries in same file:<br /> [code]        $result = $this-&gt;db-&gt;query&#40;<br />         	&quot;select x.*, y.p_filename, y.width, y.height from <br />         	&quot;.$this-&gt;db-&gt;table&#91;'data'&#93;.&quot; x left join &quot;.$this-&gt;db-&gt;table&#91;'pics'&#93;.&quot; y on &#40;x.id=y.msg_id and y.book_id=2&#41;  <br /> 			Where &#40;x.validate = 1&#41; <br />         	order by x.id desc limit $entry, $last_entry&quot;<br />         &#41;;<br /> 		if &#40;$ISADMIN&#41;&#123;<br />         	$result = $this-&gt;db-&gt;query&#40;<br />         		&quot;select x.*, y.p_filename, y.width, y.height from <br /> 	        	&quot;.$this-&gt;db-&gt;table&#91;'data'&#93;.&quot; x left join &quot;.$this-&gt;db-&gt;table&#91;'pics'&#93;.&quot; y on &#40;x.id=y.msg_id and y.book_id=2&#41;  <br />         		order by x.id desc limit $entry, $last_entry&quot;<br /> 	        &#41;;<br />                 &#125;<br />         while &#40;$row = $this-&gt;db-&gt;fetch_array&#40;$result&#41;&#41; &#123;<br />             $row&#91;'email2'&#93; = &quot;&quot;;<br />             $DATE = $this-&gt;db-&gt;DateFormat&#40;$row&#91;'date'&#93;&#41;;<br />             $MESSAGE = nl2br&#40;$row&#91;'comment'&#93;&#41;;<br />             $validate = $row&#91;'validate'&#93;;[/code]<br /> <br /> I Inserted 2 Buttons for release and delete:<br /> [code]			if &#40;$ISADMIN &amp;&amp; $validate==0&#41;<br /> 				$ADMINBUTTONS = '&lt;a href=&quot;confirmItem.php?item='.$row&#91;'id'&#93;.'&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;'.$GB_PG&#91;base_url&#93;.'/img/ok.png&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;deleteItem.php?item='.$row&#91;'id'&#93;.'&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;'.$GB_PG&#91;base_url&#93;.'/img/nok.png&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt;&lt;/a&gt;';<br /> 			else<br /> 				$ADMINBUTTONS = '';[/code]<br /> <br /> And I Inserted the $Adminbuttons in template entry.<br /> Also I make a connection to SMF Forum, and from there I get the value of $ISADMIN. For confirming and deleting Entries I create 2 php files wich contains the mysql connection and the queries.<br /> <br /> Here is a screenshot of an entry as the admin sees:<br /> [url]http://www.mkportal-support.de/img/advguestbook.gif[/url]<br /> You see the 2 icons over the entry.<br /> <br /> OK, thats it. If somebody is interested of the code please send me an email or pm.<br /> <br /> Andreas]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7349/24927.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7349/24927.php</link>
				<pubDate><![CDATA[Thu, 8 Oct 2009 14:15:37]]> GMT</pubDate>
				<author><![CDATA[ Hondo]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ 1 - Spamwords is dealt by the bad words list in admin<br /> 2 - If you mean the ability to make new posts require moderating then this is something I added to Lazarus which is a fork of Advanced Guestbook.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7349/24928.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7349/24928.php</link>
				<pubDate><![CDATA[Thu, 8 Oct 2009 19:24:27]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi,<br /> as I know are words in bad words list only converted to something.<br /> What I mean is that entries wich contains bad words are to cancel by system and not to save in table. I spend a lot of time every day to delete such spams. So I will spare me this time because spams are not at all saved. <br /> <br /> 2. Yes, moderate new entries. I don't want to use Lazerus, I use ADVGuestbook.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7349/24929.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7349/24929.php</link>
				<pubDate><![CDATA[Thu, 8 Oct 2009 20:33:34]]> GMT</pubDate>
				<author><![CDATA[ Hondo]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ <a class="snap_shots" href="http://proxy2.de/forum/viewtopic.php?t=5540" target="_blank" rel="nofollow">http://proxy2.de/forum/viewtopic.php?t=5540</a><br /> <br /> I'm not suggesting you do switch to Lazarus (even though it's pretty much identical to AG being that is is AG but rewritten) I was just indicating I had added it already for those that do not want to modify their AG.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7349/24930.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7349/24930.php</link>
				<pubDate><![CDATA[Thu, 8 Oct 2009 20:36:52]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi,<br /> yes Lazerus seems much better than ADVGuestbook especially the spam management. But at this project I use ADVGuestbook and my modifications also works. But for next projects I think I will try Lazerus.<br /> <br /> Thanks]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7349/24931.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7349/24931.php</link>
				<pubDate><![CDATA[Thu, 8 Oct 2009 20:41:15]]> GMT</pubDate>
				<author><![CDATA[ Hondo]]></author>
			</item>
			<item>
				<title>Re:My Modifications</title>
				<description><![CDATA[ good !!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7349/26802.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7349/26802.php</link>
				<pubDate><![CDATA[Fri, 31 Oct 2014 03:08:23]]> GMT</pubDate>
				<author><![CDATA[ cebe100]]></author>
			</item>
	</channel>
</rss>