![]() |
headStatz
[hr]value[/hr]
Installation Time: < 5 mins Product: 1 Files: 1 VB Version: 3.6.X Description: I wanted to display the current amount of guests and users online without adding any stressful queries. So basically this mod provides the following variables you can use globally in templates: $hsz[guests] - shows the current count of guests onlineThis does add one query to every page, buts its a harmless query. If you would like to remove the query you can make the following file edit: FILE: /includes/class_core.php FIND: PHP Code:
PHP Code:
Installation Instructions:
If you like then [Mark As Installed] |
some people may not have a use for this mod but i decided to release it because i needed it.
you can see an example of its use on my forum: http://www.scriptasy.com its under the navbar. also if you want to use it on a vbadvanced page just allow the following global var in the vbaCP "hsz" |
Small nice feature Coders Shack.
|
yea i didn't want the online count to be recalculated every pageload so i made a datastore entry that stores the $hsz values.
|
I like it :)
|
Still a good hack, some of those variables would be useful. thanks :)
|
I found out that on the "You are required to login" pages the var's don't work.
So you should just do this to prevent bad output: Code:
<if condition="is_array($hsz)"> |
The datastore update in the cron file, is missing table_prefix.
|
Is there a possibility to read out how many hits in total i`ve had?!
|
Quote:
|
All times are GMT. The time now is 03:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|