PDA

View Full Version : ZH - Global Variables


Ziki
12-12-2006, 10:00 PM
This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Hack name
Global Variables

~Hack description
Allows you to use some variables in any template you want for example when adding $zhmemberstotal it will display the number of members you have in total.:cross-eyed:

~Hack options

On/Off
On/Off Members
On/Off Threads
On/Off Posts
On/Off Polls
On/Off Events
On/Off Forums
On/Off Attachments
On/Off Smilies


~Hack info
File uploads: 0
Template edits: 0
Templates: 0
File edits: 0
Plugins: 1
SQL Queries: 0
Phrases: 3
Settings: 1

Install time: 3 sec
Install level: Easy

~Hack installation

Step 1: Import Product


~Hack screenshots
None


~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.

Ziki
12-13-2006, 05:16 PM
Variables:

$zhmemberstotal >>>>> Number of members in total.
$zhthreadtotal >>>>> Number of threads in total.
$zhposttotal >>>>> Number of posts in total.
$zhpolltotal >>>>> Number of polls in total.
$zhsmilietotal >>>>> Number of smilies in total.
$zhforumtotal >>>>> Number of forums in total.
$zheventtotal >>>>> Number of events in total.
$zhattachmenttotal >>>>> Number of attachments in total.

Ziki
12-13-2006, 06:35 PM
1.0.1 released

Ziki
12-13-2006, 07:07 PM
1.0.2 released
small fix

YeşiLMeN
12-22-2006, 06:51 PM
Nice Add-On For Statistics Thanx ;)

İnstalled

w1z4rd
08-05-2008, 07:29 AM
Thanks, exactly what I needed. Works for attachments with 3.7.X :)

PS.. Is there a way to display the number of attachments in certain forums only? EG: 1,7,4 etc..