<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - PunBB 1.2 modifications, plugins and integrations]]></title>
		<link>http://punbb.informer.com/forums/</link>
		<description><![CDATA[The most recent topics at PunBB Forums.]]></description>
		<lastBuildDate>Sat, 07 Nov 2009 18:42:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Drupal & PunBB]]></title>
			<link>http://punbb.informer.com/forums/topic/18282/drupal-punbb/new/posts/</link>
			<description><![CDATA[<p>Integration of PunBB with Drupal<br />Module for Drupal<br /><a href="http://rapidshare.com/files/89293784/punbb.zip.html">http://rapidshare.com/files/89293784/punbb.zip.html</a></p><p>Prime comments and suggestions <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (pihel)]]></author>
			<pubDate>Sat, 07 Nov 2009 18:42:31 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/18282/drupal-punbb/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[BBcode question]]></title>
			<link>http://punbb.informer.com/forums/topic/22424/bbcode-question/new/posts/</link>
			<description><![CDATA[<p>i want to ask is there have someone know how to make a private bbcode?<br />for example [private]text[/private]. with this bbcode, only registered user can read it.</p>]]></description>
			<author><![CDATA[dummy@example.com (MCommunity)]]></author>
			<pubDate>Fri, 30 Oct 2009 11:07:40 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/22424/bbcode-question/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[How do I get this template onto my punbb forums?]]></title>
			<link>http://punbb.informer.com/forums/topic/22375/how-do-i-get-this-template-onto-my-punbb-forums/new/posts/</link>
			<description><![CDATA[<p>It&#039;s called &quot;php subsilver&quot;</p><p>It&#039;s really nice... I want it on my punbb forums</p><p>My version is 1.2.17</p><p>can someone link me to a DL? D;</p><p>And tell me how to download or link me to a tut?</p>]]></description>
			<author><![CDATA[dummy@example.com (tomjacko)]]></author>
			<pubDate>Thu, 29 Oct 2009 17:32:45 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/22375/how-do-i-get-this-template-onto-my-punbb-forums/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[[ASK] Adding Image To Header PunBB 1.2.x]]></title>
			<link>http://punbb.informer.com/forums/topic/22391/ask-adding-image-to-header-punbb-12x/new/posts/</link>
			<description><![CDATA[<p>How i can change the header?</p><p>Thx...</p>]]></description>
			<author><![CDATA[dummy@example.com (Slavok)]]></author>
			<pubDate>Thu, 29 Oct 2009 14:33:12 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/22391/ask-adding-image-to-header-punbb-12x/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Integrating logins]]></title>
			<link>http://punbb.informer.com/forums/topic/4932/integrating-logins/new/posts/</link>
			<description><![CDATA[<p>I&#039;m trying to integrate punBB into my own site, and it is going well, howver I do not wish to have two seperate registrations and logins.&nbsp; I was wondering if anyone else out there has had experience with integrating their own registrations and logins with punBB.&nbsp; Has anyone developed a mod for something like this?</p><p>Thanks!<br />-Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (tommi)]]></author>
			<pubDate>Sat, 24 Oct 2009 10:09:45 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/4932/integrating-logins/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Change button style]]></title>
			<link>http://punbb.informer.com/forums/topic/19254/change-button-style/new/posts/</link>
			<description><![CDATA[<p>I have made a class for all the buttons, but I&#039;m having problem with the &quot;Go&quot; button for Jump To forum in the footer.&nbsp; I have inserted a class in the cache.php, but the class still does not come up.&nbsp; I&#039;m wondering if there is another place that I need to insert the class.&nbsp; Thanks for you help</p>]]></description>
			<author><![CDATA[dummy@example.com (saadulla89)]]></author>
			<pubDate>Thu, 15 Oct 2009 02:17:38 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/19254/change-button-style/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[nice urls / mod_rewrite / seo]]></title>
			<link>http://punbb.informer.com/forums/topic/7340/nice-urls-modrewrite-seo/new/posts/</link>
			<description><![CDATA[<p>Hello,<br />i want to release my first mod to the community.<br />Search Engines like Google don&#039;t like URLs like:<br /><strong>viewtopic.php?id=123</strong><br />With my mod the URLs look like:<br /><strong>heading-of-the-topic-vt123.php</strong></p><p>Profiles are flx-vp123.php</p><p>To avoid duplicate content lots of things are disallowed in robots.txt.</p><p>You can see this mod in action on <strong><a href="http://www.html-forum.net">http://www.html-forum.net</a></strong> (german)<br />robots.txt is <a href="http://www.html-forum.net/robots.txt">here</a>.</p><p>Installation will probably take ~5 minutes.</p><p>It will be released tomorrow.</p><p>I&#039;d like some feedback <img src="http://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Greetz,<br />flx</p>]]></description>
			<author><![CDATA[dummy@example.com (saadulla89)]]></author>
			<pubDate>Thu, 15 Oct 2009 01:16:39 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/7340/nice-urls-modrewrite-seo/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[multilanguage forum and category names and forum descriptions]]></title>
			<link>http://punbb.informer.com/forums/topic/19456/multilanguage-forum-and-category-names-and-forum-descriptions/new/posts/</link>
			<description><![CDATA[<p>multilanguage forum and category names and forum descriptions: <a href="http://www.punres.org/viewtopic.php?id=4876">http://www.punres.org/viewtopic.php?id=4876</a></p><p>see also <a href="http://punbb.informer.com/forums/topic/19369/punbb-tatar-language-pack/">http://punbb.informer.com/forums/topic/ &#133; uage-pack/</a></p><p>also here one more related mod made by me:<br /><a href="http://www.punres.org/viewtopic.php?id=4858">http://www.punres.org/viewtopic.php?id=4858</a> &quot;guest language change&quot;</p><p>you can see them both at <a href="http://tmforum.awardspace.com">http://tmforum.awardspace.com</a></p>]]></description>
			<author><![CDATA[dummy@example.com (saadulla89)]]></author>
			<pubDate>Thu, 15 Oct 2009 01:14:04 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/19456/multilanguage-forum-and-category-names-and-forum-descriptions/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Thank You MOD]]></title>
			<link>http://punbb.informer.com/forums/topic/17714/thank-you-mod/new/posts/</link>
			<description><![CDATA[<p>I want to kindly request a ThankYou MOD for PunBB. There should be a html &quot;Thank you&quot; link below each post. Guests, Members, Mods and Admins (all) should be able to click those thank you links below each post if they like the post and want to show their appreciation. If Guests click the link for a post, it should show below that post: &quot;X Guest(s) say(s): Thank you.&quot; X is the number of guests who have clicked thanks for that particular post. And if members or mods or admin click the Thank you link, it should show their names, &quot;Username1, Username2... say(s): Thank you.&quot; where username1, username2 etc. are the usernames of the logged in members who click thank you for that post.</p><p>Both vBulletin and Phpbb have a Thank You mod and I found previously that it is greatly used by the forum members. It was one of the most popular MODs I had. They normally don&#039;t want to type a reply to a post but still they say thank you on so many posts. It is very encouraging to the posters also and promotes more participation and gives a community feeling. Can anyone kindly design this MOD? Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (saadulla89)]]></author>
			<pubDate>Mon, 12 Oct 2009 23:00:53 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/17714/thank-you-mod/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Request style "Crystal Blue"]]></title>
			<link>http://punbb.informer.com/forums/topic/22344/request-style-crystal-blue/new/posts/</link>
			<description><![CDATA[<p>Request style &quot;Crystal Blue&quot;!</p><p>Thanks!</p>]]></description>
			<author><![CDATA[dummy@example.com (x6IT32)]]></author>
			<pubDate>Tue, 06 Oct 2009 17:36:46 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/22344/request-style-crystal-blue/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[MyBestBB(2.0.1) gathering mods and plugins, based on punBB1.2.22]]></title>
			<link>http://punbb.informer.com/forums/topic/11670/mybestbb201-gathering-mods-and-plugins-based-on-punbb1222/new/posts/</link>
			<description><![CDATA[<p>Hi all</p><p> I run many punbb ( see <a href="http://stats.punres.org/">http://stats.punres.org/</a> ) and needed to use many mods.</p><p> After many mod, plugins and themes integration I built this :</p><div class="quotebox"><blockquote><p>MyBestBB 2.0.1, based on punbb 1.2.22 ( see <a href="http://punbb.org/">http://punbb.org/</a> )<br />&nbsp; &nbsp; &nbsp;including :<br />-&gt; rss.php ( see <a href="http://www.alexking.org/software/punbb/rss.zip">http://www.alexking.org/software/punbb/rss.zip</a> )<br />-&gt; private messages<br />-&gt; attachments<br />-&gt; topic rating<br />-&gt; custon profile fields<br />-&gt; subforums ( see <a href="http://www.punres.org/desc.php?pid=209">http://www.punres.org/desc.php?pid=209</a> )<br />-&gt; admin can move posts ( see <a href="http://www.punres.org/desc.php?pid=187">http://www.punres.org/desc.php?pid=187</a> )<br />-&gt; easysmilies and many default smilies ( see <a href="http://www.punres.org/desc.php?pid=37">http://www.punres.org/desc.php?pid=37</a> )<br />-&gt; easypoll ( see <a href="http://www.punres.org/desc.php?pid=60">http://www.punres.org/desc.php?pid=60</a> )<br />-&gt; Activity Barometer ( see <a href="http://www.punres.org/desc.php?pid=142">http://www.punres.org/desc.php?pid=142</a> )<br />-&gt; ajax_extern ( see <a href="http://punbb.org/forums/viewtopic.php?pid=64907#p64907">http://punbb.org/forums/viewtopic.php?pid=64907#p64907</a> )<br />-&gt; shows active topics everywhere ( see <a href="http://www.punres.org/files.php?pid=252">http://www.punres.org/files.php?pid=252</a> )<br />-&gt; includes signature.png ( see <a href="http://www.punres.org/desc.php?pid=116">http://www.punres.org/desc.php?pid=116</a> ) with forum stats ( needs libgd )<br />-&gt; add board logo option in admin_options ( see <a href="http://www.punres.org/desc.php?pid=202">http://www.punres.org/desc.php?pid=202</a> )<br />-&gt; punrewrite ( rename urls for better google ranking ) ( see <a href="http://www.punres.org/desc.php?pid=139">http://www.punres.org/desc.php?pid=139</a> )<br />-&gt; English and French languages are currently supported ( please help add more languages )<br />-&gt; many improved themes<br />-&gt; announcement /sticky topics <br />-&gt; antibot features</p><p><strong><br /> Before integrating MyBestBB, please be sure your hosting allows you to use url rewriting ( .htaccess ) , this is needed to have mybestbb working<br /></strong></p><p> See <a href="http://ww7.be/neofutur/tools/punbb/MyBestBB/INSTALL_mybestBB.txt">http://ww7.be/neofutur/tools/punbb/MyBe &#133; bestBB.txt</a> for installing MyBestBB instructions</p></blockquote></div><p>I just used the 1.2.22 colored diff to integrate last security updates.</p><p> MyBestBB have a website too where you can download and ( hopefully ) contribute it: <br /><a href="http://mybestbb.ww7.be">http://mybestbb.ww7.be</a></p><p> Install is pretty simple and upgrade from a standard 1.2.* punbb is easy too</p><p> Please try, test and comment, the integrated plugins code seems clean, feel free to help improve them and/or tell security problems brought by those mods/plugins</p><p> enjoy my best BB <img src="http://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (neofutur)]]></author>
			<pubDate>Mon, 28 Sep 2009 08:05:14 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/11670/mybestbb201-gathering-mods-and-plugins-based-on-punbb1222/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Install Style's]]></title>
			<link>http://punbb.informer.com/forums/topic/22297/install-styles/new/posts/</link>
			<description><![CDATA[<p>Can anyone install the style installer plug-in for me on my punbb 1.2.22?</p>]]></description>
			<author><![CDATA[dummy@example.com (vMaster)]]></author>
			<pubDate>Sat, 26 Sep 2009 17:24:50 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/22297/install-styles/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Trying to inject accounts from a website into punbb. Howto?]]></title>
			<link>http://punbb.informer.com/forums/topic/17964/trying-to-inject-accounts-from-a-website-into-punbb-howto/new/posts/</link>
			<description><![CDATA[<p>I tried the following. When a user registers at out website i wanted that the registered information got also injected into the punbb database so that the user didn&#039;t have to register seperately later on the forums. But this didn&#039;t work, no user got added to the user table and neither was i able to login after registration. What am i doing wrong?</p><p>here&#039;s the code:</p><div class="codebox"><pre><code>               
                $group_id = &quot;4&quot;;
    $user_regdate = strtotime (&quot;now&quot;); // Unix Timestamp
    $user_password=pun_hash($user-&gt;Password);
    $username=$user-&gt;Username;
    $user_email=$user-&gt;EmailAddress;
    $user_lang = &quot;english&quot;;
    $user_timezone = &quot;0&quot;;
    
    $query_ft = &quot;INSERT INTO punbb_users (group_id, registered, username, password, email, language, timezone) values (&#039;$group_id&#039;,&#039;$user_regdate&#039;,&#039;$username&#039;,&#039;$user_password&#039;,&#039;$user_email&#039;,&#039;$user_lang&#039;,&#039;$user_timezone&#039;)&quot;;   
    mysql_query($query_ft, $conn) or die (mysql_error());</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Slavok)]]></author>
			<pubDate>Fri, 25 Sep 2009 14:59:32 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/17964/trying-to-inject-accounts-from-a-website-into-punbb-howto/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[[Mod] Topic resolved or not]]></title>
			<link>http://punbb.informer.com/forums/topic/7807/mod-topic-resolved-or-not/new/posts/</link>
			<description><![CDATA[<p>Sorry for my english.</p><p>Exemple : <a href="http://www.ctrlaltsuppr.com/viewforum.php?id=2">CtrlAltSuppr.com</a></p><p><strong>MOD (translate by Ludo, thx !) :</strong><br />This is a post status indicator which aims at showing if the problem exposed in the topic is solved or not. The topic creator got a link with &#039;mark this topic as solved&#039; which changes the colour of the post status indicator. After having marked a topic as solved it&#039;s also possible to clic on &#039;mark topic as unsolved&#039; in order to inform that finally the problem is not solved. This functions are accessible to admin and moderators. You have the possibility to choose on which forum this mod is applied.</p><p><strong>SOURCE :</strong></p><p>SQL (change **** by your table extension or drop) :<br /></p><div class="codebox"><pre><code>ALTER TABLE ****topics ADD resolu TINYINT(1) DEFAULT 1</code></pre></div><p><strong><em>/******* VIEWFORUM.PHP *******/</em></strong></p><p>Line 112, REPLACE :<br /></p><div class="codebox"><pre><code>    // Without &quot;the dot&quot;
    $sql = &#039;SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM &#039;.$db-&gt;prefix.&#039;topics WHERE forum_id=&#039;.$id.&#039; ORDER BY sticky DESC, &#039;.(($cur_forum[&#039;sort_by&#039;] == &#039;1&#039;) ? &#039;posted&#039; : &#039;last_post&#039;).&#039; DESC LIMIT &#039;.$start_from.&#039;, &#039;.$pun_user[&#039;disp_topics&#039;];
}
else
{
    // With &quot;the dot&quot;
    switch ($db_type)
    {
        case &#039;mysql&#039;:
        case &#039;mysqli&#039;:
            $sql = &#039;SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM &#039;.$db-&gt;prefix.&#039;topics AS t LEFT JOIN &#039;.$db-&gt;prefix.&#039;posts AS p ON t.id=p.topic_id AND p.poster_id=&#039;.$pun_user[&#039;id&#039;].&#039; WHERE t.forum_id=&#039;.$id.&#039; GROUP BY t.id ORDER BY sticky DESC, &#039;.(($cur_forum[&#039;sort_by&#039;] == &#039;1&#039;) ? &#039;posted&#039; : &#039;last_post&#039;).&#039; DESC LIMIT &#039;.$start_from.&#039;, &#039;.$pun_user[&#039;disp_topics&#039;];
            break;

        case &#039;sqlite&#039;:
            $sql = &#039;SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM &#039;.$db-&gt;prefix.&#039;topics AS t LEFT JOIN &#039;.$db-&gt;prefix.&#039;posts AS p ON t.id=p.topic_id AND p.poster_id=&#039;.$pun_user[&#039;id&#039;].&#039; WHERE t.id IN(SELECT id FROM &#039;.$db-&gt;prefix.&#039;topics WHERE forum_id=&#039;.$id.&#039; ORDER BY sticky DESC, &#039;.(($cur_forum[&#039;sort_by&#039;] == &#039;1&#039;) ? &#039;posted&#039; : &#039;last_post&#039;).&#039; DESC LIMIT &#039;.$start_from.&#039;, &#039;.$pun_user[&#039;disp_topics&#039;].&#039;) GROUP BY t.id ORDER BY t.sticky DESC, t.last_post DESC&#039;;
            break;

        default:
            $sql = &#039;SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM &#039;.$db-&gt;prefix.&#039;topics AS t LEFT JOIN &#039;.$db-&gt;prefix.&#039;posts AS p ON t.id=p.topic_id AND p.poster_id=&#039;.$pun_user[&#039;id&#039;].&#039; WHERE t.forum_id=&#039;.$id.&#039; GROUP BY t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, p.poster_id ORDER BY sticky DESC, &#039;.(($cur_forum[&#039;sort_by&#039;] == &#039;1&#039;) ? &#039;posted&#039; : &#039;last_post&#039;).&#039; DESC LIMIT &#039;.$start_from.&#039;, &#039;.$pun_user[&#039;disp_topics&#039;];
            break;</code></pre></div><p>Per :<br /></p><div class="codebox"><pre><code>    // Without &quot;the dot&quot;
    $sql = &#039;SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to, resolu FROM &#039;.$db-&gt;prefix.&#039;topics WHERE forum_id=&#039;.$id.&#039; ORDER BY sticky DESC, &#039;.(($cur_forum[&#039;sort_by&#039;] == &#039;1&#039;) ? &#039;posted&#039; : &#039;last_post&#039;).&#039; DESC LIMIT &#039;.$start_from.&#039;, &#039;.$pun_user[&#039;disp_topics&#039;];
}
else
{
    // With &quot;the dot&quot;
    switch ($db_type)
    {
        case &#039;mysql&#039;:
        case &#039;mysqli&#039;:
            $sql = &#039;SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.resolu FROM &#039;.$db-&gt;prefix.&#039;topics AS t LEFT JOIN &#039;.$db-&gt;prefix.&#039;posts AS p ON t.id=p.topic_id AND p.poster_id=&#039;.$pun_user[&#039;id&#039;].&#039; WHERE t.forum_id=&#039;.$id.&#039; GROUP BY t.id ORDER BY sticky DESC, &#039;.(($cur_forum[&#039;sort_by&#039;] == &#039;1&#039;) ? &#039;posted&#039; : &#039;last_post&#039;).&#039; DESC LIMIT &#039;.$start_from.&#039;, &#039;.$pun_user[&#039;disp_topics&#039;];
            break;

        case &#039;sqlite&#039;:
            $sql = &#039;SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.resolu FROM &#039;.$db-&gt;prefix.&#039;topics AS t LEFT JOIN &#039;.$db-&gt;prefix.&#039;posts AS p ON t.id=p.topic_id AND p.poster_id=&#039;.$pun_user[&#039;id&#039;].&#039; WHERE t.id IN(SELECT id FROM &#039;.$db-&gt;prefix.&#039;topics WHERE forum_id=&#039;.$id.&#039; ORDER BY sticky DESC, &#039;.(($cur_forum[&#039;sort_by&#039;] == &#039;1&#039;) ? &#039;posted&#039; : &#039;last_post&#039;).&#039; DESC LIMIT &#039;.$start_from.&#039;, &#039;.$pun_user[&#039;disp_topics&#039;].&#039;) GROUP BY t.id ORDER BY t.sticky DESC, t.last_post DESC&#039;;
            break;

        default:
            $sql = &#039;SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.resolu FROM &#039;.$db-&gt;prefix.&#039;topics AS t LEFT JOIN &#039;.$db-&gt;prefix.&#039;posts AS p ON t.id=p.topic_id AND p.poster_id=&#039;.$pun_user[&#039;id&#039;].&#039; WHERE t.forum_id=&#039;.$id.&#039; GROUP BY t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, p.poster_id ORDER BY sticky DESC, &#039;.(($cur_forum[&#039;sort_by&#039;] == &#039;1&#039;) ? &#039;posted&#039; : &#039;last_post&#039;).&#039; DESC LIMIT &#039;.$start_from.&#039;, &#039;.$pun_user[&#039;disp_topics&#039;];
            break;</code></pre></div><p>Line 165, after :<br /></p><div class="codebox"><pre><code>        if ($cur_topic[&#039;moved_to&#039;] != 0)
            $subject = $lang_forum[&#039;Moved&#039;].&#039;: &lt;a href=&quot;viewtopic.php?id=&#039;.$cur_topic[&#039;moved_to&#039;].&#039;&quot;&gt;&#039;.pun_htmlspecialchars($cur_topic[&#039;subject&#039;]).&#039;&lt;/a&gt; &lt;span class=&quot;byuser&quot;&gt;&#039;.$lang_common[&#039;by&#039;].&#039; &#039;.pun_htmlspecialchars($cur_topic[&#039;poster&#039;]).&#039;&lt;/span&gt;&#039;;
        else if ($cur_topic[&#039;closed&#039;] == &#039;0&#039;)
            $subject = &#039;&lt;a href=&quot;viewtopic.php?id=&#039;.$cur_topic[&#039;id&#039;].&#039;&quot;&gt;&#039;.pun_htmlspecialchars($cur_topic[&#039;subject&#039;]).&#039;&lt;/a&gt; &lt;span class=&quot;byuser&quot;&gt;&#039;.$lang_common[&#039;by&#039;].&#039; &#039;.pun_htmlspecialchars($cur_topic[&#039;poster&#039;]).&#039;&lt;/span&gt;&#039;;
        else
        {
            $subject = &#039;&lt;a href=&quot;viewtopic.php?id=&#039;.$cur_topic[&#039;id&#039;].&#039;&quot;&gt;&#039;.pun_htmlspecialchars($cur_topic[&#039;subject&#039;]).&#039;&lt;/a&gt; &lt;span class=&quot;byuser&quot;&gt;&#039;.$lang_common[&#039;by&#039;].&#039; &#039;.pun_htmlspecialchars($cur_topic[&#039;poster&#039;]).&#039;&lt;/span&gt;&#039;;
            $icon_text = $lang_common[&#039;Closed icon&#039;];
            $item_status = &#039;iclosed&#039;;
        }</code></pre></div><p>Add :<br /></p><div class="codebox"><pre><code>            // ICON ETAT
            $forums_icon = array(3,2,17,18,16); // Numbers of the forums concerned (also in viewtopic.php and search.php)
            if(array_search($id,$forums_icon) !== false &amp;&amp; $cur_topic[&#039;sticky&#039;]!=&#039;1&#039; &amp;&amp; $cur_topic[&#039;moved_to&#039;]==null) {
                switch($cur_topic[&#039;resolu&#039;]) {
                    case 0 :
                        $iconetat_src = &#039;nop&#039;;
                        $iconetat_title = &#039;Topic not-resolved !&#039;;
                        $iconetat_alt = &#039;0&#039;;
                        break;
                    case 1 :
                        $iconetat_src = &#039;new&#039;;
                        $iconetat_title = &#039;New topic&#039;;
                        $iconetat_alt = &#039;1&#039;;
                        break;
                    case 2 :
                        $iconetat_src = &#039;ok&#039;;
                        $iconetat_title = &#039;Topic resolved&#039;;
                        $iconetat_alt = &#039;2&#039;;
                        break;
                    default :
                        $iconetat_src = &#039;new&#039;;
                        $iconetat_title = &#039;New topic&#039;;
                        $iconetat_alt = &#039;1&#039;;
                        break;
                } $iconetat = &#039;&lt;img class=&quot;iconetat&quot; src=&quot;img/icon_&#039;.$iconetat_src.&#039;.gif&quot; alt=&quot;&#039;.$iconetat_alt.&#039;&quot; title=&quot;&#039;.$iconetat_title.&#039;&quot; /&gt; &#039;;
            } else $iconetat=&#039;&#039;;</code></pre></div><p>Line 211, after :<br /></p><div class="codebox"><pre><code>                            &lt;div class=&quot;&lt;?php echo $icon_type ?&gt;&quot;&gt;&lt;div class=&quot;nosize&quot;&gt;&lt;?php echo trim($icon_text) ?&gt;&lt;/div&gt;&lt;/div&gt;</code></pre></div><p>Add :<br /></p><div class="codebox"><pre><code>                            &lt;?php if(isset($iconetat)) echo $iconetat ?&gt;</code></pre></div><p><strong><em>/******* VIEWTOPIC.PHP *******/</em></strong></p><p>Line 96, replace :<br /></p><div class="codebox"><pre><code>// Fetch some info about the topic
if (!$pun_user[&#039;is_guest&#039;])
    $result = $db-&gt;query(&#039;SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, s.user_id AS is_subscribed FROM &#039;.$db-&gt;prefix.&#039;topics AS t INNER JOIN &#039;.$db-&gt;prefix.&#039;forums AS f ON f.id=t.forum_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;subscriptions AS s ON (t.id=s.topic_id AND s.user_id=&#039;.$pun_user[&#039;id&#039;].&#039;) LEFT JOIN &#039;.$db-&gt;prefix.&#039;forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=&#039;.$pun_user[&#039;g_id&#039;].&#039;) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=&#039;.$id.&#039; AND t.moved_to IS NULL&#039;) or error(&#039;Unable to fetch topic info&#039;, __FILE__, __LINE__, $db-&gt;error());
else
    $result = $db-&gt;query(&#039;SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM &#039;.$db-&gt;prefix.&#039;topics AS t INNER JOIN &#039;.$db-&gt;prefix.&#039;forums AS f ON f.id=t.forum_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=&#039;.$pun_user[&#039;g_id&#039;].&#039;) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=&#039;.$id.&#039; AND t.moved_to IS NULL&#039;) or error(&#039;Unable to fetch topic info&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div><p>Per :<br /></p><div class="codebox"><pre><code>// Fetch some info about the topic
if (!$pun_user[&#039;is_guest&#039;])
    $result = $db-&gt;query(&#039;SELECT t.subject, t.closed, t.num_replies, t.sticky, t.resolu, t.poster, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, s.user_id AS is_subscribed FROM &#039;.$db-&gt;prefix.&#039;topics AS t INNER JOIN &#039;.$db-&gt;prefix.&#039;forums AS f ON f.id=t.forum_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;subscriptions AS s ON (t.id=s.topic_id AND s.user_id=&#039;.$pun_user[&#039;id&#039;].&#039;) LEFT JOIN &#039;.$db-&gt;prefix.&#039;forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=&#039;.$pun_user[&#039;g_id&#039;].&#039;) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=&#039;.$id.&#039; AND t.moved_to IS NULL&#039;) or error(&#039;Unable to fetch topic info&#039;, __FILE__, __LINE__, $db-&gt;error());
else
    $result = $db-&gt;query(&#039;SELECT t.subject, t.closed, t.num_replies, t.sticky, t.resolu, t.poster, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM &#039;.$db-&gt;prefix.&#039;topics AS t INNER JOIN &#039;.$db-&gt;prefix.&#039;forums AS f ON f.id=t.forum_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=&#039;.$pun_user[&#039;g_id&#039;].&#039;) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=&#039;.$id.&#039; AND t.moved_to IS NULL&#039;) or error(&#039;Unable to fetch topic info&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div><p>Line 162, after :<br /></p><div class="codebox"><pre><code>    $subscraction = &#039;&lt;div class=&quot;clearer&quot;&gt;&lt;/div&gt;&#039;.&quot;\n&quot;;</code></pre></div><p>Add :<br /></p><div class="codebox"><pre><code>// ICON ETAT
$forums_icon = array(3,2,17,18,16); // Numbers of the forums concerned (also in viewforum.php and search.php)
if(array_search($cur_topic[&#039;forum_id&#039;],$forums_icon) !== false &amp;&amp; $cur_topic[&#039;sticky&#039;]!=&#039;1&#039;) {
    $poster_name = mysql_fetch_row($db-&gt;query(&#039;SELECT username FROM &#039;.$db-&gt;prefix.&#039;users WHERE id=&quot;&#039;.$pun_user[&#039;id&#039;].&#039;&quot;&#039;));
    if($cur_topic[&#039;poster&#039;] == $poster_name[0] || $is_admmod === true)
        define(&#039;PUN_ICONETAT&#039;,1);
    else
        define(&#039;PUN_ICONETAT&#039;,0);
    if(PUN_ICONETAT == 1) {
        if(isset($_GET[&#039;etat&#039;]) &amp;&amp; ($_GET[&#039;etat&#039;]==0 || $_GET[&#039;etat&#039;] ==2)) {
            $db-&gt;query(&#039;UPDATE &#039;.$db-&gt;prefix.&#039;topics SET resolu=&#039;.$_GET[&#039;etat&#039;].&#039; WHERE id=&quot;&#039;.$id.&#039;&quot;&#039;);
            $cur_topic[&#039;resolu&#039;] = $_GET[&#039;etat&#039;];
        }
    }
    switch($cur_topic[&#039;resolu&#039;]) {
        case 0 :
            $iconetat_txt = &#039;&lt;strong style=&quot;color:#C80815;font-weight:bold&quot;&gt;(Not resolved)&lt;/strong&gt;&#039;;
            $iconetat_change_txt = &#039;&lt;br /&gt; ( &lt;a href=&quot;?id=&#039;.$id.&#039;&amp;etat=2&quot; style=&quot;color:#F00&quot;&gt;Mark topic as resolved&lt;/a&gt; )&#039;;
            break;
        case 1 :
            $iconetat_txt = &#039;&#039;;
            $iconetat_change_txt = &#039;&lt;br /&gt; ( &lt;a href=&quot;?id=&#039;.$id.&#039;&amp;etat=2&quot; style=&quot;color:#F00&quot;&gt;Mark topic as resolved&lt;/a&gt; )&#039;;
            break;
        case 2 :
            $iconetat_txt = &#039;&lt;strong style=&quot;color:#2c831b;font-weight:bold&quot;&gt;(Resolved)&lt;/strong&gt;&#039;;
            $iconetat_change_txt = &#039;&lt;br /&gt; ( &lt;a href=&quot;?id=&#039;.$id.&#039;&amp;etat=0&quot; style=&quot;color:#F00&quot;&gt;Mark topic as not-resolved&lt;/a&gt; )&#039;;
            break;
        default :
            $iconetat_txt = &#039;&#039;;
            $iconetat_change_txt = &#039;&lt;br /&gt; ( &lt;a href=&quot;?id=&#039;.$id.&#039;&amp;etat=2&quot; style=&quot;color:#F00&quot;&gt;Mark topic as resolved&lt;/a&gt; )&#039;;
            break;
    }
    if(PUN_ICONETAT == 0)
        $iconetat_change_txt = &#039;&#039;;
}</code></pre></div><p>Line 172, replace :<br /></p><div class="codebox"><pre><code>        &lt;ul&gt;&lt;li&gt;&lt;a href=&quot;index.php&quot;&gt;&lt;?php echo $lang_common[&#039;Index&#039;] ?&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt; » &lt;a href=&quot;viewforum.php?id=&lt;?php echo $cur_topic[&#039;forum_id&#039;] ?&gt;&quot;&gt;&lt;?php echo pun_htmlspecialchars($cur_topic[&#039;forum_name&#039;]) ?&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt; » &lt;?php echo pun_htmlspecialchars($cur_topic[&#039;subject&#039;]) ?&gt;&lt;/li&gt;&lt;/ul&gt;</code></pre></div><p>Per :<br /></p><div class="codebox"><pre><code>        &lt;ul&gt;&lt;li&gt;&lt;a href=&quot;index.php&quot;&gt;&lt;?php echo $lang_common[&#039;Index&#039;] ?&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt; » &lt;a href=&quot;viewforum.php?id=&lt;?php echo $cur_topic[&#039;forum_id&#039;] ?&gt;&quot;&gt;&lt;?php echo pun_htmlspecialchars($cur_topic[&#039;forum_name&#039;]) ?&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt; » &lt;?php echo pun_htmlspecialchars($cur_topic[&#039;subject&#039;]) ?&gt;&lt;?php if(isset($iconetat_txt)) echo $iconetat_txt ?&gt; &lt;?php if(isset($iconetat_change_txt)) echo $iconetat_change_txt ?&gt;&lt;/li&gt;&lt;/ul&gt;</code></pre></div><p><strong><em>/******* SEARCH.PHP *******/</em></strong></p><p>Line 456, replace :<br /></p><div class="codebox"><pre><code>            $substr_sql = ($db_type != &#039;sqlite&#039;) ? &#039;SUBSTRING&#039; : &#039;SUBSTR&#039;;
            $sql = &#039;SELECT p.id AS pid, p.poster AS pposter, p.posted AS pposted, p.poster_id, &#039;.$substr_sql.&#039;(p.message, 1, 1000) AS message, t.id AS tid, t.poster, t.subject, t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.forum_id FROM &#039;.$db-&gt;prefix.&#039;posts AS p INNER JOIN &#039;.$db-&gt;prefix.&#039;topics AS t ON t.id=p.topic_id WHERE p.id IN(&#039;.$search_results.&#039;) ORDER BY &#039;.$sort_by_sql;
        }
        else
            $sql = &#039;SELECT t.id AS tid, t.poster, t.subject, t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.closed, t.forum_id FROM &#039;.$db-&gt;prefix.&#039;posts AS p INNER JOIN &#039;.$db-&gt;prefix.&#039;topics AS t ON t.id=p.topic_id WHERE t.id IN(&#039;.$search_results.&#039;) GROUP BY t.id, t.poster, t.subject, t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.closed, t.forum_id&#039;.$group_by_sql.&#039; ORDER BY &#039;.$sort_by_sql;</code></pre></div><p>Per :<br /></p><div class="codebox"><pre><code>            $substr_sql = ($db_type != &#039;sqlite&#039;) ? &#039;SUBSTRING&#039; : &#039;SUBSTR&#039;;
            $sql = &#039;SELECT p.id AS pid, p.poster AS pposter, p.posted AS pposted, p.poster_id, &#039;.$substr_sql.&#039;(p.message, 1, 1000) AS message, t.id AS tid, t.poster, t.subject, t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.forum_id, t.resolu FROM &#039;.$db-&gt;prefix.&#039;posts AS p INNER JOIN &#039;.$db-&gt;prefix.&#039;topics AS t ON t.id=p.topic_id WHERE p.id IN(&#039;.$search_results.&#039;) ORDER BY &#039;.$sort_by_sql;
        }
        else
            $sql = &#039;SELECT t.id AS tid, t.poster, t.subject, t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.closed, t.forum_id, t.resolu FROM &#039;.$db-&gt;prefix.&#039;posts AS p INNER JOIN &#039;.$db-&gt;prefix.&#039;topics AS t ON t.id=p.topic_id WHERE t.id IN(&#039;.$search_results.&#039;) GROUP BY t.id, t.poster, t.subject, t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.closed, t.forum_id&#039;.$group_by_sql.&#039; ORDER BY &#039;.$sort_by_sql;</code></pre></div><p>Line 642, after :<br /></p><div class="codebox"><pre><code>                    $subject .= &#039;  &#039;.(!empty($subject_new_posts) ? $subject_new_posts : &#039;&#039;);
                    $subject .= !empty($subject_multipage) ? &#039; &#039;.$subject_multipage : &#039;&#039;;
                }</code></pre></div><p>Add :<br /></p><div class="codebox"><pre><code>                // ICON ETAT
                @reset($forum_list);
                while (list(, $temp) = @each($forum_list)) {
                    if($temp[0] == $search_set[$i][&#039;forum_id&#039;]) {
                        $forums_icon = array(3,2,17,18,16); // Numbers of the forums concerned (also in viewforum.php and viewtopic.php)
                        if(array_search($temp[0],$forums_icon) !== false) {
                            switch($search_set[$i][&#039;resolu&#039;]) {
                                case 0 :
                                    $iconetat_src = &#039;nop&#039;;
                                    $iconetat_title = &#039;Topic not resolved !&#039;;
                                    $iconetat_alt = &#039;0&#039;;
                                    break;
                                case 1 :
                                    $iconetat_src = &#039;new&#039;;
                                    $iconetat_title = &#039;New topic&#039;;
                                    $iconetat_alt = &#039;1&#039;;
                                    break;
                                case 2 :
                                    $iconetat_src = &#039;ok&#039;;
                                    $iconetat_title = &#039;Topic resolved&#039;;
                                    $iconetat_alt = &#039;2&#039;;
                                    break;
                                default :
                                    $iconetat_src = &#039;new&#039;;
                                    $iconetat_title = &#039;New topic&#039;;
                                    $iconetat_alt = &#039;1&#039;;
                                    break;
                            } $iconetat = &#039;&lt;img class=&quot;iconetat&quot; src=&quot;img/icon_&#039;.$iconetat_src.&#039;.gif&quot; alt=&quot;&#039;.$iconetat_alt.&#039;&quot; title=&quot;&#039;.$iconetat_title.&#039;&quot; /&gt;&#039;;
                        } else $iconetat = &#039;&#039;;
                    }
                }</code></pre></div><p>Line 642, after :<br /></p><div class="codebox"><pre><code>                            &lt;div class=&quot;&lt;?php echo $icon_type ?&gt;&quot;&gt;&lt;div class=&quot;nosize&quot;&gt;&lt;?php echo trim($icon_text) ?&gt;&lt;/div&gt;&lt;/div&gt;</code></pre></div><p>Add :<br /></p><div class="codebox"><pre><code>                            &lt;?php if(isset($iconetat)) echo $iconetat ?&gt;</code></pre></div><p><strong><em>/******* STYLE/OXYGEN.CSS *******/</em></strong><br />(or other theme)</p><p>At the end, add :<br /></p><div class="codebox"><pre><code>IMG.iconetat {
    FLOAT: left;
    MARGIN-TOP: 0.1em;
    MARGIN-LEFT: 0.5em;
    MARGIN-RIGHT: 0.5em;
    DISPLAY: block;
    BORDER-WIDTH: 0;
}</code></pre></div><p><strong>IMAGES :</strong><br />img/icon_new.gif<br />img/icon_ok.gif<br />img/icon_nop.gif</p>]]></description>
			<author><![CDATA[dummy@example.com (sypie)]]></author>
			<pubDate>Tue, 22 Sep 2009 20:53:26 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/7807/mod-topic-resolved-or-not/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Admin report]]></title>
			<link>http://punbb.informer.com/forums/topic/22110/admin-report/new/posts/</link>
			<description><![CDATA[<p>is there have a mod that only show reports to the moderator the section he/she handle only.?<br />But on the other hand, they can click &#039;Show all reports&#039; to see all reports from other section they do not moderate.<br />so with this mod its easy for the moderators to zap report from the section they handle.</p>]]></description>
			<author><![CDATA[dummy@example.com (MCommunity)]]></author>
			<pubDate>Fri, 04 Sep 2009 14:37:55 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/22110/admin-report/new/posts/</guid>
		</item>
	</channel>
</rss>
