The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Quote:
The resulting code should be like this: PHP Code:
|
#12
|
|||
|
|||
I apologize for making it confusing, so let's start over from the beginning.
1) Drop the table you created from the database (usercounts), delete includes/cron/usercount.php, and if you created a scheduled task or plugin, delete them. 2) Save the usercount.php attachment from this post and ftp it to includes/cron 3) Save the product-usercount.xml attachment and import it as a product. This will create the database table, the plugin, and the scheduled task. 4) To display the values put something like this code in a template: Code:
<if condition="!empty($vbulletin->usercounts)"> {$vbulletin->usercounts[members]} Members, {$vbulletin->usercounts[guests]} Guests </if> - The scheduled task is set to run every 15 minutes. If you want to run it at a different interval, you can use the Scheduled Task Manager to change it. - I changed the database column "users" to "members" so it's not quite the same as the previous code. - The counts will not display until the task runs at least once, so you can go to the "Scheduled Task Manager" and press the "Run Now" button to force it to run once if you want to. - If you uninstall the product, it won't remove the database table. |
#13
|
||||
|
||||
If they had Reputation here, I know I'd be repping kh99 for all his help!
|
#14
|
|||
|
|||
kh99, I have no words to thank you for the wonderful job! :up:
Only, I'm not able to format 'time' to a readable value. However, this WORK and THANK YOU --------------- Added [DATE]1289205457[/DATE] at [TIME]1289205457[/TIME] --------------- Found! FROM_UNIXTIME(time) |
#15
|
|||
|
|||
I'm glad that worked out - we could change the column type for the time if you wanted to.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|