Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
headStatz Details »
headStatz
Mod Version: 1.00, by Coders Shack (Contributor) Coders Shack is offline
Developer Last Online: Sep 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (4 votes - 4.75 average) Installs: 18
Released: 21 Oct 2007 Last Update: 21 Oct 2007 Downloads: 58
Not Supported Uses Plugins  


. . . . . . . . Brought to you by

. . . http://www.Scriptasy.com



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 online
$hsz[gphrase] - is the word guest or guests deturmined by how many guests are online
$hsz[members] - shows the current count of members online
$hsz[mphrase] - is the word member or members deturmined by how many members are online
$hsz[total] - is the total amount of guests and members online
$hsz[totalthreads] - total forum threads
$hsz[totalposts] - total forum posts
$hsz[totalmembers] - total forum members
This 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:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ADD UNDER:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

now the mod will add zero queries.

Installation Instructions:
  1. Install Product
  2. Make your own template edits
If you like then [Mark As Installed]

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 21 Oct 2007, 21:26
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Real name: Chad Scira
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"
Reply With Quote
  #3  
Old 21 Oct 2007, 21:29
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Real name: Shawn
Small nice feature Coders Shack.
Reply With Quote
  #4  
Old 21 Oct 2007, 21:30
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Real name: Chad Scira
yea i didn't want the online count to be recalculated every pageload so i made a datastore entry that stores the $hsz values.
Reply With Quote
  #5  
Old 21 Oct 2007, 21:31
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
I like it
Reply With Quote
  #6  
Old 21 Oct 2007, 23:51
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Aug 2005
Still a good hack, some of those variables would be useful. thanks
Reply With Quote
  #7  
Old 22 Oct 2007, 00:02
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Real name: Chad Scira
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #8  
Old 08 Nov 2007, 18:07
TCattitude's Avatar
TCattitude TCattitude is offline
 
Join Date: Oct 2004
The datastore update in the cron file, is missing table_prefix.
Reply With Quote
  #9  
Old 11 Nov 2007, 17:46
FCS-Webmaster FCS-Webmaster is offline
 
Join Date: Aug 2007
Is there a possibility to read out how many hits in total i`ve had?!
Reply With Quote
  #10  
Old 11 Nov 2007, 22:56
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Real name: Chad Scira
Originally Posted by FCS-Webmaster View Post
Is there a possibility to read out how many hits in total i`ve had?!
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.
Reply With Quote
  #11  
Old 19 Apr 2009, 22:47
Nordinho Nordinho is offline
 
Join Date: Aug 2004
I know this is an old plugin, however I do have a use for it...

Anyways, it works fine on 3.82 except for messing up the blog page. With the plugin enabled the main blog page gives the error below


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Anybody an idea??
Reply With Quote
  #12  
Old 04 May 2009, 13:26
Nordinho Nordinho is offline
 
Join Date: Aug 2004
Bumperdibump

edit

Applying the 'save a query' patch solved my problems!

Last edited by Nordinho; 06 Jun 2009 at 07:19.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 19:27.

Layout Options | Width: Wide Color: