PDA

View Full Version : Who was online last X hours Dynamic


VBDev
03-21-2004, 10:00 PM
Who was online last X hours Dynamic

This hack is an evolution of my who was online last 24H dynamic.

It shows the username of the users that have been online in the last X hours.

You can now set the number of hours that are used for the who was online (1,2...).

This hack is dynamic,it means that it's updated at each user connection.



In the zip file there is an installer provided in French and English as weel (you just have to change the language of the installer in the first page of it.

Owen
03-22-2004, 07:16 PM
How is that different from the other hack? How does it count members?

Sound pretty nifty, but I'd like to know the difference regarding the counting.

VBDev
03-22-2004, 07:23 PM
The difference is that you can set the number of hours

For example if you want a who was online last 2 hours or 3 hours (as you want)

And it doesn't update at midnight like the other version of who was online last 24h do

Rampag33
03-22-2004, 07:53 PM
LOL small addition but I do like it.

Preds
03-22-2004, 08:57 PM
Installed, very nice. I had to do some modifications to make it work with the Welcome hack but I figured it out!

Thanks!

Gio Takahashi
03-22-2004, 10:43 PM
Thinking about installing this, although theres almost no need for it since I got last 24 hours and currently online. I assume this may take up a query?

enginethatcan't
03-23-2004, 12:24 AM
Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: CREATE TABLE usersonline (userid int(5) DEFAULT '0' NOT NULL, date varchar(10) DEFAULT '0' NOT NULL, datevraie DATETIME NOT NULL)
mysql error: Table 'usersonline' already exists

mysql error number: 1050

Date: Monday 22nd of March 2004 07:21:32 PM
Script: http://www.musclemorpheus.com/forum/admincp/wwoxh_install.php?etape=1&langue=en
Referer:
Username: *******
IP Address: **.***.***.****

VBDev
03-23-2004, 04:06 AM
@Gio_Takashi

Yes it take more than a query while it checks at each connection if the user has already been online during the last x hours and then it delete the member from the useronline table that have been online since more than the x hours.

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: CREATE TABLE usersonline (userid int(5) DEFAULT '0' NOT NULL, date varchar(10) DEFAULT '0' NOT NULL, datevraie DATETIME NOT NULL)
mysql error: Table 'usersonline' already exists

mysql error number: 1050

Date: Monday 22nd of March 2004 07:21:32 PM
Script: http://www.musclemorpheus.com/forum/admincp/wwoxh_install.php?etape=1&langue=en
Referer:
Username: *******
IP Address: **.***.***.****

if you have already install my who was online last 24h dynamic you must run first the uninstall process

enginethatcan't
03-23-2004, 08:58 AM
I uninstalled it and got this message on every page now

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: SELECT userid FROM usersonline WHERE userid=2
mysql error: Table 'vb_musclemorpheus_com.usersonline' doesn't exist

mysql error number: 1146

Date: Tuesday 23rd of March 2004 03:57:44 AM
Script: http://www.musclemorpheus.com/forum/admincp/whowasonline24h_rc2.php
Referer:
Username: *******
IP Address: ***.**.****.****.**

VBDev
03-23-2004, 09:02 AM
if you uninstalled it then ou must remove all the modifications from the file

this error comes from the fact that you didn't remove the modification from the sessions.php file

enginethatcan't
03-23-2004, 07:11 PM
Got it, but now it looks like this :confused:

VBDev
03-23-2004, 07:40 PM
you didn't installed the phrase

enginethatcan't
03-23-2004, 08:01 PM
yes I did...what was I supposed to change the 1 and 2 to? I assume change the 2 to how many hours? I want 48, so I put 48 instead....what do I put for the 1?

VBDev
03-24-2004, 09:15 AM
no you don't have to change the value in the phrase !

They are automatically set regarding the value you set in the option within the vbulletin options in the admincp

enginethatcan't
03-24-2004, 05:31 PM
ok...I got it but the names are showing up double in the "visitors who have visited the past 48 hours" who are on line, and who aren't but just visited are single.

enginethatcan't
03-24-2004, 05:33 PM
like this../

nineball
03-24-2004, 06:39 PM
I had the same problem. It's because you still have the original hack code in your index.php. It's double loading some names in the array. You need to make sure you only have the one query in your index.php.

VBDev
03-24-2004, 08:35 PM
Our team has opened its support forum.

So if you want better support on our hacks go on our forum: http://www.vbulletindev.net/

There are not a lot of hacks for the moment but it will come.

Cya soon on our forum :)

