The Arcive of vBulletin Modifications Site. |
|
headStatz Details »»
|
|||||||||||||||||||||||||
[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] Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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" |
|
#3
|
||||
|
||||
|
Small nice feature Coders Shack.
|
|
#4
|
|||
|
|||
|
yea i didn't want the online count to be recalculated every pageload so i made a datastore entry that stores the $hsz values.
|
|
#5
|
||||
|
||||
|
I like it
|
|
#6
|
||||
|
||||
|
Still a good hack, some of those variables would be useful. thanks
|
|
#7
|
|||
|
|||
|
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)"> YOUR CONTENT AND VARS </if> |
|
#8
|
||||
|
||||
|
The datastore update in the cron file, is missing table_prefix.
|
|
#9
|
|||
|
|||
|
Is there a possibility to read out how many hits in total i`ve had?!
|
|
#10
|
|||
|
|||
|
you have the right idea, this would be the mod that you would want to use to have counter. Keep in mind though a hit counter would add one query per page view.
|
![]() |
|
|