Jump to content
MakeWebGames

My Usersonline.php


peterisgb

Recommended Posts

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 by peterisgb
My Mods i made have been linked so you can use this mod better.
Link to comment
Share on other sites

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 by Lithium
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by KyleMassacre
Oopsies
Link to comment
Share on other sites

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 by peterisgb
spelling
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...