peterisgb Posted April 25, 2012 Posted April 25, 2012 (edited) Ok i have made a usersonline page, its really good i think, Its Defo needs cleaning up. :s i'm abit of a messy worker. usersonline.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. The Users Online page has. Owner Image, Staff Image, Donator Image, Donator Privacy, (LINK) Last Page View, (LINK) Admin Auto Bypass Donator Privacy, Good Layout Etc, Mods you will need to make this work 100%. Rating Mod, Nugde Mod, Human VS Zombie (Optional). thanks, Edited April 27, 2012 by peterisgb My Mods i made have been linked so you can use this mod better. Quote
Lithium Posted April 25, 2012 Posted April 25, 2012 Why not post it as it is, and surely someone will clean it up... Quote
peterisgb Posted April 25, 2012 Author Posted April 25, 2012 Why not post it as it is, and surely someone will clean it up... ok done. Post Above Updated. Quote
Lithium Posted April 25, 2012 Posted April 25, 2012 (edited) I won't be cleaning but... take this as an example... $lk=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-1440*60"); You are wasting resources selecting * when you can easily select just one column $lk = mysql_query("SELECT COUNT(`userid`) as `twentyfour` FROM `users` WHERE `laston` > unix_timestamp() - (1440*60)"); try to restrain the use of the SELECT *, using the less possible fields on the call Edited April 25, 2012 by Lithium Quote
KyleMassacre Posted April 26, 2012 Posted April 26, 2012 (edited) well if i wanted to get this to work 100% how about the SQLs and the other mods? And also, isnt this just going to show that every user that happens to go to users online is on users online for ever? Edited April 26, 2012 by KyleMassacre Quote
peterisgb Posted April 26, 2012 Author Posted April 26, 2012 well if i wanted to get this to work 100% how about the SQLs and the other mods? And also, isnt this just going to show that every user that happens to go to users online is on users online for ever? the sqls aint hard to guess and about staying online, well yeah thats the idea. having usersonline all the time goes alot furhter in the game, plus not everyone stays online anyway, the system is good. Quote
KyleMassacre Posted April 26, 2012 Posted April 26, 2012 Yeah but if I were to go and look at userss online every single one of them would say that the last page they went to was users online even if they were browsing the forums or in a chat etc etc etc. I will say it looks a whole lot better than a lot of these files so good job, I uploaded it I just got to do some tweaks.but overall I like it Quote
rulerofzu Posted April 26, 2012 Posted April 26, 2012 Kyle your assuming he doesnt update their location when they go to the forums etc Ive seen mods like that before bad ones but ive seen them :D Quote
KyleMassacre Posted April 26, 2012 Posted April 26, 2012 (edited) I think its a pretty cool feature and it doesnt seem like a bad idea for the most part but I guess the question would be for an average sized game with average users online how would it be on resources? Im not too saavy with limiting resource use but would it lag a bit? Oh and yeah I did just see he says he made the users last page mod lol my bad I should look with my eyes instead of my mouth Edited April 26, 2012 by KyleMassacre Oopsies Quote
peterisgb Posted April 27, 2012 Author Posted April 27, 2012 (edited) I think its a pretty cool feature and it doesnt seem like a bad idea for the most part but I guess the question would be for an average sized game with average users online how would it be on resources? Im not too saavy with limiting resource use but would it lag a bit? Oh and yeah I did just see he says he made the users last page mod lol my bad I should look with my eyes instead of my mouth Both mods that i made have been linked to the main post, click the LINK button to get the other 2 mods. hope that helps Edited April 27, 2012 by peterisgb spelling Quote
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.