View Full Version : Members who have visited the forum (Today or last 24 hours).
This modification is no longer supported.
It will remain available for download and use, but the thread is no longer monitored.
This adds a simple display of all members who have visited the forum - either today (i.e. since midnight) or in the last 24 hours. Please note that it is not possible for this hack to count guests.
The main features of Version 4.xx are basically the same as previous versions ;
1. It displays the list on the Forum Home.
2. The list view is collapsable, so you just see the number.
3. Invisible users are only displayed to those allowed to see them (with a "*")
4. Users who should display as coloured or bold etc should be displayed correctly (based on the display usergroup).
5. If you 'hover' over a username it will show the time they were last active.
6. The list is in member name order.
7. The hack is now phrased.
8. The ability to turn it on/off is in the ACP Forum Home Options.
9. The ability to allow only certain usergroups to view the list is an ACP option (vBulletin Options > Who has visited today).
10. The switch between Visited Today and Rolling 24 Hours is an ACP option (many seem to miss this actually exists).
11. The listing of members can now be suppressed (a simple message is displayed instead).
12. The list of names can be set to be always collapsed on initial view.
Unzip the XML and import into vB using the ACP Product Manager.
To upgrade from version 4.10 onwards, you need to re-import the product with the overwrite option set to yes. To upgrade from version 4.01/4.02 to version 4.10 onwards, you need to uninstall the product and remove the template code in FORUMHOME - then upload the new product. To upgrade from version 3.xx to version 4.xx you need to delete the existing plugin and remove the template code in FORUMHOME - then upload the new product.
* Add-ons etc *
* An add-on to display a 'Most ever posters' count is available here (http://www.vbulletin.org/forum/showthread.php?s=&threadid=98887).
* If you want the WVT display on a seperate page - see this post (http://www.vbulletin.org/forum/showpost.php?p=954168) by EvilHawk - now updated to version 4.21.
* There is also a CMPS module (http://www.vbadvanced.com/forum/showthread.php?t=13431) that makes use of this plugin (by tgmorris).
History:
v4.10 : Removed the need to edit the FORUMHOME template.
v4.11 : Hyperlinked display icon to members list. Added vb number formatting to count.
v4.12 : Added ALT tag to above hyperlink.
v4.13 : Fixed problem affecting the most visitors add-on when more than 999 visit in a day.
v4.14 : Added name suppression & always collapsed options.
v4.15 : Updated the install code to only create the index if it doesn't already exist.
v4.16 : Fixed error in new install code (changed DROP to ADD !).
v4.17 : Updated ACP view permission option to take into account secondary groups.
v4.18 : Not publicly released.
v4.19 : Added 'nofollow' attribute to listed usernames.
v4.20 : Minor changes, no update necessary.
v4.21 : Minor changes to settings group, instructions updated.
Chris M
10 Jun 2005, 01:19
Installed and working fine :)
Satan
Link14716
10 Jun 2005, 01:32
This isn't working for me. It just shows " Total users that have visited today: 0" and an empty table.
StarBuG
10 Jun 2005, 01:44
After uploading the xml file I get a white page in the acp.
The plugin can be found in the Plugin Manager and is set to active.
On index.php however there is no change at all. :(
StarBuG
After uploading the xml file I get a white page in the acp.
The plugin can be found in the Plugin Manager and is set to active.
On index.php however there is no change at all. :(
StarBuGDid you do the template change ?
This isn't working for me. It just shows " Total users that have visited today: 0" and an empty table.Interesting - the code must be running for you to get a zero. Can you provide a link to your site, and a test login if possible. :)
StarBuG
10 Jun 2005, 01:55
DOH
I thought it was the xml alone :D
I will do the changes after the bug is fixed that I can´t access my templated :(
StarBuG
Link14716
10 Jun 2005, 02:33
Interesting - the code must be running for you to get a zero. Can you provide a link to your site, and a test login if possible. :)
I have disabled it. It works over 24 hours, just not since midnight.
Link14716
10 Jun 2005, 02:53
I fixed it by changing this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Chris M
10 Jun 2005, 02:59
I've altered it in my plugin code and it still works...
So so far so good ;)
Satan
Okay - I applied a slightly different fix (uploaded).
I'll take a proper look tomorrow at the timezone stuff and see which is the best method. :)
Hi.
I install the hack but the only thing is showing is the "Total users that have visited today:"
but there is nothing in it.
Now I dint install the plugin I dont now where to install it.
Where do I upload it please?
I need a detail instractions please.
Thank you.
Regards.
You are running vB 3.5.0 beta ?
Installed and works fine :)
Installed and works fine :)Click install then please. :)
Click install then please. :)
Done
no i have the
(vBulletin 3.0.7)
Link14716
10 Jun 2005, 04:34
Then this isn't the place for you. This hack (and this forum) is for vB 3.5. The vB 3.0.x forums are below these. There are hacks for 3.0.x which will do the same thing.
no i have the
(vBulletin 3.0.7)Then you are installing the wrong version - this is the vB 3.5.0 beta version - you want the vB 3.0.7 version, which is here ;
http://www.vbulletin.org/forum/showthread.php?s=&threadid=71533
jpt62089
10 Jun 2005, 06:46
*fixed*
playstation
10 Jun 2005, 14:26
Works great.
*clicks install*
easy to install, easy to use, superb :)
wi11ie1950
11 Jun 2005, 05:32
Works ok for me.. Click Installed
belinea
12 Jun 2005, 18:24
This Mod doesn´t work.
I see a "Total users that have visited today:" and an empy table.
This Mod doesn´t work.
I see a "Total users that have visited today:" and an empy table.I beg to differ, but yes it does. Did you actually do step 3 ?
belinea
12 Jun 2005, 19:25
I beg to differ, but yes it does. Did you actually do step 3 ?Yes, I did.
and have you turned the plugin system on (in the vb options) ?
belinea
12 Jun 2005, 19:36
and have you turned the plugin system on (in the vb options) ?Yepp, other Plugins works fine. :disappointed:
<shrug> It works for me and everyone else - is it listed, and active in the plugin manager.
belinea
12 Jun 2005, 21:00
I have restarted my Apache. Now it works.
Many thanks for your help.
Bizarre is about all I can say to that. :)
You can click on install now ;)
I think you might have an extra </if> in the end of the FORUMHOME addition Paul.
Either that, or you missed it out in the FIND statement.
(Or my first day working after 18 months playing around with vB has reduced my brain to mush, and everything is correct.) :)
I think you might have an extra </if> in the end of the FORUMHOME addition Paul.
Either that, or you missed it out in the FIND statement.
(Or my first day working after 18 months playing around with vB has reduced my brain to mush, and everything is correct.) :)
Nope - you were right - an extra if sneaked in on the last upload, now removed. Thanks. :)
OmaniMan
13 Jun 2005, 22:50
install >>
Great :) >>
This works well on my board.
mholtum
16 Jun 2005, 21:05
very nice!
/me installs
havefun
17 Jun 2005, 20:31
thanks, works fine :)
ThePimp
19 Jun 2005, 05:15
Installed... It worked fine for a while, then it died. Getting a 0 now. Any suggestions other than uninstalling it?
EDIT:
$cutoff = $now - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## //
I uncommented that line and it came back up.
smokering
19 Jun 2005, 06:03
really like this one thank you very easy to install (I am not a coder)and it works perfectly
poolking
19 Jun 2005, 10:28
installed on Beta 2. :)
Installed... It worked fine for a while, then it died. Getting a 0 now. Any suggestions other than uninstalling it?
EDIT:
$cutoff = $now - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## //
I uncommented that line and it came back up.You do realise the original version resets each midnight ?
taffy056
19 Jun 2005, 18:15
Hi,
This is not working for me as yet, I have done all the steps in the instructions, all I get is an empty table. Is this something to do with Hook Location? Does this need to be set at specific one?
thanks
The hook location sets itself, are you sure you have plugins enabled ?
taffy056
20 Jun 2005, 01:35
Hi,
Just redone the plugin and all is working okay now, just need to get used to doing something slightly different from previously.
taffy
ThePimp
20 Jun 2005, 05:05
You do realise the original version resets each midnight ?
I figured that, however, at the reset, I logged out and in under a few different usernames, and it didn't log it. The rolling list will work just fine though, it's what I was looking for anyhow.
Thanks again.
grundybin
20 Jun 2005, 05:14
I was looking for it to display users who have logged in since MIDNIGHT (00:00) on the same day...
It works on the members last activity time, which is updated when ever they move from one area of the forum to another, I would have thought logging in updates this as well.
The display is actually calculated before your own activity is updated, so if you logged directly into the homepage, you would actually need to refresh the page before you saw yourself listed.
Chris M
20 Jun 2005, 15:35
It works on the members last activity time, which is updated when ever they move from one area of the forum to another, I would have thought logging in updates this as well.
The display is actually calculated before your own activity is updated, so if you logged directly into the homepage, you would actually need to refresh the page before you saw yourself listed.
Indeed - I expected it to show me as a user who visited today, but then realised that it had already calculated it, then i refreshed and I appeared ;)
Satan
mangacars
20 Jun 2005, 16:33
thanks worked perfect
Johannes de León
23 Jun 2005, 11:33
Working like a charm here (vB 3.5.0 Beta 2).
Okay - I applied a slightly different fix (uploaded).
I'll take a proper look tomorrow at the timezone stuff and see which is the best method. :)
I have a problem with the time on this, it seems to reset its midnight time at 9 pm forum time, other than that everything is and works great.
I have a problem with the time on this, it seems to reset its midnight time at 9 pm forum time, other than that everything is and works great.What timezone do you have set in your profile ?
Edit: Actually, try the version I have just uploaded (v3.20) - it uses a slightly different TZ calculation.
Hmm. I'm getting a blank table as well.
Hmm. I'm getting a blank table as well.Can you be more specific, or provide a working link to your site. Also, have you turned the plugin system on (in vb options) ?
I'm sorry. I did all the steps in the install. The plugin is active and the system is on. It shows on the bottom of the page, however, the lists does not show any names.
I'm sorry. I did all the steps in the install. The plugin is active and the system is on. It shows on the bottom of the page, however, the lists does not show any names.Okay, perhaps I should have been clearer, a blank table does not tell me what I need to know - the bit that says "Total members that have visited today: 2" - what number does it show at the end, after the colon ?
It says 0. And there have been many visitors today.
Thanks.
Can you please post a link to your site, and confirm that you are using version 3.20.
Arrgggg - nevermind - I have just realised I made a stupid mistake on this latest upload (and possibly yesterdays as well) which may explain it. I have forgotten to convert $bbuserinfo to $vbulletin->userinfo on the user tz options. Delete the plugin you have and try the 3.25 version now uploaded. :)
Thanks Paul M,
Had me there for a minute, uploaded last version and had blank for members visited like Roxie, reuploaded new version and visitor numbers and names are back.
I will see if this new time zone calculation fixes my old problem.
gr8
Total users that have visited today: 2688
!!Jin!!, ....2685 membernames removed (MarcoH64).... ~GMkyle~, ~~Cash~~
RaGEZONE : The Ultimate MMOG Resource Statistics
Chris M
28 Jun 2005, 16:19
um ??
Lol - He posted all those names :p
Satan
Marco van Herwaarden
28 Jun 2005, 17:19
It was an almost endless list of membernames, i needed to scroll for 5 minutes to get to the end of his post, and i didn't find any usefull information, hence i reduced it a 'bit'.
Lol - He posted all those names :p
Satan
^__^
I would use tho if say it only showed the number of members who visted today, rather than just the names or say the number of amount of members who visited today and youc lick the nnumber and boom it opens a window of the member names..
Since i get 4000+ a day my page would be kinda full :ermm:
Simply modify the template to show what you want (the list is collapsable as well ...).
Simply modify the template to show what you want (the list is collapsable as well ...).
Still loads it though in the html and im using stats and i noticed it added an extra 800miliseconds of loading time.
Metalrz;
Try this code instead of the one in the text file:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add that one after:
<!-- end logged-in users -->
This will only show the number.
Metalrz;
Try this code instead of the one in the text file:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add that one after:
<!-- end logged-in users -->
This will only show the number.
ta!!
ta!!If the count is all you want, then I suggest you use this cut down plugin as most of the original code is for building the list. :)
Chris M
01 Jul 2005, 02:03
If the count is all you want, then I suggest you use this cut down plugin as most of the original code is for building the list. :)
Paul - The list has broken on Beta 3 - Fix it :p
Shows up as empty table now :ermm:
Satan
Paul - The list has broken on Beta 3 - Fix it :p
Shows up as empty table now :ermm:
Satan
Which list ? It's working fine on my beta 3.
Chris M
01 Jul 2005, 02:26
This one ;)
Satan
This one ;)
Satan
Works fine here bud, i only got that when i didnt active the plugin :rolleyes:
http://forum.ragezone.com/index.php?
Chris M
01 Jul 2005, 02:47
Works fine here bud, i only got that when i didnt active the plugin :rolleyes:
http://forum.ragezone.com/index.php?
My plugin is active, and it was working when I installed the hack yesterday ;)
It just stopped working for some reason :p
Satan
My plugin is active, and it was working when I installed the hack yesterday ;)
It just stopped working for some reason :p
SatanDid you try refreshing the display ? if it's your first visit of the day, your last activity timestamp is updated after the hack runs. :)
If that doesn't work, check your timezone settings, including the server. FYI: I have a little debug plugin that checks the TZ settings, but it's at home, and I'm at work.
Chris M
01 Jul 2005, 12:23
I know about the "first visit of the day" - I can assure you it is not that ;)
Must be my timezone settings then - I'll fiddle about and see if I can get it to work :ermm:
Satan
Chris M
01 Jul 2005, 12:24
Aha - Upon further investigation, turning on the DST settings in the vB Options causes this to die :p
Satan
thanks, pretty cool, working fine
does this get users on the last 24 hours or the current day?
does this get users on the last 24 hours or the current day?..
This plugin adds a simple display of all members who have visited the forum 'today' (i.e. since midnight).
<snip>
If you prefer, then there is an option to make this hack display a rolling 24 hours - un-comment the relevant line in the code.
:)
:P
you could make it so it shows the day
Total users that have visited today (7/4/2005): 10
:P
you could make it so it shows the day
Total users that have visited today (7/4/2005): 10
Just change that part of the forumhome template to ;
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
:)
i wonder if this is getting members on the forum since midnight using my gmt settings... say my forum is at gmt -6, and my server is gmt, is the " since midnight users" being taken using gmt -6? it seems its resetting the list at my gmt midnight, but it shows alot of people that im not sure they visited after that
I don't quite follow you, but for each user, it should reset at their midnight.
their midnight? can I change it to the forum midnight?
Cloudrunner
09 Jul 2005, 12:22
their midnight? can I change it to the forum midnight?
yes, change the line
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to read
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
in the plugin itself. This will set the cutoff time to your forums timeset.
If you do this then you can comment the $tz line and the $now line as they will not be used for this if you go and use the forums time.
Borimikan
09 Jul 2005, 15:26
Ok I install it... now I have a question, and sorry bcause Im new.... Where the XML file goes to?
You upload it as a plugin.
ACP > Plugin System > Download / Upload Plugins
theArchitect
16 Jul 2005, 02:19
As always great work.
Installed on 3.5.0 beta 4.
Thanks! Worked great. ^_^
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
uhm that didnt work, this didnt work either
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
there are still members in the list with "last visit" as "yesterday" in their profiles
edit: well I updated my version with the one in this thread and it seems to be working the way I wanted, thanks
You do realise the original version resets each midnight ?
If we uncomment the line for 24 hours rolling do we need to comment out the line before it?
Also, does this work according to the user's midnight or the server's?
If we uncomment the line for 24 hours rolling do we need to comment out the line before it? No, it simply over-rides the lines above.
Also, does this work according to the user's midnight or the server's?Each users midnight.
No, it simply over-rides the lines above.
Each users midnight.
Thank you, sir. Excellent!
Just one small point - the two questions are mutually exclusive.
If you uncomment the 24 hr option then obviously the midnight question is irrelevant (or vice versa). :)
Just one small point - the two questions are mutually exclusive.
If you uncomment the 24 hr option then obviously the midnight question is irrelevant (or vice versa). :)
Not really. The server time is 6 hours off of my timezone. So knowing if it is set to server midnight or usertime midnight is a relevant question. ;)
Installed in two minutes, and working like a charm. Thanks a lot. :)
Neutral Singh
24 Jul 2005, 04:14
gr8!! ** Aman Clicks Installed **
shouldn't the 24 hour roll variable be TIMENOW rather than $now which is what you have? I installed this and it shows all users registered rather than from past 24 hours. Changing this to TIMENOW yields the correct result.
shouldn't the 24 hour roll variable be TIMENOW rather than $now which is what you have? I installed this and it shows all users registered rather than from past 24 hours. Changing this to TIMENOW yields the correct result.Indeed it should have been - $now was correct before the last update of the code, when the $now variable was removed - but I forgot to change that 24hr line - it was actually fixed and uploaded yesterday morning - but obviously you wouldn't know this - so thanks for noticing and pointing it out. :)
I uncommented the 24 hour roll-over code and it isn't rolling over now like it should. I have 2 vistors from yesterday still showing up and online today.
I uncommented the 24 hour roll-over code and it isn't rolling over now like it should. I have 2 vistors from yesterday still showing up and online today.I am assuming you have read the previous post and have the correct version, not the one using $now.
Other than that I don't understand what your problem is. You are bound to see visitors from yesterday since it goes back 24 hours (so at 6pm today, you will have visitors back to 6pm yesterday).
I am assuming you have read the previous post and have the correct version, not the one using $now.
Other than that I don't understand what your problem is. You are bound to see visitors from yesterday since it goes back 24 hours (so at 6pm today, you will have visitors back to 6pm yesterday).
I thought it changed at the user's midnight. I am using the latest version 3.31.
I thought it changed at the user's midnight. I am using the latest version 3.31.You seem to be confusing two options. It can run in one of two modes.
1. Members who visited today (i.e. from midnight) - which is the default as supplied.
2. Members who visited in the last 24 hours - which requires you to uncomment an extra line.
You appear to have uncommented the line for mode 2, but are expectiing mode 1.
You seem to be confusing two options. It can run in one of two modes.
1. Members who visited today (i.e. from midnight) - which is the default as supplied.
2. Members who visited in the last 24 hours - which requires you to uncomment an extra line.
You appear to have uncommented the line for mode 2, but are expectiing mode 1.
Now that makes more sense. My misunderstanding then. Sorry for the confusion, sir. ;)
*clicks install* *clicks thankyou* :)
FleaBag
28 Jul 2005, 00:11
Much appreciated hack, and survived the template reverts for RC1. Thanks. :)
Neal-UK
29 Jul 2005, 01:26
Click install then please. :)
i got a 'invalid thread specified' during install and it's all blank on forumhome although the information is there, just not the members.
Neal-UK
29 Jul 2005, 01:30
<shrug> It works for me and everyone else - is it listed, and active in the plugin manager.
ignore last, i uploaded it in wrong place, not plugins, works fine!
GrendelKhan{TSU
30 Jul 2005, 05:03
3.5 RC1 here....no problems.
good stuff :D
<<< clicks INSTALL :) ;)
Chris_D
30 Jul 2005, 12:28
Looks cool. Nice work :)
/me clicked Install.
XtremeOffroad
03 Aug 2005, 00:53
Installed and works fantastic, Well with only 1 member it's hard to tell but in time hopefully the board will grow.
Thanks.
Neal-UK
03 Aug 2005, 01:43
Installed and works fantastic, Well with only 1 member it's hard to tell but in time hopefully the board will grow.
Thanks.
i'll join and say hello although i have a citroen saxo, does that count?
Paul this hack is lovely although is it possible to make it view to the administrators only? I really don't want it shown up to the other members except the admins.
Paul this hack is lovely although is it possible to make it view to the administrators only?
Just put the template code inside a conditional for usergroup 6.
I'm not a dumbass but what is that supposed to mean? I have no clue about vBulletin hacking and all that so could you please be a little more definite?
You added some template code as part of this hack, surround that code with an IF - like this ;
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
wilky49
05 Aug 2005, 15:46
Nice.
Clicks Install!
Thnx Paul, but I get a error when I upload de file with the Plugin system.
Error : Invalid File Specified
EDIT : GREEN ALARM :rolleyes:
I upload the file with the [Add/Import Product] :dead:
NetRover
06 Aug 2005, 20:12
<shrug> It works for me and everyone else - is it listed, and active in the plugin manager.
Hi there, I've upgraded from 3.0.7 to 3.5.
I followed instructions and didn't re-do steps 1 and 2.
The template was still showing at the bottom of 3.5 so I knew it was ok so proceeded with the browse in admin CP for the XML file.
It just keeps saying invalid file specified.
I know Paul is away, anyone else had this problem and resolved it?
Thnx Paul, but I get a error when I upload de file with the Plugin system.
Error : Invalid File Specified
EDIT : GREEN ALARM :rolleyes:
I upload the file with the [Add/Import Product] :dead:
It's not a product .. it's a plugin !
Go to Plugin system >> Dowload / upload plugins >> browse >> import
ThorstenA
07 Aug 2005, 11:46
There is an error in mail the user gets: "Hello test1, you have got a private message from test1".
There is an error in mail the user gets: "Hello test1, you have got a private message from test1".
Are you sure you are in the right thread? What email? ;)
It's not a product .. it's a plugin !
Go to Plugin system >> Dowload / upload plugins >> browse >> import
Yes I now, but I make a mistake, thnx iig
groberthall
09 Aug 2005, 18:13
ok, I have to be doing something wrong here :)
I have altered the forumhome template and it shows the table and header okay ( but with no number after the colon )
I have installed the plugin and it all says it is installed correctly. plugin is active and plugins are turned on in Vb options.
But table is empty, no number after the colon on the title bar, and when I refresh the page it gives a parse error that disappears so quickly I cannot read it.
If I turn off plugins in options then the parse error does not appear.
Any ideas ?
<edit>
Parse error says
Parse error: parse error, unexpected T_STRING in /home/graham/public_html/index.php(63) : eval()'d code on line 2
groberthall
11 Aug 2005, 07:43
anyone ?
groberthall
13 Aug 2005, 09:12
OK, dont know what was going on there but I deleted everything, downloaded it again, uploaded it agin, and it all works fine. Many thanks for the hack.
*pops off to click install*
You added some template code as part of this hack, surround that code with an IF - like this ;
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Hi!
This is very useful.
I´m not an expert, so I must ask:
If I want more than one usergroupid, what is the code?
Just add the group ID right next to the number "6".
ie: 6,7,8,9
So the final code will look like:
<if condition="$bbuserinfo[usergroupid] == 6,7,8,9">
Although I am NOT sure so backup your file(s) before proceeding.
Just add the group ID right next to the number "6".
ie: 6,7,8,9
So the final code will look like:
<if condition="$bbuserinfo[usergroupid] == 6,7,8,9">
Although I am NOT sure so backup your file(s) before proceeding.
THX!
It was TO easy! :nervous:
Mr Chad
15 Aug 2005, 06:45
Perfect
BuRNZau
17 Aug 2005, 13:59
Love it cheers!
Sleepyk
18 Aug 2005, 02:13
Invalid File Specified is error i get
\
Greivog
18 Aug 2005, 10:18
Spot on, thanks
Is there a code so I can get the visitor in order:
Administrators(6), Moderators(7), Special members(9) and than the others?
socalsoccer
22 Aug 2005, 01:24
I did all but the second optional step, and is not working. I dont have a 0 either just the table that is colapsible and members today. Plugins are active , as I dont see anywhere to turn them ON like you say. Is it my DST setting like someone mentioned.
Thanks
socalsoccer.com
socalsoccer
22 Aug 2005, 01:26
pasted this:
<!-- Todays active users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_todayusers')"><img id="collapseimg_forumhome_todayusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayusers].gif" alt="" border="0" /></a>
Total users that have visited today: $totaltoday
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_todayusers" style="$vbcollapse[collapseobj_forumhome_todayusers]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="Users online today" border="0" /></td>
<td class="alt1" width="100%"><div class="smallfont">$whotoday</div></td>
</tr>
</tbody>
<!-- Todays active users -->
socalsoccer
22 Aug 2005, 01:26
hook location is adminstart the first one.
What is the url of your site ?
hook location is adminstart the first one.Um - are you saying that the plugin is showing this as it's hook ? [since it's wrong]. If so, I would try deleting it and re-loading the plugin again.
socalsoccer
22 Aug 2005, 01:37
socalsoccer.com
it selests that hook for you when adding the plugin
socalsoccer
22 Aug 2005, 01:40
you have to have a plugin location after Vbulletin product in RC2.
socalsoccer
22 Aug 2005, 12:25
Tryed again but still no 0, just collapsible table. Does this work with RC2?
Tryed again but still no 0, just collapsible table. Does this work with RC2?Yep, it works fine. I have uploaded the plugin for you. I can only guess that the xml file you have is corrupted.
Rat1972
24 Aug 2005, 13:32
Invalid File Specified is error i get
\
Same here...
It is a plugin, not a product - you will get that error if you try and upload it as a product (via the product manager).
Rat1972
24 Aug 2005, 15:45
Stupid of me!
Thanx paul
Xplorer4x4
24 Aug 2005, 15:48
Thansk Paul. Been using it for awhile now and just realized you updated it to be "Dynamic" (method 2). I would recomend making note of EXACTLY what variable to edit in your main post to save you alot of trouble of explaining which line to delete. Just a thought. ;)
Sorry, but I'm a bit confused as to what you are talking about.
Xplorer4x4
25 Aug 2005, 08:46
The term used for method 2 where it does not reset is called "dynamic" I believe.
As far as the other part, meh forget it, not important.
Now I have problem however. I want to make this dynamic(method 2/Does not reset) so i edited his variable out of the plug in:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And it still reset at midnight. Suggestions?
i edited his variable out of the plug in:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And it still reset at midnight. Suggestions?
That was the only edit I did and it works fine!
Is there a code so I can get the visitor in order:
Administrators(6), Moderators(7), Special members(9) and than the others?
No suggestions?
The term used for method 2 where it does not reset is called "dynamic" I believe.
As far as the other part, meh forget it, not important.
Now I have problem however. I want to make this dynamic(method 2/Does not reset) so i edited his variable out of the plug in:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And it still reset at midnight. Suggestions?
When you say you edited it out, what do you mean exactly ? All you should do to it is uncomment it, i.e. remove the two slashes at the start, not the whole line.
No suggestions?Nope - there is no easy way to sort it like that.
Xplorer4x4
25 Aug 2005, 19:04
When you say you edited it out, what do you mean exactly ? All you should do to it is uncomment it, i.e. remove the two slashes at the start, not the whole line.
Ohhhhhhhh no wonder it didn't work. :o
Thanks Paul. Goes to UNCOMMENT. :-p
-X
Xplorer4x4
26 Aug 2005, 06:30
Ok I uncomented the line like you said. I removed the 2 slahses at the begining of the line. It STILL reset.
Any more ideas?
-X
Post the first 10 lines of the hack [from your index.php] so I can see what you have actually done.
Hi Paul,
This hack was very easy and quick to install and works a treat! Thank you :)
Xplorer4x4
29 Aug 2005, 11:09
Post the first 10 lines of the hack [from your index.php] so I can see what you have actually done.
I am confused as to exactly what you want? If you mean the first 10 lines of the hack istelf:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I am confused as to exactly what you want? If you mean the first 10 lines of the hack istelf:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Yep, that's what I wanted to see. There is nothing wrong with it, and there is no way that can reset at midnight. It will display a rolling 24 hours.
Xplorer4x4
29 Aug 2005, 20:19
Yep, that's what I wanted to see. There is nothing wrong with it, and there is no way that can reset at midnight. It will display a rolling 24 hours.
I wish that was the case. :( As I said it is resetting at midnight.I tried your method for 2 nights and it didn;t work so i had tried doing some edits. I have this code here installed, so let me give it a shot again tonight. It is possible I made a mistake the last time, but I really don't see how.
Are you sure you haven't put the code in twice or something (or installed the plugin more than once) ?
The last line in what you posted is "$cutoff = TIMENOW - 86400" which quite simply is the current time - 86400 seconds (24 hours). There is simply no way it can do anything else.
BamaStangGuy
30 Aug 2005, 10:05
I seem to be having a problem...
If I am logged in as an admin I see 6 people have visited today...
If I log out and view it as a guest... just 3 people have visited today...
What is going on here?
I have reuploaded the xmp file and recopied the template code and it still does it. Regular members also see 3 people, while I see 6
Perhaps the other three members are in invisible mode which would explain why you can't see them if you've viewing as a guest? :)
Xplorer4x4
30 Aug 2005, 12:40
Are you sure you haven't put the code in twice or something (or installed the plugin more than once) ?
The last line in what you posted is "$cutoff = TIMENOW - 86400" which quite simply is the current time - 86400 seconds (24 hours). There is simply no way it can do anything else.
I really couldn;t tell you exactly where the problem lied, all I knwo is that I deleted the plug in. I reinstalled it. I uncomented the // variables and it apears to be working just fine now.
And to the post baove, when you are logged in as an admin, check to see if the names that are disapearing have an * next to them.
I seem to be having a problem...
If I am logged in as an admin I see 6 people have visited today...
If I log out and view it as a guest... just 3 people have visited today...
What is going on here?
I have reuploaded the xmp file and recopied the template code and it still does it. Regular members also see 3 people, while I see 6Are you referriing to actual people listed (in which case see the posts above) or the actual count shown (in which case you have different timezone settings to the others).
BamaStangGuy
30 Aug 2005, 18:19
Ok it was timezones :)
Sorry its a new board and I was the first user. I guess I was the only one stuck on GMT and then I changed it to GMT -6 after that but didnt catch my own profile
haha oops
Installed and working fine :)
Jupp work just fine!
it is very nice hack i have installed but one thing i think would look better is where it says total users visted today the bottom maybe it would be better suited if changed to total members visited today, because if you think lot more guests visit therefore that cannot be totol users.
if its ok with you paul i have edited the forumhome template.
You can edit the text to what you like. :)
ryuuchida
02 Sep 2005, 13:41
Thanks very much for this hack. Couldn't get easier than this to install. :)
installed and working great thanks.
1 question..
is there anything i can change in the code to make the box collapsed as default ?
thanks :)
Andreas
04 Sep 2005, 18:47
Code optimization (?) suggest:
forumhome_complete
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BamaStangGuy
04 Sep 2005, 19:19
Why change from start to complete?
When I use that code it still shows the number of people that vistsed today correctly, but it only lists me by username and no one else.
Ex. Total Users Visited Today: 121
and I am the only one listed, no one else.
Andreas
04 Sep 2005, 19:21
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
That's the Reason.
BamaStangGuy
04 Sep 2005, 19:22
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
That's the Reason.
Edited my post with feedback on the change
Is there a code so I can get the visitor in order:
Administrators(6), Moderators(7), Special members(9) and than the others?
I´ll try again....
I change the code in the plugin to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
now I see the users order by usergroups.
There must be an easy way to set the usergroups in order 6,7,9,2,1
??????????????
Code optimization (?) suggest:
forumhome_complete
What you have to remember is that my hacks are written for Cable Forum and released here afterwards simply to share them - they run the way they do mostly for specific reasons - and this runs on forumhome_start for a reason. :)
I guess it also depends on what you mean by 'optimization' - using those functions may reduce the code in the hack slightly, but the functions themselves have a lot of code in them, much of which is not necessary to this hack. It is also generic code I use elsewhere, and would require me to load things like functions_bigthree.php.
So, while I thank you for your suggestion - I don't intend to make any changes atm - but I will look at it to see if any of your changes/ideas would suit me in the future, especially when I convert my hacks from plugins to products (at which point I will phrase them as well) - in fact you are the second person to use a trick which I indend to look at to avoid the template edit. :up:
@BrentWilson - while you are free to use the above suggestion - I will not support it, as it's not my code - sorry.
There must be an easy way to set the usergroups in order 6,7,9,2,1Feel free to suggest one. :)
BamaStangGuy
04 Sep 2005, 23:21
What you have to remember is that my hacks are written for Cable Forum and released here afterwards simply to share them - they run the way they do mostly for specific reasons - and this runs on forumhome_start for a reason. :)
I guess it also depends on what you mean by 'optimization' - using those functions may reduce the code in the hack slightly, but the functions themselves have a lot of code in them, much of which is not necessary to this hack. It is also generic code I use elsewhere, and would require me to load things like functions_bigthree.php.
So, while I thank you for your suggestion - I don't intend to make any changes atm - but I will look at it to see if any of your changes/ideas would suit me in the future, especially when I convert my hacks from plugins to products (at which point I will phrase them as well) - in fact you are the second person to use a trick which I indend to look at to avoid the template edit. :up:
@BrentWilson - while you are free to use the above suggestion - I will not support it, as it's not my code - sorry.
I realize that I was giving feedback to Kirby on his code.
I am still using yours.
I realize that I was giving feedback to Kirby on his code.
I am still using yours.Ah okay, my misunderstanding, sorry. :)
BamaStangGuy
05 Sep 2005, 02:51
Ah okay, my misunderstanding, sorry. :)
Not a problem man :)
Great hack - could you tell me how to remove the link to the users so that there name only appears, but does not give a link to that member?
Andreas
05 Sep 2005, 05:40
I guess it also depends on what you mean by 'optimization' - using those functions may reduce the code in the hack slightly, but the functions themselves have a lot of code in them
That's the reason why I marked it with a '?' :)
The way I did it is close to how vBulletin itself does it, and I assume that way is optimized for Performance, although it might have more Code.
But on the other Hand, the Query gets a Bit lighter as it does not invlove joins.
Although there is less code to eval().
But as said, I am not sure if this has an impact on Performance - it was just a thought :)
Kirby - do you happen to know the answer to my question above regarding providing only usernames & no links to the users who have visited? thx
Andreas
05 Sep 2005, 05:52
That's easy - just edit the Plugin Code so it does not create Links.
I know it's here in the index.php, but how exactly do I change it - thx for your help:
$whotoday .= "<a href='member.php?u=$today[userid]' title='$wrdate' >";
if ($today['visible'] == 2)
{
$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>*, ";
}
else
{
$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>, ";
BamaStangGuy
05 Sep 2005, 07:04
Why are you looking in idex.php to modify a plugin?
Open your Plugin Manager and remopve the hyperlink code around the name
There must be an easy way to set the usergroups in order 6,7,9,2,1
Feel free to suggest one. :)
Maybe,
from my old asp-world :nervous: :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
or one more field in vb3_usergroups ("list_order")where I can put my usergroups in MY order and use that table in sql :nervous:
php is not the best part of me but I will learn!
What would you do without our crazy suggestions? :alien:
Why are you looking in idex.php to modify a plugin?
Open your Plugin Manager and remopve the hyperlink code around the name
I don't have a plug-in manager - I have 3.07 vB - unless I'm missing something. I'm almost positive modifying the index.php will do it. Any help in this regard?
But as said, I am not sure if this has an impact on Performance - it was just a thought :)Indeed, which is why I thanked you for the suggestion. :)
I don't have a plug-in manager - I have 3.07 vB - unless I'm missing something. I'm almost positive modifying the index.php will do it. Any help in this regard?You are in the wrong topic - this is the vb 3.5.0 plugin version, you want this ;
http://www.vbulletin.org/forum/showthread.php?s=&threadid=71533
Maybe,
from my old asp-world :nervous: :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
or one more field in vb3_usergroups ("list_order")where I can put my usergroups in MY order and use that table in sql :nervous:
php is not the best part of me but I will learn!
What would you do without our crazy suggestions? :alien:Hmm, all looks very complicated and I don't know if it would work (I'm not sure I even follow it). I can say with certainty that it's not going to get added, as only one person has asked about it. :)
Hmm, all looks very complicated and I don't know if it would work (I'm not sure I even follow it). I can say with certainty that it's not going to get added, as only one person has asked about it. :)
they will come!! :cool:
Thanks anyway!! :up:
Zelda-King
05 Sep 2005, 21:21
Running fine on 3.5 RC2. :)
Thanks for sharing!
Mikecp421
05 Sep 2005, 21:28
i am new to vb but a long time code editor of my phpbb forum, which I just upgraded. Step 2 & 3 confuse me. How do I do the sql querie? Is it just like phpbb? And what do I do with the xml file?? Thanks alot!
Mikecp421
05 Sep 2005, 22:17
forget it, I installed this one for 3.0.8 which didn't have the index.php mod. I got it working thanks to Paul M's signature!
First time I've ever known a signature install something, but hey .. :up: :)
I get invalid file specified...
Upload it as a plugin, not a product. :)
Just add the group ID right next to the number "6".
ie: 6,7,8,9
So the final code will look like:
<if condition="$bbuserinfo[usergroupid] == 6,7,8,9">
Although I am NOT sure so backup your file(s) before proceeding.
Now I have used that code, but it wont work.
I have tryed other like ';' etc but nothing helps.
Other tip?
<if condition="$bbuserinfo[usergroupid] == 6"> is no problem!
BamaStangGuy
11 Sep 2005, 16:08
Now I have used that code, but it wont work.
I have tryed other like ';' etc but nothing helps.
Other tip?
<if condition="$bbuserinfo[usergroupid] == 6"> is no problem!
<if condition="in_array($bbuserinfo[usergroupid], array(17,15,4,2,1,3))">
Replace the numbers with your numbers you want
<if condition="in_array($bbuserinfo[usergroupid], array(17,15,4,2,1,3))">
Replace the numbers with your numbers you want
thanks!
Now it works! :up:
Brandon Sheley
12 Sep 2005, 01:58
Click install then please. :)
i did, works like a charm, thx for porting it :)
artonex
12 Sep 2005, 22:24
installed and working fine on vb3.5 rc3 :)
thanks for the nice addon.
xXxCalibur
14 Sep 2005, 02:34
Working great ....thanks!! :)
thanks ! but my working is not good !
http://www.nhipsongtuoitre.net/forums/index.php?styleid=1 <-- even default styles ... can talk about that ! how to it work :(
thanks ! but my working is not good !
http://www.nhipsongtuoitre.net/forums/index.php?styleid=1 <-- even default styles ... can talk about that ! how to it work :(Sorry but your site says "Powered by: vBulletin Version 4.0.9" which is clearly made up. I cannot help you unless you tell me what version of vB you are really using.
Brimstone
20 Sep 2005, 16:35
Does anyone have this mod for vBulletin v3.0.8? I love the feature, but haven't upgraded to 3.5 yet.
Thank you, in advance!!
Brim
Click on the "view my hacks" link in my signature and you will find the 3.0.x version listed.
SlipNslide281
22 Sep 2005, 17:56
Installed and working fine :)
Satan
Awesome, and very easy to install. Instructions are great.
Ok, I am stumped. I'm new to using the vB3.x.x software and am curious on how to install this plugin. Do I copy the contents of the XML file into the big textbox? If so, what do I set the 'Hook Location' to and what do I set the 'Title' to? Thanks
Nope - you use the upload/download plugins section.
Thanks. I feel stupid for not seeing that...haha. Sad thing was...I was on that page before.
loonytune15
27 Sep 2005, 14:22
installs.
Sorry but your site says "Powered by: vBulletin Version 4.0.9" which is clearly made up. I cannot help you unless you tell me what version of vB you are really using.
Sorry :) Just fun only :) i know i wrong when edit Version of Vbulletin :devious:
I used Version : 3.5.0 RC3
thanks Man
Either you haven't installed the plugin, or you have it (or the plugin system) disabled.
anyway to make this viewable by admins only?
Can I make it so that it is collapsed by default? We get thousands of users and this would stretch the page out a lot.
anyway to make this viewable by admins only?http://www.vbulletin.org/forum/showpost.php?p=749513&postcount=123
Can I make it so that it is collapsed by default? We get thousands of users and this would stretch the page out a lot.http://www.vbulletin.org/forum/showpost.php?p=741813&postcount=473
southernlady
29 Sep 2005, 15:36
Btw, I upgraded to Gold last night and this works in 3.5 Gold. Liz
Works like a charm Paul. Thank you :)
Ncturnal
29 Sep 2005, 20:48
Noob question...
(remember to add your table prefix to 'user' if you use one)
How would I know?
Thanks in advance.
FreeFox
29 Sep 2005, 22:24
Hello Everybody here,
How can i do the step 3 ??
Please advice :)
Ncturnal
29 Sep 2005, 22:26
Hello Everybody here,
How can i do the step 3 ??
Please advice :)
Go to Plugin System - Download/Upload Plugins, scroll to the bottom to the Import Plugins section.
FreeFox
29 Sep 2005, 22:32
Ncturnal,
Thank you for your reply, and everything is OK now.
require make Plugin on and i made it By switching the system.
Is that right ?
Members-visited-today i just did the things it says but i need help.
how do i get to the install/upload page to install this??
ho;/;/ do u in$tall thi$ and upload it too?
FreeFox
29 Sep 2005, 22:57
Debate,
From your adminCP >>Plugin System - Download/Upload Plugins, scroll to the bottom to the Import Plugins section .
Regards,
Ericsson
30 Sep 2005, 21:45
Mines just blank: http://www.thenokiasite.com :(
Devil Woman
30 Sep 2005, 21:57
Same here, installed this once before on an earlier 3.5.0 worked fine have nosw installed it same way on 3.5.0 gold and it's just blank doesn't seem to update even though people have been online
Same here, installed this once before on an earlier 3.5.0 worked fine have nosw installed it same way on 3.5.0 gold and it's just blank doesn't seem to update even though people have been online
Mines just blank: http://www.thenokiasite.com :(The plugin is either not loaded, corrupted, not enabled - or the whole plugin system is turned off (by default the 3.5 plugin system is turned off).
Billspaintball
01 Oct 2005, 11:28
Damm that was easy :)
Just upgraded to 3.5 and this is the first plugin I have installed.
Love it!
Pramodinfo
01 Oct 2005, 20:32
Thanks for the Plugin, Works Very Gud No Problem in vb 3.5.0 :)
karrerax
02 Oct 2005, 01:53
Thanks for plugin!
Installed in 3.5 Gold and Working fine. :nervous:
Thanks for plugin!
Installed in 3.5 Gold and Working fine. :nervous:
Anyone know how I can make this show up at the top of my forums as opposed to the bottom?
Thx
southernlady
02 Oct 2005, 18:01
Maybe instead of the FORUMDISPLAY template, put it on the navbar template below here:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And above here:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
That's where I have my hurricane banner. Liz
Maybe instead of the FORUMDISPLAY template, put it on the navbar template below here:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And above here:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
That's where I have my hurricane banner. Liz
That works, but it pulls them out of the frame they are in when they are below. Im guessing thats close, but I need to start somewhere else in the code. Any ideas?
buffness
02 Oct 2005, 21:55
tried the install, fallowed steps 1 and 3 and I have no number showing up or members showing up even though there are members oline. anyone have an answer?
turn the plugin system on ?
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.