<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Who&#8217;s Online Counter</title>
	<atom:link href="http://notan00b.com/code-bin/whos-online-counter/feed/" rel="self" type="application/rss+xml" />
	<link>http://notan00b.com</link>
	<description>Tutorials, Scripts, and Rants</description>
	<lastBuildDate>Thu, 01 Jul 2010 05:02:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris T.</title>
		<link>http://notan00b.com/code-bin/whos-online-counter/comment-page-1/#comment-5038</link>
		<dc:creator>Chris T.</dc:creator>
		<pubDate>Tue, 29 Jun 2010 02:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?page_id=147#comment-5038</guid>
		<description>Thanks for the script !!
&lt;code&gt;
$wo = new WhoOnline($dbhost,$dbuser,$dbpass,$dbname);
$wo-&gt;username = $user-&gt;firstName // retrieved from my access class
$wo-&gt;TableSet(&quot;whosonline&quot;);
$wo-&gt;Update();
&lt;/code&gt;
worked perfectly.. even shows my registered users name in the table and guest if not reged..

Only thing I would change is its a little confusing to require the db params in the constructor and also having manual db params in the class :)</description>
		<content:encoded><![CDATA[<p>Thanks for the script !!<br />
<code><br />
$wo = new WhoOnline($dbhost,$dbuser,$dbpass,$dbname);<br />
$wo-&gt;username = $user-&gt;firstName // retrieved from my access class<br />
$wo-&gt;TableSet("whosonline");<br />
$wo-&gt;Update();<br />
</code><br />
worked perfectly.. even shows my registered users name in the table and guest if not reged..</p>
<p>Only thing I would change is its a little confusing to require the db params in the constructor and also having manual db params in the class <img src='http://notan00b.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sadrac</title>
		<link>http://notan00b.com/code-bin/whos-online-counter/comment-page-1/#comment-3276</link>
		<dc:creator>Sadrac</dc:creator>
		<pubDate>Wed, 21 Apr 2010 09:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?page_id=147#comment-3276</guid>
		<description>Sorry, i have a question.
Is the code above the ultimate and entire code version with the implementation of the handling of usernames? Or it still must be updated?

Thank you, and sorry for my bad english.</description>
		<content:encoded><![CDATA[<p>Sorry, i have a question.<br />
Is the code above the ultimate and entire code version with the implementation of the handling of usernames? Or it still must be updated?</p>
<p>Thank you, and sorry for my bad english.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: novakorn</title>
		<link>http://notan00b.com/code-bin/whos-online-counter/comment-page-1/#comment-2961</link>
		<dc:creator>novakorn</dc:creator>
		<pubDate>Sun, 11 Apr 2010 11:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?page_id=147#comment-2961</guid>
		<description>Man, take the effort and watch the code. It generates the mysql table for itself.</description>
		<content:encoded><![CDATA[<p>Man, take the effort and watch the code. It generates the mysql table for itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JOe</title>
		<link>http://notan00b.com/code-bin/whos-online-counter/comment-page-1/#comment-2477</link>
		<dc:creator>JOe</dc:creator>
		<pubDate>Wed, 31 Mar 2010 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?page_id=147#comment-2477</guid>
		<description>WHERE IS THE MySQL TABLES EXAMPLE OR FILE???????????????????? HOW TO SETUP MySQL???? Thanks</description>
		<content:encoded><![CDATA[<p>WHERE IS THE MySQL TABLES EXAMPLE OR FILE???????????????????? HOW TO SETUP MySQL???? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pyr0t3chnician</title>
		<link>http://notan00b.com/code-bin/whos-online-counter/comment-page-1/#comment-1671</link>
		<dc:creator>pyr0t3chnician</dc:creator>
		<pubDate>Thu, 18 Feb 2010 20:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?page_id=147#comment-1671</guid>
		<description>Check out the tutorial and same codes:
Tutorial: http://notan00b.com/tutorials/whosonline-tutorial/
Sample: http://notan00b.com/code-bin/whos-online-counter/whos-online-counter-sample-page/

They go over how to use it.  It is going to require a little bit of configuration depending on what you want it to do.  These are just jumping off points.</description>
		<content:encoded><![CDATA[<p>Check out the tutorial and same codes:<br />
Tutorial: <a href="http://notan00b.com/tutorials/whosonline-tutorial/" rel="nofollow">http://notan00b.com/tutorials/whosonline-tutorial/</a><br />
Sample: <a href="http://notan00b.com/code-bin/whos-online-counter/whos-online-counter-sample-page/" rel="nofollow">http://notan00b.com/code-bin/whos-online-counter/whos-online-counter-sample-page/</a></p>
<p>They go over how to use it.  It is going to require a little bit of configuration depending on what you want it to do.  These are just jumping off points.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter1968</title>
		<link>http://notan00b.com/code-bin/whos-online-counter/comment-page-1/#comment-1669</link>
		<dc:creator>peter1968</dc:creator>
		<pubDate>Thu, 18 Feb 2010 12:18:10 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?page_id=147#comment-1669</guid>
		<description>Maybe I&#039;m stupid, any ways I&#039;m fairly new at this php. I&#039;ve now read and searched on your sit for the code to inplant in my header.tpl file where I want the whosonline box shown, can&#039;t seem to find it. Maybe I&#039;ve overlooked...</description>
		<content:encoded><![CDATA[<p>Maybe I&#8217;m stupid, any ways I&#8217;m fairly new at this php. I&#8217;ve now read and searched on your sit for the code to inplant in my header.tpl file where I want the whosonline box shown, can&#8217;t seem to find it. Maybe I&#8217;ve overlooked&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pyr0t3chnician</title>
		<link>http://notan00b.com/code-bin/whos-online-counter/comment-page-1/#comment-182</link>
		<dc:creator>pyr0t3chnician</dc:creator>
		<pubDate>Mon, 28 Sep 2009 18:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?page_id=147#comment-182</guid>
		<description>You could set that up pretty easy:
&lt;pre lang=&quot;php&quot;&gt;
$who=new WhosOnline(&#039;localhost&#039;,&#039;user&#039;,&#039;pass&#039;,&#039;db&#039;);
$who-&gt;TableSet(&#039;whosonline&#039;);
$who-&gt;Update();
$whosonline=$who-&gt;Data(&#039;ARRAY&#039;);
echo &quot;&lt;table&gt;&quot;;
echo &quot;&lt;tr&gt;&quot;;
echo &quot;&lt;th&gt;Username&lt;/th&gt;&quot;;
echo &quot;&lt;th&gt;Online/Offline&lt;/th&gt;&quot;;
echo &quot;&lt;/tr&gt;&quot;;
$query=&quot;SELECT * FROM Users&quot;;
$result=mysql_query($query);
while($row=mysql_fetch_array($result))
{
   echo &quot;&lt;tr&gt;&quot;;
   echo &quot;&lt;td&gt;$row[username]&lt;/td&gt;&quot;;
   echo &quot;&lt;td&gt;&lt;font color=&quot;.(in_array($row[&#039;username&#039;],$whosonline)?&quot;&#039;green&#039;&gt;Online&quot;:&quot;&#039;red&#039;&gt;Offline&quot;).&quot;&lt;/font&gt;&lt;/td&gt;&quot;;
   echo &quot;&lt;/tr&gt;&quot;;
}
echo &quot;&lt;/table&gt;&quot;;
&lt;/pre&gt;

That should do it I think?</description>
		<content:encoded><![CDATA[<p>You could set that up pretty easy:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$who</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> WhosOnline<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'localhost'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'user'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'pass'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'db'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$who</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">TableSet</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'whosonline'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$who</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Update</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$whosonline</span><span style="color: #339933;">=</span><span style="color: #000088;">$who</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Data</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ARRAY'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;table&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;tr&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;th&gt;Username&lt;/th&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;th&gt;Online/Offline&lt;/th&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/tr&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$query</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;SELECT * FROM Users&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$result</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;tr&gt;&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;td&gt;<span style="color: #006699; font-weight: bold;">$row[username]</span>&lt;/td&gt;&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;td&gt;&lt;font color=&quot;</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$whosonline</span><span style="color: #009900;">&#41;</span>?<span style="color: #0000ff;">&quot;'green'&gt;Online&quot;</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;'red'&gt;Offline&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/font&gt;&lt;/td&gt;&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/tr&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/table&gt;&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>That should do it I think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crusaderscontend.com</title>
		<link>http://notan00b.com/code-bin/whos-online-counter/comment-page-1/#comment-177</link>
		<dc:creator>crusaderscontend.com</dc:creator>
		<pubDate>Mon, 28 Sep 2009 00:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?page_id=147#comment-177</guid>
		<description>I&#039;m with chrisjones. I&#039;d like to have the user name with a red/green icon indicating online/offline status on my site too.</description>
		<content:encoded><![CDATA[<p>I&#8217;m with chrisjones. I&#8217;d like to have the user name with a red/green icon indicating online/offline status on my site too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chrisjones</title>
		<link>http://notan00b.com/code-bin/whos-online-counter/comment-page-1/#comment-135</link>
		<dc:creator>chrisjones</dc:creator>
		<pubDate>Wed, 23 Sep 2009 19:51:04 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?page_id=147#comment-135</guid>
		<description>very interested in having site show which member is online...picture then word that says online/offline or a green dot or red dot representing online or offline</description>
		<content:encoded><![CDATA[<p>very interested in having site show which member is online&#8230;picture then word that says online/offline or a green dot or red dot representing online or offline</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pyr0t3chnician</title>
		<link>http://notan00b.com/code-bin/whos-online-counter/comment-page-1/#comment-134</link>
		<dc:creator>pyr0t3chnician</dc:creator>
		<pubDate>Wed, 23 Sep 2009 15:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?page_id=147#comment-134</guid>
		<description>Very possible. I will work on this tomorrow.  I have a few ideas on how to do this and will update the post.</description>
		<content:encoded><![CDATA[<p>Very possible. I will work on this tomorrow.  I have a few ideas on how to do this and will update the post.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