enginethatcan't
03-24-2004, 09:39 PM
I changed everything back. Now it shows who is online, but double still. What is responsible for this? is it a template problem? file problem?

VBDev
03-24-2004, 09:46 PM
template problem in my opinion

Ghostspy
04-07-2004, 03:49 AM
i cant find the option on my cpanel whats it under.

sammyman
04-09-2004, 04:27 PM
This hack sucks because it sometimes does not separates the names with commas. EX: sometimes it says "sammyman, rad rocker, slam" and other times it is like "sammymanradrockerslam" . I don't know what the deal is....

Virtex-II
04-11-2004, 02:51 PM
This is a great hack but I was wondering if is it possible to edit it so that if an user has some html to personalize the nick (like for example <b>Admin</b>) can the box show the name in bold or italic or whatever?

Thanks

Red Blaze
04-29-2004, 04:29 PM
Works great, thanks. :)

Cold Steel
05-05-2004, 08:38 PM
* Cold Steel installs.

However, invisible users (me) show up, and members that are supposed to be in bold, red, and italics, aren't.

https://vborg.vbsupport.ru/

Tried attaching it, but it didn't work.

jons5150
05-21-2004, 11:00 AM
Installed,and it shows, but now my AdminCP wont load.


Help!!!

jons5150
05-21-2004, 11:55 AM
It's getting worse:

Database error in vBulletin 3.0.1:

Invalid SQL: SELECT userid FROM usersonline WHERE userid=3
mysql error: Table 'vb3.usersonline' doesn't exist

mysql error number: 1146

Date: Friday 21st of May 2004 05:53:12 AM
Script: http://www.soberrecovery.com/forums/admincp/wwoxh_install.php
Referer:
Username: Jon
IP Address: 66.74.43.190


Need a little help here...

jons5150
05-21-2004, 12:20 PM
I have been able to get the forums and admin back up, but I cannot seem to get a clean un-install of this hack so that I can start over.

Please see: http://soberrecovery.com/forums/

tHe Rk
05-26-2004, 09:20 PM
Got it, but now it looks like this :confused:

Anyone having names show up duplicate like this need to fix the forumhome template. I either misread the template mod instructions or it was wrong, but you just have to move <hr> and hacked info below active users tag like this:

<div>$activeusers</div>
<hr>
<span class="smallfont">
<center><b><phrase 1="$nbusers" 2="$vboptions[wwolxh]">$vbphrase[connectes_dernieres_xh]</phrase></b></center><br>
$usernameonline
</span>
</div>

Cold Steel
06-18-2004, 08:59 PM
* Cold Steel installs.


However, invisible users (me) show up, and members that are supposed to be in bold, red, and italics, aren't.

http://webmaster.asiansinc.com/whosonline.GIF

Tried attaching it, but it didn't work.

Is anyone else getting this problem? Usergroups with HTML markup in their titles are getting it stripped.

Except for me, the admin.

budlite74
07-06-2004, 11:09 PM
nope ... didnt get that msg ... mine works great .. thanks guys

engquist
07-22-2004, 05:50 PM
It says:



You have successfully finished the uninstallation of the who was online last X hours dynamic hack...



as I finished installing. It says I "uninstalled" I'm guessing that is a typo.

anyway nice hack

clicks *install*

180967
07-24-2004, 06:57 AM
Ok guys I installed this one, I believe exactly doing as the installer ask, but all I get is the below part of the who was online, see attched picture. It says no-one has been online in the last 24 hours. Which is wrong. Or do I have to wait for it to update, like wait 24 hours after I have installed it for it too start working.

Hoping you can help, as this has me stumped. I have circled in PINK the area I am talking about. Why does it not show any number of members in the last 24 hours, plus who it was (The members names) etc?

I have also asked this question at the coders board.

Many thanks

Paul

:ermm:

180967
07-25-2004, 04:37 AM
Is anyone able to help me? I believe the problem is with the editing the installer says to do in the sessions.php file. I dont think it is working for me?

Please, anyone?

:rolleyes:

RetroDreams
08-21-2004, 02:47 PM
Installed and working so far on 3.0.3.

Good work.

ashley53680
08-21-2004, 09:03 PM
I *had* this installed perfectly, but I just upgraded to the newest version of VB.... well now I can't get it to install again. :(

It comes up with the error 1050


Any ideas?

Widey
08-30-2004, 08:18 PM
Installed perfectly first time, just one slight error. Some member names aren't being seperated by a ,

It looks like the last 2 members aren't being seperated. e.g.

member1, member2, member3, member4member5

Any suggestions would really be appreciated.

Thanks

Widey
09-04-2004, 10:38 AM
OK the , promblem seemed to sort itself out after a few hours.

