Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Who's Online (http://www.mysidiaadoptables.com/forum/showthread.php?t=1744)

RoconzaArt 01-20-2011 03:38 PM

Who's Online
 
I think it would be handy for admins and users to have a who's online feature.

elfhome 01-20-2011 04:15 PM

Do you mean for the adoptables site itself?
A way must exist because on a myadopts hosted site there is online.php

Kaeliah 01-20-2011 04:20 PM

There is. Although I'm not positive as to how this script is done... I'll have to do a little research.

Hall of Famer 01-20-2011 04:59 PM

Well there are already templates we can make use of for a possible who's online script, lemme find one. Oh this one looks good to me:
http://www.642weather.com/weather/sc...hos-online.php

RoconzaArt 01-20-2011 05:02 PM

Quote:

Originally Posted by elfhome (Post 12870)
Do you mean for the adoptables site itself?
A way must exist because on a myadopts hosted site there is online.php


I remember there was a script for it but It was not in the version I installed. I do recall there was a who's online mod but that was a while ago and my memory fails me.

Bloodrun 01-21-2011 12:14 AM

I had made a whose online add-on a long time ago, I wouldnt suggest using it.

I need to get it to work with cookies before using it. It would be safer that way.

Kaeliah 01-21-2011 12:24 AM

See now I have no idea how to manipulate cookies so this is why I need to research. ^.^

Missy Master 01-23-2011 08:06 AM

I would absolutely love to be able to have a who's online feature!!

I've tried to mod this myself and failed!

Forsaken 01-26-2011 07:00 AM

Couldn't you just add a time stamp to the user table for when they login and then have it show who is there for a certain count of minutes? That is how i have it on my game.

Kaeliah 01-26-2011 08:02 AM

That's not really accurate though. If they log out you could do that, but if they don't log out or they're still playing a couple hours later it doesn't show they are online.

Forsaken 01-26-2011 08:25 AM

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.

RoconzaArt 01-26-2011 08:33 AM

You may want to use the edit button in the future. :smile:

Forsaken 01-26-2011 08:39 AM

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.

Kaeliah 01-26-2011 08:57 AM

Quote:

Originally Posted by Forsaken (Post 13683)
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.

I fixed the posts. ^.^

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.

Bloodrun 01-26-2011 10:44 AM

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.

HIddenPanda 01-26-2011 08:23 PM

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

ONly bad part is, you would have to insert on every page you want it to work on OR put it in functions.php or (if my idea is used...) templatedeff.php (or whatever i called it, i forgot)

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

PTGigi 01-26-2011 08:36 PM

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

Missy Master 01-31-2011 02:14 PM

ohh man, I want, I want!!! An online list would be KILLER!!!

Lunaria 02-11-2011 06:37 PM

I agree with Annatar! I would love one of them!:pleased:

Missy Master 02-16-2011 02:03 PM

GOT it!

Will be posting it shortly!!

Hall of Famer 02-16-2011 03:14 PM

So Anna is making a whos online mod now? Awesome, I am sure it will help a lot of people. ^^

Missy Master 02-16-2011 07:57 PM

it's done, but back up before using !! Its in the Mods section in its own thread!

Hall of Famer 02-17-2011 12:41 AM

Alright I will check it out in a bit Anna, thank you so much.

Missy Master 02-18-2011 09:22 AM

Very welcome! :)


All times are GMT -5. The time now is 04:26 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.