Isomerizer Posted April 22, 2008 Share Posted April 22, 2008 Re: online/offline/total users I don't know why your using <?php ?> <? ?> Shouldn't this just work.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 17, 2008 Share Posted May 17, 2008 Re: online/offline/total users or you could You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. not tested lol but im sure that would work perfectly... Quote Link to comment Share on other sites More sharing options...
mdshare Posted May 17, 2008 Share Posted May 17, 2008 Re: online/offline/total users Now this would create several serious issues as you query your db on each main page hit Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 17, 2008 Share Posted May 17, 2008 Re: online/offline/total users how so? Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted May 18, 2008 Share Posted May 18, 2008 Re: online/offline/total users how so? It could cause lag, as its performing them queries every time someone stumbles upon your login.php, one of your most visited pages, plus this page is open to the public and could be constantly hit on to cause the database to go crazy. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 18, 2008 Share Posted May 18, 2008 Re: online/offline/total users ah so what would be the best way to do it without causing much of a lag Quote Link to comment Share on other sites More sharing options...
chatghosty Posted June 27, 2008 Share Posted June 27, 2008 Re: online/offline/total users Can you mod this code for V1 lite? :mrgreen: $sql = "SELECT COUNT(userid) FROM users"; $rs = mysql_query($sql); $row = mysql_fetch_array($rs); $total_users = $row[0]; $sql = sprintf("SELECT COUNT(userid) FROM users WHERE (laston > %u)", time() - 900); $rs = mysql_query($sql); $row = mysql_fetch_array($rs); $users_online = $row[0]; $users_offline = $total_users - $users_online; Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 12, 2008 Share Posted July 12, 2008 Re: online/offline/total users umm..it is for v1 already and it should work v1 and lite... :? :? :? i think it should...? im not shure never really used one but i will try it Quote Link to comment Share on other sites More sharing options...
Tonka Posted July 12, 2008 Author Share Posted July 12, 2008 Re: online/offline/total users this should work just fine for v1 Quote Link to comment Share on other sites More sharing options...
TipZ Posted July 12, 2008 Share Posted July 12, 2008 Re: online/offline/total users can this be added into a header ?? Quote Link to comment Share on other sites More sharing options...
Tonka Posted July 13, 2008 Author Share Posted July 13, 2008 Re: online/offline/total users Yes you can, Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add Below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and then just add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. where every you want it to be displayed Quote Link to comment Share on other sites More sharing options...
TipZ Posted July 13, 2008 Share Posted July 13, 2008 Re: online/offline/total users Great !! :-D thanks have tryed to put it in here butthat not worked haha You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted July 22, 2008 Share Posted July 22, 2008 Re: online/offline/total users Stick inbetween those 2 lines of code.. Quote Link to comment Share on other sites More sharing options...
$$ ?????? $$ Posted August 1, 2008 Share Posted August 1, 2008 Re: online/offline/total users Theirs to many and i don't know which one to use :| Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted August 5, 2008 Share Posted August 5, 2008 Re: online/offline/total users This one: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Theirs to many and i don't know which one to use :| Quote Link to comment Share on other sites More sharing options...
KingRise Posted August 5, 2008 Share Posted August 5, 2008 Re: online/offline/total users does this even work because it never seems to dispay the total members etc only (((Online:)))) Quote Link to comment Share on other sites More sharing options...
Tonka Posted August 6, 2008 Author Share Posted August 6, 2008 Re: online/offline/total users it works fine, i use it on my game Quote Link to comment Share on other sites More sharing options...
KingRise Posted August 6, 2008 Share Posted August 6, 2008 Re: online/offline/total users ok Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.