I have a few groups where members online are identified with different markup (Bold, red etc)

This highlighting shows up in the who's online now, but not in the who's been online in the last X hours.

Any Ideas what I need to change to show the highlighting in the online in last x hours section?

Thanks

Widey

Tayeb
09-11-2004, 03:52 PM
Hello:

I am getting email with following error report:

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT attachmentid, COUNT(*) AS views FROM attachmentviews GROUP BY attachmentid
mysql error: Can't find file: 'attachmentviews.YMD' (errno: 2)

mysql error number: 1017

Date: Saturday 11th of September 2004 05:41:47 PM
Script: http://www.myiwc.com/forums/cron.php?&rand=862497
Referer: http://www.myiwc.com/forums/forumdisplay.php?f=35
Username: xxxxxxxx
IP Address: xx.xx.xx.xxx

And of similar nature. Any idea?

Mosh
09-23-2004, 10:37 AM
* jd clicks install *

I have been testing this for a while, it is great just installed it on my live forum.
I have changed the FORUMHOME template part of your hack to make it look better on my forum.

Thank you.

JD. :)

ZnARk
09-29-2004, 01:30 PM
Klicked install and it works like a charm :)
Ty

Flow Fusion
10-08-2004, 04:31 AM
Can someone tell me why I have this at the bottom of my forum...

The Gifted Souls members who visited the forum the last [ARG:2 UNDEFINED] hours are :
Gifted Souls Statistics

http://www.giftedsouls.com/gs/index.php?styleid=20

welo
10-11-2004, 04:46 AM
Installed and working great. Thanks man. :)

1shot1kill
10-14-2004, 09:57 AM
I installed this on our board a few days ago, works great.

babolo
10-18-2004, 02:51 AM
I feal like an idiot but I dont know how to change the number of hours

welo
10-18-2004, 03:04 AM
ACP > vBulletin Options > Forums Home Page Options >Who was online last X hours (bottom)

Don't feel bad. I had to hunt it down again the other day :).

babolo
10-18-2004, 12:30 PM
Thanks

Neal-UK
10-24-2004, 12:04 PM
This hack sucks because it sometimes does not separates the names with commas. EX: sometimes it says "sammyman, rad rocker, slam" and other times it is like "sammymanradrockerslam" . I don't know what the deal is....
I don't think the hack sucks because of a slight problem. I have this same one however, and i'm wondering if it's when people come on who are invisible. They show up on the who was online...... with the asterix * to the left of their name not right like normal.

Any fixes for this?

Neal-UK
10-24-2004, 12:18 PM
I don't think the hack sucks because of a slight problem. I have this same one however, and i'm wondering if it's when people come on who are invisible. They show up on the who was online...... with the asterix * to the left of their name not right like normal.

Any fixes for this?
I have registered on www.vbulletindev.net and gone to invisible mode. It has gone wrong on your forum too, so at least now I know I haven't got anything wrong. I'm on there as Neal.

Techguy1
10-30-2004, 12:04 PM
To fix this, find this in 'index.php':

// user is online and invisible BUT bbuser can see them
$enr[musername]=fetch_musername($enr);

Change the line below to:
$usernameonline .="<a href=\"member.php?u=$enr[userid]\">$enr[musername]</a>*";

Techguy1
10-30-2004, 12:05 PM
Hmm, my hack doesnt seem to fetch the markup of a display group, only of a primary group. Anyone having the same issue?

fiber1
11-03-2004, 02:57 PM
This hack issues it will show some that have been online for the last 24 hours and some will just disappear after a few hours.

ogden2k
11-05-2004, 09:32 AM
Ok guys I installed this one, I believe exactly doing as the installer ask, but all I get is the below part of the who was online, see attched picture. It says no-one has been online in the last 24 hours. Which is wrong. Or do I have to wait for it to update, like wait 24 hours after I have installed it for it too start working.

Hoping you can help, as this has me stumped. I have circled in PINK the area I am talking about. Why does it not show any number of members in the last 24 hours, plus who it was (The members names) etc?

I have also asked this question at the coders board.

Many thanks

Paul

:ermm:I'm getting the same thing...

ogden2k
11-07-2004, 03:51 PM
Any ideas??

fiber1
11-18-2004, 12:31 AM
To be brief, I would recommend you uninstall!

Lee Wilde
11-26-2004, 12:12 AM
Thank you for this excellent hack. I installed it without any problem weeks ago and my members are most impressed by it.

I currently have it showing at the bottom of my homepage: http://www.ignitionnetworking.com.au - however I'd like to move it to my left-hand column, but because I never know how many members are going to be listed, its impossible to know how much space its going to take.

