Version: 4.21, by Paul M
Developer Last Online: Nov 2023
Version: 3.5.x
Rating:
Released: 06-09-2005
Last Update: 05-14-2006
Installs: 1970
No support by the author.
This modification is no longer available or supported.
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.
* If you want the WVT display on a seperate page - see this post by EvilHawk - now updated to version 4.21.
* There is also a CMPS module 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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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:
PHP Code:
//$cutoff = TIMENOW - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## //
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.
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.
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:
PHP Code:
// ############### Paul M - Who has visited today v3.31 ################# $tnow = date('YmdHis',TIMENOW - $vbulletin->options['hourdiff']); $cutoff = TIMENOW - (substr($tnow,8,2)*3600 + substr($tnow,10,2)*60 + substr($tnow,12,2)); $cutoff = TIMENOW - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## // $todaysusers = $vbulletin->db->query_read(" SELECT userid, lastactivity, options, username, user.usergroupid, displaygroupid, groupa.opentag as opentaga, groupa.closetag as closetaga, groupb.opentag as opentagb, groupb.closetag as closetagb FROM " . TABLE_PREFIX . "user as user LEFT JOIN " . TABLE_PREFIX . "usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
I am confused as to exactly what you want? If you mean the first 10 lines of the hack istelf:
PHP Code:
// ############### Paul M - Who has visited today v3.31 #################
$tnow = date('YmdHis',TIMENOW - $vbulletin->options['hourdiff']);
$cutoff = TIMENOW - (substr($tnow,8,2)*3600 + substr($tnow,10,2)*60 + substr($tnow,12,2));
$cutoff = TIMENOW - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## //
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.
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.