Version: 3.7.004, by Paul M
Developer Last Online: Nov 2023
Category: Forum Home Enhancements -
Version: 3.7.x
Rating:
Released: 12-22-2007
Last Update: 11-25-2008
Installs: 1878
Translations
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 the users midnight) or in the last 24 hours.
Note: it is not possible for this hack to count guests.
The main features of the 3.7 version are as follows ;
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 will 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 mod is phrased.
8. The ability to turn it on/off is in the ACP Options.
9. The ability to allow only certain usergroups to view the list is an ACP option (include or exclude groups).
10. The switch between Visited Today and Rolling 24 Hours is an ACP option.
11. The listing of members can be suppressed (a simple message is displayed instead).
12. The list of names can be set to be always collapsed on initial view.
13. An option to record and display the Most Ever Members can be enabled.
(Options are in vBulletin Options > Who has visited today)
To install just unzip the XML and import into vB using the ACP Product Manager.
History:
v3.7.001 : Initial version for vB 3.7. v3.7.002 : Installation Code Updated. v3.7.003 : Updated to remove potential $group variable name clash. v3.7.004 : Updated to use template hook if available.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
A lot of damage PMSL. At least back this claim up so that I know what I'm meant to of done wrong and can learn.
The original code is taken directly from vb.com, as linked, and adapted to change the value shown by your mod. I informed people to double check it first, I'm not a SQL coder as should be apparent and do not pretend to be, but as it worked for me on my test, and now live, site I figured someone else with more knowledge would be able to take it and clean it up/refine it. But more then anything I thought it might actually help some people with, what looks to be, a common problem.
As far as I can see the only other dates/values that would be reset is the 'Most users ever online' value, which I wanted it to do as both needed resetting.
You state there is no easy way, but then tease people that if they had knowledge and experience that they could do it. So why not just explain how it's done and let people then decide themselves if they have the relevant knowledge or experience to take the task on and make the change(s) properly?
Nope, well saying that depends on what you want to reset. If you wanted to reset the counter to 0 with todays date then yes a simple SQL query on datastore to change the value to 0 with todays date then the following:
Code:
UPDATE datastore SET data = 'a:4:{s:9:"maxonline";i:0;s:13:"maxonlinedate";i:1219276801;s:15:"maxvisitorsdate";i:1219276801;s:11:"maxvisitors";i:0;}
(I think, so double check it before you run it and don't blame me if it wrecks your DB lol)
However if you want to reset the max users online figure with a date in the past you'd need to change that query so that the bits in red fit your criteria. To calculate the date in unix time I've used this online calculator.
Anyway further details, written by someone who has a clue of what they are talking about, can be found HERE.
Sy
Thank you, but Paul have reason
Quote:
Originally Posted by Paul M
Dont run that query as is, it will cause a lot of damage as it as it doesnt specifically reference the maxloggedin record, but even if it did - running it will wipe out other dates/values stored in that record.
Like I said, there is no easy way. Most things can be done if you have the knowledge and experience.
I thought that this value is inside a custom table and not inside a vBulletin table
But I remembered that one time this counter was restarted alone...
I know if I change my cookie setting to more than 15 min I can increase my online users. I was wondering if it is possible to display users online in the last 30min, 1hr, 3hrs etc as a method to spike the number but keep the 15 min setting for cookies?
I know if I change my cookie setting to more than 15 min I can increase my online users. I was wondering if it is possible to display users online in the last 30min, 1hr, 3hrs etc as a method to spike the number but keep the 15 min setting for cookies?