Is it possible to limit it to show say, the last X number of members who visited in 24 hours (or whatever time period we set)?

I think if I could have it say, for example, "Last 50 Members Who Visited"......it would encourage members to login more frequently.

Thank you all...I am learning so much from reading these forums.

kisersose
12-21-2004, 05:45 AM
ACP > vBulletin Options > Forums Home Page Options >Who was online last X hours (bottom)

Don't feel bad. I had to hunt it down again the other day :).


this option is missing in my admin cp, and on my forum it only shows current people on and doesn't have a figure for hours there.

Did I miss something along the way that I'm missing these things?

kisersose
12-21-2004, 05:54 AM
nevermind I figured it out... something went wrong on the 4th step and the action didnt save correctly... I figured out a way to go back and re-do it and it's working perfect now,

great hack, thanx

djjeffa
01-16-2005, 08:18 PM
I get this can I get any advice on this?
Database error in vBulletin 3.0.5:

Invalid SQL: CREATE TABLE vb_usersonline (userid int(5) DEFAULT '0' NOT NULL, date varchar(10) DEFAULT '0' NOT NULL, datevraie DATETIME NOT NULL)
mysql error: Table 'vb_usersonline' already exists

mysql error number: 1050

Date: Sunday 16th of January 2005 04:16:57 PM
Script: http://www.djjeffa.com/vb/admincp/wwoxh_install.php?etape=1&langue=en
Referer: http://www.djjeffa.com/vb/admincp/wwoxh_install.php?langue=en

Spencer F.
01-17-2005, 10:50 PM
This hack is NOT showing the correct number of visitors that have visited in the past 24 hours. Is it for you?

welo
01-19-2005, 03:34 PM
Upgraded to 3.0.6 today and this hack lost all functionality (and ACP options). Am trying to track down what happened. Hoping I won't have to uninstall it but looking grim so far.


Have it working on 3.0.6 but I had to uninstall and reinstall it because for some reason the upgrade wiped out the custom fields in VB options, and corresponding phrases. I was unable to reclaim the previous online list however, even by manually inserting the data into the database (which makes very little sense to me, but whatever). That will have to rebuild on its own.

marceb
02-03-2005, 06:37 AM
hi
i got this showing nice but i lost my current active user

i believe i did follow the instruction of the installer right but i can't find out what i did wrong

:ermm:

VBUsers
02-19-2005, 10:14 PM
can some one post the text document for this hack. ive installed it on 1 template but need to do so forthe others. and the only way to get the edits i have to make is to run the install again. please help

neashtall
02-27-2005, 10:17 PM
Works a treat for me - many thanks ;)

djjeffa
03-13-2005, 01:34 AM
Works a treat for me - many thanks ;)
hack works grwat but is there a way to add how many guest have visited as well?

1shot1kill
04-20-2005, 09:15 PM
Been using this for a few months, but the users disappear off the list before they should, I first tried 24 hours, but quickly noticed that names disappeared after about 8 hours, then changed it to 12, but people disappear after about 4 to 5 hours.

Rampag33
05-19-2005, 07:12 PM
Installed perfectly first time, just one slight error. Some member names aren't being seperated by a ,

It looks like the last 2 members aren't being seperated. e.g.

member1, member2, member3, member4member5

Any suggestions would really be appreciated.

Thanks

I'm getting the same error hopefuly it works for me in a few hours but hopefully shorter.

ashley53680
10-03-2005, 03:11 AM
Can someone tell me how to uninstall? I upgraded to 3.5 and this doesn't work anymore. :( I tried to upload it again and it doest work.

Thanks!

ashley53680
11-16-2006, 05:33 PM
Can someone tell me how to uninstall? I upgraded to 3.5 and this doesn't work anymore. :( I tried to upload it again and it doest work.

Thanks!

I hate to bump up an old thread but I guess I've been waiting a year on this reply... :surprised: I still have not been able to get this darn thing off my board. I put a new one on and I do not need this anymore. I've looked in a few places and cannot find how to get it off the forum home. Can someone please help point me into the right direction in removing this?

Thanks in advance!!

ashley53680
11-16-2006, 05:53 PM
Okay I found it FINALLY!!! I missed it so many times... if you want to remove the information off your forum home you need to remove the following from your forumhome template:

<hr>
<span class="smallfont">
<center><b><phrase 1="$nbusers" 2="$vboptions[wwolxh]">$vbphrase[connectes_dernieres_xh]</phrase></b></center><br>
$usernameonline
</span>