<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Multiple view of a forum after reply ?]]></title>
		<link>https://punbb.informer.com/forums/topic/13232/multiple-view-of-a-forum-after-reply/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/13232/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Multiple view of a forum after reply ?.]]></description>
		<lastBuildDate>Sun, 24 Sep 2006 21:34:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77928/#p77928</link>
			<description><![CDATA[<p>Ok Smarty&#039;s i&#039;ll do that.<br />Many,many thanks to you and Elbekko for your great support.<br />Bye <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sun, 24 Sep 2006 21:34:16 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77928/#p77928</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77927/#p77927</link>
			<description><![CDATA[<p>I can&#039;t really help, since I have no clue what you may have changed <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />I&#039;d suggest getting a fresh copy of PunBB and applying the mods carefully, one by one, and seeing when you start having the error again</p><p>I&#039;ve moved this to Troubleshooting, since it isn&#039;t a bug in PunBB</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 24 Sep 2006 21:28:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77927/#p77927</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77926/#p77926</link>
			<description><![CDATA[<p>Ok thanks Smarty&#039;s i&#039;ve opened topics table in Mysql and i didn&#039;t see how to solve the problem ?</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sun, 24 Sep 2006 21:21:42 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77926/#p77926</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77923/#p77923</link>
			<description><![CDATA[<p>Well, that was a mod <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />I&#039;m not exactly sure what the issue is (unless it&#039;s related to some other modding you did) since there should only be 1 topic with the same last post ID as the forum&#039;s last post ID <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 24 Sep 2006 21:12:08 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77923/#p77923</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77921/#p77921</link>
			<description><![CDATA[<p>Sorry Smarty&#039;s i didn&#039;t read carrefully<br />Made the modifications<br />Solved the problem but the subject link doesn&#039;t appear in &#039;Last Post&#039; column as before ?</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sun, 24 Sep 2006 21:07:27 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77921/#p77921</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77919/#p77919</link>
			<description><![CDATA[<p>Lines, not line, there were two things I suggested removing</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 24 Sep 2006 20:59:52 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77919/#p77919</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77917/#p77917</link>
			<description><![CDATA[<p>Ok that&#039;s what happen when i removed the line suggested by Smarty&#039;s</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sun, 24 Sep 2006 20:55:37 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77917/#p77917</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77915/#p77915</link>
			<description><![CDATA[<p>Open common.php and uncomment the line (it says which line in the file <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" />)</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sun, 24 Sep 2006 20:48:51 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77915/#p77915</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77914/#p77914</link>
			<description><![CDATA[<div class="quotebox"><cite>elbekko wrote:</cite><blockquote><p>Enable debug mode.</p></blockquote></div><p>How do you do that ?</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sun, 24 Sep 2006 20:46:21 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77914/#p77914</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77912/#p77912</link>
			<description><![CDATA[<p>Enable debug mode.</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sun, 24 Sep 2006 20:44:42 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77912/#p77912</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77911/#p77911</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>Remove</p><p>LEFT JOIN &#039;.$db-&gt;prefix.&#039;topics AS t ON f.last_post_id=t.last_post_id<br />and <br />, t.subject</p></blockquote></div><p>Give error &#039; Impossible de retrouver la liste des catégories et des forums&#039;</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sun, 24 Sep 2006 20:39:14 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77911/#p77911</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77908/#p77908</link>
			<description><![CDATA[<p>Remove</p><p>LEFT JOIN &#039;.$db-&gt;prefix.&#039;topics AS t ON f.last_post_id=t.last_post_id<br />and <br />, t.subject</p><p>from the query. See if that fixes it. If not, add them back.</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 24 Sep 2006 20:31:16 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77908/#p77908</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77907/#p77907</link>
			<description><![CDATA[<p>The bug is sure comming from modifications i have made <img src="https://punbb.informer.com/forums/img/smilies/roll.png" width="15" height="15" alt="roll" /> in index.php and not a PunBB bug witch is perfect as everyone knows <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /> .<br />I&#039;ve send the original one and no problem.</p><p>Mods i&#039;ve added that affect index.php<br />Private Topic<br />Icon Specific to a forum name taken from the discussion here :<br /><a href="http://www.punbb.fr/forums/viewtopic.php?id=1828">http://www.punbb.fr/forums/viewtopic.php?id=1828</a><br />Members online today (french version) : <a href="http://www.punbb.fr/mods/telecharger.php?id=78">http://www.punbb.fr/mods/telecharger.php?id=78</a><br />View/Hide Category</p><p>I&#039;ll try to reverse the installation of those mods one by one ( i always backup files and database before doing modifications ) to try to find witch mod gives this bug.</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sun, 24 Sep 2006 20:28:03 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77907/#p77907</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77902/#p77902</link>
			<description><![CDATA[<p>The joining of the topics table is the problem. One sec and I&#039;ll see if I can fix it <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Edit: Actually, I&#039;m not 100% sure that is the issue <img src="https://punbb.informer.com/forums/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 24 Sep 2006 18:37:26 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77902/#p77902</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple view of a forum after reply ?]]></title>
			<link>https://punbb.informer.com/forums/post/77901/#p77901</link>
			<description><![CDATA[<p>Here is my index.php</p><div class="codebox"><pre><code>&lt;?php
/***********************************************************************

  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)

  This file is part of PunBB.

  PunBB is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 2 of the License,
  or (at your option) any later version.

  PunBB is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  MA  02111-1307  USA

************************************************************************/


define(&#039;PUN_ROOT&#039;, &#039;./&#039;);
require PUN_ROOT.&#039;include/common.php&#039;;


if ($pun_user[&#039;g_read_board&#039;] == &#039;0&#039;)
    message($lang_common[&#039;No view&#039;]);


// Load the index.php language file
require PUN_ROOT.&#039;lang/&#039;.$pun_user[&#039;language&#039;].&#039;/index.php&#039;;

$page_title = pun_htmlspecialchars($pun_config[&#039;o_board_title&#039;]);
define(&#039;PUN_ALLOW_INDEX&#039;, 1);
require PUN_ROOT.&#039;header.php&#039;;
$extra_sql = (isset($cat))?&#039;c.id=&#039;.$cat : &#039;c.visible=&quot;on&quot;&#039;;
// Print the categories and forums
$result = $db-&gt;query(&#039;SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.last_post_private, t.subject FROM &#039;.$db-&gt;prefix.&#039;categories AS c INNER JOIN &#039;.$db-&gt;prefix.&#039;forums AS f ON c.id=f.cat_id
LEFT JOIN &#039;.$db-&gt;prefix.&#039;topics AS t ON f.last_post_id=t.last_post_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 &#039;.$extra_sql.&#039; AND (fp.read_forum IS NULL OR fp.read_forum=1) ORDER BY c.disp_position, c.id, f.disp_position&#039;, true) or error(&#039;Impossible de retrouver la liste des catégories et des forums&#039;, __FILE__, __LINE__, $db-&gt;error());

$cur_category = 0;
$cat_count = 0;
while ($cur_forum = $db-&gt;fetch_assoc($result))
{
    $moderators = &#039;&#039;;

    if ($cur_forum[&#039;cid&#039;] != $cur_category)    // A new category since last iteration?
    {
        if ($cur_category != 0)
            echo &quot;\t\t\t&quot;.&#039;&lt;/tbody&gt;&#039;.&quot;\n\t\t\t&quot;.&#039;&lt;/table&gt;&#039;.&quot;\n\t\t&quot;.&#039;&lt;/div&gt;&#039;.&quot;\n\t&quot;.&#039;&lt;/div&gt;&#039;.&quot;\n&quot;.&#039;&lt;/div&gt;&#039;.&quot;\n\n&quot;;

        ++$cat_count;

?&gt;
&lt;div id=&quot;idx&lt;?php echo $cat_count ?&gt;&quot; class=&quot;blocktable&quot;&gt;
    &lt;h2&gt;&lt;span&gt;&lt;?php echo pun_htmlspecialchars($cur_forum[&#039;cat_name&#039;]) ?&gt;&lt;/span&gt;&lt;/h2&gt;
    &lt;div class=&quot;box&quot;&gt;
        &lt;div class=&quot;inbox&quot;&gt;
            &lt;table cellspacing=&quot;0&quot;&gt;
            &lt;thead&gt;
                &lt;tr&gt;
                    &lt;th class=&quot;tc2&quot; scope=&quot;col&quot;&gt; &lt;/th&gt;
                    &lt;th class=&quot;tcl&quot; scope=&quot;col&quot;&gt;&lt;?php echo $lang_common[&#039;Forum&#039;] ?&gt;&lt;/th&gt;
                    &lt;th class=&quot;tc2&quot; scope=&quot;col&quot;&gt;&lt;?php echo $lang_index[&#039;Topics&#039;] ?&gt;&lt;/th&gt;
                    &lt;th class=&quot;tc3&quot; scope=&quot;col&quot;&gt;&lt;?php echo $lang_common[&#039;Posts&#039;] ?&gt;&lt;/th&gt;
                    &lt;th class=&quot;tcr&quot; scope=&quot;col&quot;&gt;&lt;?php echo $lang_common[&#039;Last post&#039;] ?&gt;&lt;/th&gt;
                &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tbody&gt;
&lt;?php

        $cur_category = $cur_forum[&#039;cid&#039;];
    }

    $item_status = &#039;&#039;;
    $icon_text = $lang_common[&#039;Normal icon&#039;];
    $icon_type = &#039;icon&#039;;

    // Are there new posts?
    if (!$pun_user[&#039;is_guest&#039;] &amp;&amp; $cur_forum[&#039;last_post&#039;] &gt; $pun_user[&#039;last_visit&#039;])
    {
        $item_status = &#039;inew&#039;;
        $icon_text = $lang_common[&#039;New icon&#039;];
        $icon_type = &#039;icon inew&#039;;
    }

    // Is this a redirect forum?
    if ($cur_forum[&#039;redirect_url&#039;] != &#039;&#039;)
    {
        $forum_field = &#039;&lt;h3&gt;&lt;a href=&quot;&#039;.pun_htmlspecialchars($cur_forum[&#039;redirect_url&#039;]).&#039;&quot; title=&quot;&#039;.$lang_index[&#039;Link to&#039;].&#039; &#039;.pun_htmlspecialchars($cur_forum[&#039;redirect_url&#039;]).&#039;&quot;&gt;&#039;.pun_htmlspecialchars($cur_forum[&#039;forum_name&#039;]).&#039;&lt;/a&gt;&lt;/h3&gt;&#039;;
        $num_topics = $num_posts = &#039; &#039;;
        $item_status = &#039;iredirect&#039;;
        $icon_text = $lang_common[&#039;Redirect icon&#039;];
        $icon_type = &#039;icon&#039;;
    }
    else
    {
        $forum_field = &#039;&lt;h3&gt;&lt;a href=&quot;viewforum.php?id=&#039;.$cur_forum[&#039;fid&#039;].&#039;&quot;&gt;&#039;.pun_htmlspecialchars($cur_forum[&#039;forum_name&#039;]).&#039;&lt;/a&gt;&lt;div style=&quot;float:right;&quot;&gt;&lt;a href=&quot;extern.php?type=rss&amp;action=active&amp;fid=&#039;.$cur_forum[&#039;fid&#039;].&#039;&quot;&gt;&lt;img src=&quot;img/rss.png&quot; border=&quot;0&quot; height=&quot;15&quot; width=&quot;27&quot; alt=&quot;RSS&quot; align=&quot;middle&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/h3&gt;&#039;;
        $num_topics = $cur_forum[&#039;num_topics&#039;];
        $num_posts = $cur_forum[&#039;num_posts&#039;];
    }

    if ($cur_forum[&#039;forum_desc&#039;] != &#039;&#039;)
        $forum_field .= &quot;\n\t\t\t\t\t\t\t\t&quot;.$cur_forum[&#039;forum_desc&#039;];


    // If there is a last_post/last_poster.
    if ($cur_forum[&#039;last_post_private&#039;] == 1)
        $last_post = $lang_common[&#039;Private topic&#039;];
    elseif ($cur_forum[&#039;last_post_private&#039;] == 0 &amp;&amp; $cur_forum[&#039;last_post&#039;] != &#039;&#039;)
    $last_post = &#039;&lt;a href=&quot;viewtopic.php?pid=&#039;.$cur_forum[&#039;last_post_id&#039;].&#039;#p&#039;.$cur_forum[&#039;last_post_id&#039;].&#039;&quot;&gt;&#039;.$cur_forum[&#039;subject&#039;].&#039;&lt;/a&gt; &lt;span class=&quot;byuser&quot;&gt;&#039;.format_time($cur_forum[&#039;last_post&#039;]).&#039;  -  &#039;.$lang_common[&#039;by&#039;].&#039; &#039;.pun_htmlspecialchars($cur_forum[&#039;last_poster&#039;]).&#039;&lt;/span&gt;&#039;;
    else
        $last_post = &#039; &#039;;

    if ($cur_forum[&#039;moderators&#039;] != &#039;&#039;)
    {
        $mods_array = unserialize($cur_forum[&#039;moderators&#039;]);
        $moderators = array();

        while (list($mod_username, $mod_id) = @each($mods_array))
            $moderators[] = &#039;&lt;a href=&quot;profile.php?id=&#039;.$mod_id.&#039;&quot;&gt;&#039;.pun_htmlspecialchars($mod_username).&#039;&lt;/a&gt;&#039;;

        $moderators = &quot;\t\t\t\t\t\t\t\t&quot;.&#039;&lt;p&gt;&lt;em&gt;(&#039;.$lang_common[&#039;Moderated by&#039;].&#039;&lt;/em&gt; &#039;.implode(&#039;, &#039;, $moderators).&#039;)&lt;/p&gt;&#039;.&quot;\n&quot;;
    }

?&gt;
                 &lt;tr&lt;?php if ($item_status != &#039;&#039;) echo &#039; class=&quot;&#039;.$item_status.&#039;&quot;&#039;; ?&gt;&gt;
                    &lt;td class=&quot;tc2&quot;&gt;&lt;img src=&quot;./img/img_forum_&lt;?php echo $cur_forum[&#039;fid&#039;]?&gt;.png&quot;&gt;&lt;/td&gt;
                    &lt;td class=&quot;tcl&quot;&gt;
                        &lt;div class=&quot;intd&quot;&gt;
                            &lt;div class=&quot;&lt;?php echo $icon_type ?&gt;&quot;&gt;&lt;div class=&quot;nosize&quot;&gt;&lt;?php echo $icon_text ?&gt;&lt;/div&gt;&lt;/div&gt;
                            &lt;div class=&quot;tclcon&quot;&gt;
                                &lt;?php echo $forum_field.&quot;\n&quot;.$moderators ?&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/td&gt;
                    &lt;td class=&quot;tc2&quot;&gt;&lt;?php echo $num_topics ?&gt;&lt;/td&gt;
                    &lt;td class=&quot;tc3&quot;&gt;&lt;?php echo $num_posts ?&gt;&lt;/td&gt;
                    &lt;td class=&quot;tcr&quot;&gt;&lt;?php echo $last_post ?&gt;&lt;/td&gt;
                &lt;/tr&gt;
&lt;?php

}

// Did we output any categories and forums?
if ($cur_category &gt; 0)
    echo &quot;\t\t\t&quot;.&#039;&lt;/tbody&gt;&#039;.&quot;\n\t\t\t&quot;.&#039;&lt;/table&gt;&#039;.&quot;\n\t\t&quot;.&#039;&lt;/div&gt;&#039;.&quot;\n\t&quot;.&#039;&lt;/div&gt;&#039;.&quot;\n&quot;.&#039;&lt;/div&gt;&#039;.&quot;\n\n&quot;;
else
    echo &#039;&lt;div id=&quot;idx0&quot; class=&quot;block&quot;&gt;&lt;div class=&quot;box&quot;&gt;&lt;div class=&quot;inbox&quot;&gt;&lt;p&gt;&#039;.$lang_index[&#039;Empty board&#039;].&#039;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&#039;;


// Collect some statistics from the database
$result = $db-&gt;query(&#039;SELECT COUNT(id)-1 FROM &#039;.$db-&gt;prefix.&#039;users&#039;) or error(&#039;Impossible de retrouver le nombre total d\utilisateurs&#039;, __FILE__, __LINE__, $db-&gt;error());
$stats[&#039;total_users&#039;] = $db-&gt;result($result);

$result = $db-&gt;query(&#039;SELECT id, username FROM &#039;.$db-&gt;prefix.&#039;users ORDER BY registered DESC LIMIT 1&#039;) or error(&#039;Impossible de retrouver le dernier membre inscrit&#039;, __FILE__, __LINE__, $db-&gt;error());
$stats[&#039;last_user&#039;] = $db-&gt;fetch_assoc($result);

$result = $db-&gt;query(&#039;SELECT SUM(num_topics), SUM(num_posts) FROM &#039;.$db-&gt;prefix.&#039;forums&#039;) or error(&#039;Impossible de retrouver le nombre de discussions et de messages&#039;, __FILE__, __LINE__, $db-&gt;error());
list($stats[&#039;total_topics&#039;], $stats[&#039;total_posts&#039;]) = $db-&gt;fetch_row($result);

?&gt;
&lt;div id=&quot;brdstats&quot; class=&quot;block&quot;&gt;
    &lt;h2&gt;&lt;span&gt;&lt;?php echo $lang_index[&#039;Board info&#039;] ?&gt;&lt;/span&gt;&lt;/h2&gt;
    &lt;div class=&quot;box&quot;&gt;
        &lt;div class=&quot;inbox&quot;&gt;
            &lt;dl class=&quot;conr&quot;&gt;
                &lt;dt&gt;&lt;strong&gt;&lt;?php echo $lang_index[&#039;Board stats&#039;] ?&gt;&lt;/strong&gt;&lt;/dt&gt;
                &lt;dd&gt;&lt;?php echo $lang_index[&#039;No of users&#039;].&#039;: &lt;strong&gt;&#039;. $stats[&#039;total_users&#039;] ?&gt;&lt;/strong&gt;&lt;/dd&gt;
                &lt;dd&gt;&lt;?php echo $lang_index[&#039;No of topics&#039;].&#039;: &lt;strong&gt;&#039;.$stats[&#039;total_topics&#039;] ?&gt;&lt;/strong&gt;&lt;/dd&gt;
                &lt;dd&gt;&lt;?php echo $lang_index[&#039;No of posts&#039;].&#039;: &lt;strong&gt;&#039;.$stats[&#039;total_posts&#039;] ?&gt;&lt;/strong&gt;&lt;/dd&gt;
            &lt;/dl&gt;
            &lt;dl class=&quot;conl&quot;&gt;
                &lt;dt&gt;&lt;strong&gt;&lt;?php echo $lang_index[&#039;User info&#039;] ?&gt;&lt;/strong&gt;&lt;/dt&gt;
                &lt;dd&gt;&lt;?php echo $lang_index[&#039;Newest user&#039;] ?&gt;: &lt;a href=&quot;profile.php?id=&lt;?php echo $stats[&#039;last_user&#039;][&#039;id&#039;] ?&gt;&quot;&gt;&lt;?php echo pun_htmlspecialchars($stats[&#039;last_user&#039;][&#039;username&#039;]) ?&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;?php

if ($pun_config[&#039;o_users_online&#039;] == &#039;1&#039;)
{
    // Fetch users online info and generate strings for output
    $num_guests = 0;
    $users = array();
    $result = $db-&gt;query(&#039;SELECT user_id, ident, color FROM &#039;.$db-&gt;prefix.&#039;online WHERE idle=0 AND user_id!=2 ORDER BY ident&#039;, true) or error(&#039;Impossible de retrouver la liste des utilisateurs en ligne&#039;, __FILE__, __LINE__, $db-&gt;error());

    while ($pun_user_online = $db-&gt;fetch_assoc($result))
    {
        if ($pun_user_online[&#039;user_id&#039;] &gt; 1)
            $users[] = &quot;\n\t\t\t\t&quot;.&#039;&lt;dd&gt;&lt;a href=&quot;profile.php?id=&#039;.$pun_user_online[&#039;user_id&#039;].&#039;&quot;&gt;&lt;span style=&quot;color: &#039;.$pun_user_online[&#039;color&#039;].&#039;&quot;&gt;&#039;.pun_htmlspecialchars($pun_user_online[&#039;ident&#039;]).&#039;&lt;/span&gt;&lt;/a&gt;&#039;;
        else
            ++$num_guests;
    }

    $num_users = count($users);
    // utilisateurs en ligne aujourd&#039;hui
    $todaystamp = strtotime(date(&#039;Y-m-d&#039;));

    $result = $db-&gt;query(&#039;SELECT username, id, last_visit from &#039;.$db-&gt;prefix.&#039;users WHERE last_visit &gt;= \&#039;&#039;.$todaystamp.&#039;\&#039; ORDER by last_visit DESC&#039;) or error(&#039;Impossible de retrouver la liste des utilisateurs en ligne aujourd\&#039;hui&#039;, __FILE__, __LINE__, $db-&gt;error());

    $users_today = array();
    while ($pun_user_online_today = $db-&gt;fetch_assoc($result))
        $users_today[] .=  &quot;\n\t\t\t\t&quot;.&#039;&lt;dd&gt;&lt;a href=&quot;profile.php?id=&#039;.$pun_user_online_today[&#039;id&#039;].&#039;&quot; title=&quot;Dernière visite de &#039;.pun_htmlspecialchars($pun_user_online_today[&#039;username&#039;]).&#039; : &#039;.format_time($pun_user_online_today[&#039;last_visit&#039;]).&#039;&quot;&gt;&#039;.pun_htmlspecialchars($pun_user_online_today[&#039;username&#039;]).&#039;&lt;/a&gt;&#039;;
        
    $num_users_today = count($users_today);
    echo &quot;\t\t\t\t&quot;.&#039;&lt;dd&gt;&#039;.$lang_index[&#039;Users online&#039;].&#039;: &lt;strong&gt;&#039;.$num_users.&#039;&lt;/strong&gt;&lt;/dd&gt;&#039;.&quot;\n\t\t\t\t&quot;.&#039;&lt;dd&gt;&#039;.$lang_index[&#039;Users today&#039;].&#039;: &lt;strong&gt;&#039;.$num_users_today.&#039;&lt;/strong&gt;&lt;/dd&gt;&#039;.&quot;\n\t\t\t\t&quot;.&#039;&lt;dd&gt;&#039;.$lang_index[&#039;Guests online&#039;].&#039;: &lt;strong&gt;&#039;.$num_guests.&#039;&lt;/strong&gt;&lt;/dd&gt;&#039;.&quot;\n\t\t\t&quot;.&#039;&lt;/dl&gt;&#039;.&quot;\n&quot;;
    


    if ($num_users &gt; 0)
        echo &quot;\t\t\t&quot;.&#039;&lt;dl id=&quot;onlinelist&quot; class= &quot;clearb&quot;&gt;&#039;.&quot;\n\t\t\t\t&quot;.&#039;&lt;dt&gt;&lt;strong&gt;&#039;.$lang_index[&#039;Online&#039;].&#039;: &lt;/strong&gt;&lt;/dt&gt;&#039;.&quot;\t\t\t\t&quot;.implode(&#039;,&lt;/dd&gt; &#039;, $users).&#039;&lt;/dd&gt;&#039;.&quot;\n\t\t\t&quot;.&#039;&lt;/dl&gt;&#039;.&quot;\n&quot;;
    else
        echo &quot;\t\t\t&quot;.&#039;&lt;div class=&quot;clearer&quot;&gt;&lt;/div&gt;&#039;.&quot;\n&quot;;
    /// liste utilisateurs en ligne aujourd&#039;hui
    echo &quot;\t\t\t&quot;.&#039;&lt;dl id=&quot;onlinetodaylist&quot;&gt;&#039;.&quot;\n\t\t\t\t&quot;.&#039;&lt;dt&gt;&lt;strong&gt;&#039;.$lang_index[&#039;Online today&#039;].&#039;: &lt;/strong&gt;&lt;/dt&gt;&#039;;
                
    if ($num_users_today &gt; 0) 
        echo implode(&#039;,&lt;/dd&gt; &#039;, $users_today).&#039;&lt;/dd&gt;&#039;.&quot;\n\t\t\t&quot;.&#039;&lt;/dl&gt;&#039;.&quot;\n&quot;;
    else
        echo &#039;&lt;dd&gt;&lt;em&gt;&#039;.$lang_index[&#039;None&#039;].&#039;&lt;/em&gt;&lt;/dd&gt;&#039;.&quot;\n\t\t\t&quot;.&#039;&lt;/dl&gt;&#039;.&quot;\n&quot;;

}
else
    echo &quot;\t\t&quot;.&#039;&lt;/dl&gt;&#039;.&quot;\n\t\t\t&quot;.&#039;&lt;div class=&quot;clearer&quot;&gt;&lt;/div&gt;&#039;.&quot;\n&quot;;


?&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;?php

$footer_style = &#039;index&#039;;
require PUN_ROOT.&#039;footer.php&#039;;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sun, 24 Sep 2006 18:30:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77901/#p77901</guid>
		</item>
	</channel>
</rss>
