<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Users online with pictures, newest 5 users with pictures]]></title>
		<link>https://punbb.informer.com/forums/topic/15045/users-online-with-pictures-newest-5-users-with-pictures/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/15045/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Users online with pictures, newest 5 users with pictures.]]></description>
		<lastBuildDate>Sun, 13 Dec 2009 08:02:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/132821/#p132821</link>
			<description><![CDATA[<div class="quotebox"><cite>Peter wrote:</cite><blockquote><p>Sorry, I&#039;d overlooked Smartys&#039; post from 2007-03-18. I should be able to figure it out (again).</p><p>But I need the solution for the &quot;latest registered 5 users&quot;, instead of &quot;users online&quot;. Any pointers how to do that?</p><p>Thanks all!</p></blockquote></div><p>any uptdate on this? I would love to use something like this to show last 5 registered users</p>]]></description>
			<author><![CDATA[null@example.com (Source Code)]]></author>
			<pubDate>Sun, 13 Dec 2009 08:02:41 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/132821/#p132821</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/105435/#p105435</link>
			<description><![CDATA[<p>Sorry, I&#039;d overlooked Smartys&#039; post from 2007-03-18. I should be able to figure it out (again).</p><p>But I need the solution for the &quot;latest registered 5 users&quot;, instead of &quot;users online&quot;. Any pointers how to do that?</p><p>Thanks all!</p>]]></description>
			<author><![CDATA[null@example.com (Peter)]]></author>
			<pubDate>Sun, 16 Dec 2007 01:26:29 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105435/#p105435</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/105434/#p105434</link>
			<description><![CDATA[<p>Which part?</p>]]></description>
			<author><![CDATA[null@example.com (MattF)]]></author>
			<pubDate>Sun, 16 Dec 2007 01:09:53 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105434/#p105434</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/105396/#p105396</link>
			<description><![CDATA[<p>How do I actually show the results of Smarty&#039;s php code?</p><p>I&#039;ve tried </p><div class="codebox"><pre><code>&lt;?php echo $pun_user_online ?&gt;</code></pre></div><p>within the html, but that didn&#039;t do anything.</p>]]></description>
			<author><![CDATA[null@example.com (Peter)]]></author>
			<pubDate>Sat, 15 Dec 2007 00:28:26 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105396/#p105396</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/92144/#p92144</link>
			<description><![CDATA[<p>Big thanks to Smartys for helping with this. It&#039;s working now<br />My $40 donation is in the pipeline</p>]]></description>
			<author><![CDATA[null@example.com (yonnermark)]]></author>
			<pubDate>Thu, 19 Apr 2007 08:32:41 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/92144/#p92144</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/92140/#p92140</link>
			<description><![CDATA[<div class="quotebox"><cite>downliner wrote:</cite><blockquote><p>Can I ask what is displayed if the user has not uploaded an avatar?</p><p>Is it possible to display a default image for users who haven&#039;t uploaded something?</p></blockquote></div><p>In the example I posted? The username is displayed like normal<br />You could easily change the else clause to display an image instead</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Thu, 19 Apr 2007 01:50:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/92140/#p92140</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/92137/#p92137</link>
			<description><![CDATA[<p>Can I ask what is displayed if the user has not uploaded an avatar?</p><p>Is it possible to display a default image for users who haven&#039;t uploaded something?</p>]]></description>
			<author><![CDATA[null@example.com (downliner)]]></author>
			<pubDate>Thu, 19 Apr 2007 00:49:28 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/92137/#p92137</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/92133/#p92133</link>
			<description><![CDATA[<p>Sure, just send me an email</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Wed, 18 Apr 2007 23:47:26 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/92133/#p92133</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/92132/#p92132</link>
			<description><![CDATA[<p>Hi Smartys.<br />I wonder.... I tried your code but nothing changed at all.<br />Would you be willing to edit my files directly if I give you the cpanel user/pass to my hosting account?<br />And once its working I&#039;ll donate to the punbb option?<br />My users will love this,&nbsp; know they will</p><p>Cheers<br />Mark</p>]]></description>
			<author><![CDATA[null@example.com (yonnermark)]]></author>
			<pubDate>Wed, 18 Apr 2007 23:41:16 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/92132/#p92132</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/92122/#p92122</link>
			<description><![CDATA[<p>I&#039;ll do it without joining the users table <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>index.php</p><p>FIND<br /></p><div class="codebox"><pre><code>    $result = $db-&gt;query(&#039;SELECT user_id, ident FROM &#039;.$db-&gt;prefix.&#039;online WHERE idle=0 ORDER BY ident&#039;, true) or error(&#039;Unable to fetch online list&#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;&#039;.pun_htmlspecialchars($pun_user_online[&#039;ident&#039;]).&#039;&lt;/a&gt;&#039;;
        else
            ++$num_guests;
    }</code></pre></div><p>REPLACE WITH<br /></p><div class="codebox"><pre><code>    $result = $db-&gt;query(&#039;SELECT user_id, ident FROM &#039;.$db-&gt;prefix.&#039;online WHERE idle=0 ORDER BY ident&#039;, true) or error(&#039;Unable to fetch online list&#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)
        {
            if ($img_size = @getimagesize($pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$pun_user_online[&#039;user_id&#039;].&#039;.gif&#039;))
                $users[] = &quot;\n\t\t\t\t&quot;.&#039;&lt;dd&gt;&lt;a title=&quot;&#039;.pun_htmlspecialchars($pun_user_online[&#039;ident&#039;]).&#039;&quot; href=&quot;profile.php?id=&#039;.$pun_user_online[&#039;user_id&#039;].&#039;&quot;&gt;&lt;img src=&quot;&#039;.$pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$pun_user_online[&#039;user_id&#039;].&#039;.gif&quot; &#039;.$img_size[3].&#039; alt=&quot;&quot; /&gt;&lt;/a&gt;&#039;;
            else if ($img_size = @getimagesize($pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$pun_user_online[&#039;user_id&#039;].&#039;.jpg&#039;))
                $users[] = &quot;\n\t\t\t\t&quot;.&#039;&lt;dd&gt;&lt;a title=&quot;&#039;.pun_htmlspecialchars($pun_user_online[&#039;ident&#039;]).&#039;&quot; href=&quot;profile.php?id=&#039;.$pun_user_online[&#039;user_id&#039;].&#039;&quot;&gt;&lt;img src=&quot;&#039;.$pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$pun_user_online[&#039;user_id&#039;].&#039;.jpg&quot; &#039;.$img_size[3].&#039; alt=&quot;&quot; /&gt;&lt;/a&gt;&#039;;
            else if ($img_size = @getimagesize($pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$pun_user_online[&#039;user_id&#039;].&#039;.png&#039;))
                $users[] = &quot;\n\t\t\t\t&quot;.&#039;&lt;dd&gt;&lt;a title=&quot;&#039;.pun_htmlspecialchars($pun_user_online[&#039;ident&#039;]).&#039;&quot; href=&quot;profile.php?id=&#039;.$pun_user_online[&#039;user_id&#039;].&#039;&quot;&gt;&lt;img src=&quot;&#039;.$pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$pun_user_online[&#039;user_id&#039;].&#039;.png&quot; &#039;.$img_size[3].&#039; alt=&quot;&quot; /&gt;&lt;/a&gt;&#039;;
            else
                $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;&#039;.pun_htmlspecialchars($pun_user_online[&#039;ident&#039;]).&#039;&lt;/a&gt;&#039;;
        }
        else
            ++$num_guests;
    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Wed, 18 Apr 2007 20:50:40 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/92122/#p92122</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/92115/#p92115</link>
			<description><![CDATA[<p>I will donate £20 to PunBB if someone can get this working.<br />I know that&#039;s not much but that&#039;s all I got</p>]]></description>
			<author><![CDATA[null@example.com (yonnermark)]]></author>
			<pubDate>Wed, 18 Apr 2007 18:01:10 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/92115/#p92115</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/92057/#p92057</link>
			<description><![CDATA[<p>did anyone get this working?</p><br /><p>Q</p>]]></description>
			<author><![CDATA[null@example.com (quaker)]]></author>
			<pubDate>Tue, 17 Apr 2007 17:19:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/92057/#p92057</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/90151/#p90151</link>
			<description><![CDATA[<p>viewtopic.php has this:<br /></p><div class="codebox"><pre><code>        if ($pun_config[&#039;o_avatars&#039;] == &#039;1&#039; &amp;&amp; $cur_post[&#039;use_avatar&#039;] == &#039;1&#039; &amp;&amp; $pun_user[&#039;show_avatars&#039;] != &#039;0&#039;)
        {
            if ($img_size = @getimagesize($pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$cur_post[&#039;poster_id&#039;].&#039;.gif&#039;))
                $user_avatar = &#039;&lt;img src=&quot;&#039;.$pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$cur_post[&#039;poster_id&#039;].&#039;.gif&quot; &#039;.$img_size[3].&#039; alt=&quot;&quot; /&gt;&#039;;
            else if ($img_size = @getimagesize($pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$cur_post[&#039;poster_id&#039;].&#039;.jpg&#039;))
                $user_avatar = &#039;&lt;img src=&quot;&#039;.$pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$cur_post[&#039;poster_id&#039;].&#039;.jpg&quot; &#039;.$img_size[3].&#039; alt=&quot;&quot; /&gt;&#039;;
            else if ($img_size = @getimagesize($pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$cur_post[&#039;poster_id&#039;].&#039;.png&#039;))
                $user_avatar = &#039;&lt;img src=&quot;&#039;.$pun_config[&#039;o_avatars_dir&#039;].&#039;/&#039;.$cur_post[&#039;poster_id&#039;].&#039;.png&quot; &#039;.$img_size[3].&#039; alt=&quot;&quot; /&gt;&#039;;
        }
        else
            $user_avatar = &#039;&#039;;</code></pre></div><p>profile.php has similar code. I probably need an if/else thingy, but I don&#039;t need the getimagesize stuff and don&#039;t know how to worm this into what I had. The possible variations to try run in the millions.</p><p>I give up.</p>]]></description>
			<author><![CDATA[null@example.com (Peter)]]></author>
			<pubDate>Sun, 18 Mar 2007 15:34:48 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/90151/#p90151</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/90149/#p90149</link>
			<description><![CDATA[<p>Take a look at how viewtopic.php does it</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 18 Mar 2007 15:19:16 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/90149/#p90149</guid>
		</item>
		<item>
			<title><![CDATA[Re: Users online with pictures, newest 5 users with pictures]]></title>
			<link>https://punbb.informer.com/forums/post/90148/#p90148</link>
			<description><![CDATA[<p>I&#039;ve tried adding &#039;.$avatar_format.&#039; instead of jpg, but that didn&#039;t work. Is there an easy solution?</p>]]></description>
			<author><![CDATA[null@example.com (Peter)]]></author>
			<pubDate>Sun, 18 Mar 2007 15:15:48 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/90148/#p90148</guid>
		</item>
	</channel>
</rss>
