<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - [mod release] Last 24 hours visited users]]></title>
		<link>http://punbb.informer.com/forums/topic/18660/mod-release-last-24-hours-visited-users/</link>
		<description><![CDATA[The most recent posts in [mod release] Last 24 hours visited users.]]></description>
		<lastBuildDate>Sat, 31 Jan 2009 23:23:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/123901/#p123901</link>
			<description><![CDATA[<p>I&#039;ll be doing this mod 2moz!</p>]]></description>
			<author><![CDATA[dummy@example.com (esupergood)]]></author>
			<pubDate>Sat, 31 Jan 2009 23:23:24 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/123901/#p123901</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/123881/#p123881</link>
			<description><![CDATA[<p>can some one please make an extension out of that</p>]]></description>
			<author><![CDATA[dummy@example.com (SuperMAG)]]></author>
			<pubDate>Sat, 31 Jan 2009 18:24:39 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/123881/#p123881</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/116523/#p116523</link>
			<description><![CDATA[<p>awesome</p>]]></description>
			<author><![CDATA[dummy@example.com (mrse0)]]></author>
			<pubDate>Tue, 08 Jul 2008 17:33:00 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/116523/#p116523</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/116520/#p116520</link>
			<description><![CDATA[<div class="quotebox"><cite>mrse0 wrote:</cite><blockquote><p>hey please make an extension of this!</p></blockquote></div><p>It is already in development: pun_stat.<br />Will be done in a week or so.</p>]]></description>
			<author><![CDATA[dummy@example.com (Anatoly)]]></author>
			<pubDate>Tue, 08 Jul 2008 17:02:51 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/116520/#p116520</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/116515/#p116515</link>
			<description><![CDATA[<p>hey please make an extension of this!</p>]]></description>
			<author><![CDATA[dummy@example.com (mrse0)]]></author>
			<pubDate>Tue, 08 Jul 2008 16:35:41 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/116515/#p116515</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/116071/#p116071</link>
			<description><![CDATA[<div class="quotebox"><cite>lie2815 wrote:</cite><blockquote><p>I wrote a little tutorial here:<br /><a href="http://lie2815.heliohost.org/?article=3">http://lie2815.heliohost.org/?article=3</a></p></blockquote></div><p>Nice tutorial, though you may update it adding hook priorities and extension dependencies.</p><p>PS: &quot;01. How to create a simple extension&quot; moved down under all other blocks possibly because of &quot;Code:&quot; block being too wide (FF3 @ 1680x1050).</p>]]></description>
			<author><![CDATA[dummy@example.com (Anatoly)]]></author>
			<pubDate>Wed, 25 Jun 2008 06:57:01 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/116071/#p116071</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/116070/#p116070</link>
			<description><![CDATA[<p>I wrote a little tutorial here:<br /><a href="http://lie2815.heliohost.org/?article=3">http://lie2815.heliohost.org/?article=3</a></p>]]></description>
			<author><![CDATA[dummy@example.com (lie2815)]]></author>
			<pubDate>Wed, 25 Jun 2008 06:34:37 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/116070/#p116070</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/116065/#p116065</link>
			<description><![CDATA[<p>Any chance of a release of this for RC?</p>]]></description>
			<author><![CDATA[dummy@example.com (HOLLYWOOD)]]></author>
			<pubDate>Wed, 25 Jun 2008 03:39:49 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/116065/#p116065</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/111290/#p111290</link>
			<description><![CDATA[<p>hmm ... I have got to read about them ... learn how to make then ... <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (mzonas)]]></author>
			<pubDate>Sun, 09 Mar 2008 21:29:32 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/111290/#p111290</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/111287/#p111287</link>
			<description><![CDATA[<p>Are you serious?<br />The whole point of extensions is that you don&#039;t have to modify the source code. You can disable them if they clash, and tell the developers.</p>]]></description>
			<author><![CDATA[dummy@example.com (elbekko)]]></author>
			<pubDate>Sun, 09 Mar 2008 21:15:11 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/111287/#p111287</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/111286/#p111286</link>
			<description><![CDATA[<p>well, don&#039;t know how to do it <img src="http://punbb.informer.com/forums/img/smilies/mad.png" width="15" height="15" alt="mad" />, anyway, I think if you use a several extentions, they could not be friendly with others ... that&#039;s why it&#039;s better to have manually installed mod.</p>]]></description>
			<author><![CDATA[dummy@example.com (mzonas)]]></author>
			<pubDate>Sun, 09 Mar 2008 20:46:24 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/111286/#p111286</guid>
		</item>
		<item>
			<title><![CDATA[Re: [mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/111285/#p111285</link>
			<description><![CDATA[<p>Why not make an extensions of it <img src="http://punbb.informer.com/forums/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[dummy@example.com (kierownik)]]></author>
			<pubDate>Sun, 09 Mar 2008 20:44:10 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/111285/#p111285</guid>
		</item>
		<item>
			<title><![CDATA[[mod release] Last 24 hours visited users]]></title>
			<link>http://punbb.informer.com/forums/post/111282/#p111282</link>
			<description><![CDATA[<p><strong>Title:</strong> Last 24 hours visited users<br /><strong>Description:</strong> Lists all users who have visited the forum last 24 hours.<br /><strong>Author:</strong> mzonas (mzonas1989@gmail.com)<br /><strong>Admin Notes:</strong> I didn&#039;t copy anyone&#039;s work. I just made it by myself as I didn&#039;t see any other mod like this.<br /><strong>Installation:</strong></p><p>open footer.php<br /></p><div class="codebox"><pre><code>-----[FIND]-----
        // If there are registered users logged in, list them
        if (count($users) &gt; 0)
            echo &quot;\t\t\t&quot;.&#039;&lt;p&gt;&#039;.implode(&#039;, &#039;, $users).&#039;&lt;/p&gt;&#039;.&quot;\n&quot;;

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

    }

-----[ADD, AFTER]-----
        // 24 last visitors
        $query_time = time() - 86400;
        $query = array(
            &#039;SELECT&#039; =&gt; &#039;u.id, u.username&#039;,
            &#039;FROM&#039; =&gt; &#039;users AS u&#039;,
            &#039;WHERE&#039; =&gt; &#039;u.last_visit &gt;= \&#039;$query_time\&#039; AND u.id &gt; 1&#039;,
            &#039;ORDER BY&#039; =&gt; &#039;u.username&#039;
        );

        $result = $db-&gt;query_build($query, true) or error(__FILE__, __LINE__);
        $num_users_last24 = 0;
        $users24 = array();

            while ($pun_last24_users = $db-&gt;fetch_assoc($result))
            {
                if ($pun_last24_users[&#039;id&#039;] &gt; 1)
                    $users24[] = &#039;&lt;a href=&quot;&#039;.pun_link($pun_url[&#039;user&#039;], $pun_last24_users[&#039;id&#039;]).&#039;&quot;&gt;&#039;.htmlspecialchars($pun_last24_users[&#039;username&#039;]).&#039;&lt;/a&gt;&#039;;
                    ++$num_users_last24;
            }

?&gt;
            &lt;div id=&quot;onlinelist&quot;&gt;
                &lt;h3&gt;&lt;?php printf($lang_index[&#039;Online24&#039;], $num_users_last24) ?&gt;&lt;/h3&gt;

&lt;?php

            if ($num_users_last24 &gt; 0)
                echo &quot;\t\t\t&quot;.&#039;&lt;p&gt;&#039;.implode(&#039;, &#039;, $users24).&#039;&lt;/p&gt;&#039;.&quot;\n&quot;;

?&gt;

        &lt;/div&gt;</code></pre></div><p>open lang/English/index.php<br /></p><div class="codebox"><pre><code>-----[FIND]-----
&#039;Online&#039;                =&gt;    &#039;&lt;strong&gt;Online&lt;/strong&gt; ( Guests: &lt;strong&gt;%s&lt;/strong&gt; | Registered users: &lt;strong&gt;%s&lt;/strong&gt; )&#039;,    // As in &quot;Online: User A, User B etc.&quot;

-----[ADD, AFTER]-----
&#039;Online24&#039;              =&gt;  &#039;%s users have visited the forums last 24 hours: &#039;,</code></pre></div><p>All you have to do now is to save your files and upload to your server. Enjoy <img src="http://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (mzonas)]]></author>
			<pubDate>Sun, 09 Mar 2008 20:00:11 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/111282/#p111282</guid>
		</item>
	</channel>
</rss>
