![]() |
#11
|
|||
|
|||
![]()
ok so why not add something to the header that just adds say a one to the a cell in the user table everytime the header loads and then make a cron that takes away the one each minute.
It would be off by 59 seconds give or take but but if a person just wanted an idea of the useage that would work. Or make it add the new time stamp to header so each time it loaded they put in a new time stamp. My game shows the users online and it shows the number of seconds since they made their last click. if something like this is still wanted I can make it work but I don't want to put a lot of time into something that people don't really want. I'll be honest tho this script is written in a code that I don't really work with a lot, I was playing with it just to see and I got the cron 1 minute thing working, that is pretty simple but i was having a problem getting it to read the time stamp right. I work in php but this thing is totally different from the way that I write. I am sure I can get the time stamp to go but like i said i don't want to spend a lot of time if really isn't wanted. Last edited by Kaeliah; 01-26-2011 at 08:59 AM. Reason: Tripple post |
#12
|
||||
|
||||
![]()
You may want to use the edit button in the future.
![]() |
#13
|
|||
|
|||
![]()
Sorry old habit I am use to my forum and in that one people use it for more of a chat than a forum, i will refrain from doing so in the future.
|
#14
|
||||
|
||||
![]() Quote:
Anyway, some of your suggestions might work, but they'd take up a lot of resources. Redoing a timestamp EVERY time someone loaded a page? I had a small site that got over 2000 page loads a day. I can't imagine how much it would be for a larger site. Maybe make the session time out shorter, then everytime someone logs in record in it a new table and have a cron run by every hour to check to see if they're still logged in. |
#15
|
||||
|
||||
![]()
The easiest way to do it is to have the cookie from the login, store an 'isonline' variable, and have it delete itself after 15 minutes of no activity on the site, in case people forget to log out.
__________________
Have any questions?
Feel Free to PM Me! =D What you could get with a Premium Member account. The Forum has been released! |
#16
|
||||
|
||||
![]()
Below... Possible idea... may make a plugin if anyone says they want it, I will gladly code it
... Pseudo-code ACTIVATE Code:
$var = Get Current Page $res = Select all rows from table $prefix_activity if Number of Rows in $res > 249 { Delete oldest activity } Insert into $prefix_activity user, time, and current page //Show page normally This would work similar to the way you can view what the last activity on MyBB forums were, like whenever I go to HallOfFamer's profile, Majority of the time, hes lurking on the WHo's Online page... and i can see that So on the Latest Activity page of this mod It will list UP TO 250 Latest page visits and who was it, and WHen they did it You could optionally set it lower, just so it takes up less database space... Comprende? So HoF want me to write that out for 1.2 ? :D xD
__________________
dasheep.tk Last edited by HIddenPanda; 01-26-2011 at 10:56 PM. |
#17
|
||||
|
||||
![]()
A Who's Online list for our sites? Gah I'd love that, it's the best page in the world to sit on XD
__________________
![]() "I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo My Adoptables|Nuzlocke Webcomic |
#18
|
||||
|
||||
![]()
ohh man, I want, I want!!! An online list would be KILLER!!!
|
#19
|
|||
|
|||
![]()
I agree with Annatar! I would love one of them!
![]() |
#20
|
||||
|
||||
![]()
GOT it!
Will be posting it shortly!! |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Who's Online page | parayna | Questions and Supports | 2 | 12-11-2014 12:20 PM |
Online Page | Nieth | Questions and Supports | 7 | 11-26-2013 06:10 AM |
Who's Online Page | Yuki Night | Questions and Supports | 5 | 01-28-2013 11:53 PM |
online pet/art tools | Nemesis | Other Chat | 1 | 11-11-2012 01:34 PM |
Who's Online | Missy Master | Mys v1.1.x Mods | 4 | 02-26-2011 09:26 AM |
What's New? |
What's Hot? |
What's Popular? |