PDA

View Full Version : Statistics Modifications - Live Forum Statistics in Header Template


Neutral Singh
01-03-2009, 10:00 PM
What this plugin does? This plugin uses the 'global_start' hook and stores the desired information from your forum database into php variables and when called in 'header 'template, produces the desired results.

Demo : http://www.sikhphilosophy.net (http://www.sikhphilosophy.net/)

Installation Instructions : (Also attached along with the plugin.)


Step by Step Instructions:
1. Ofcourse, download the Plugin.
2. Go to 'Plugin System' module in vb admin panel and click 'Download/Upload Plugins'.
3. Towards the botton of next screen, you will see a box table - 'Import Plugin Definitions XML File'. Click the 'Browse' button and select the Plugin Definitions XML File downloaded and saved somewhere on your computer. Click the 'Import' button and well... you are not quite yet done. LOL!!
4. Ok, Now go to Styles & Tempalte --> 'Styles Manager' and select the 'Common Templates' option from drop down menu and click the 'Go' button.
5. In the header template:

Find: (ususally at the end of the template file)
<!-- content table -->
$spacer_open

$_phpinclude_output



Add Above:
<!-- Forum Stats in Header Template -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="left"><span class="smallfont">| <b>Discussions:</b> $totalthreads | <b>Messages:</b> $totalposts | <b>Members: </b>$numbermembers | <b>Online: </b>$totalonline </b> | <b>Newest :</b> <a href="$vboptions[bburl]/member.php?u=$newuserid"><b>$newusername</b></a> (Welcome!)
</span></div>
</td>
</tr>
</table>
<!-- Forum Stats in Header Template -->


Ofcourse you can customise this code to suit your website setup. ;)

9. And, now finally you are done! :)

Enjoy!!

Please Don't Forget to Click Install

glennybee
01-04-2009, 02:38 AM
I have this on my board, it's a nice feature.

Another Demo (http://www.digital-kaos.co.uk/forums)

You could enhance it by adding a link to the Who's Online page.


<!-- Forum Stats in Header Template -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="left"><span class="smallfont">| <b>Discussions:</b> $totalthreads | <b>Messages:</b> $totalposts | <b>Members: </b>$numbermembers | <b>Online: </b><a href="online.php$session[sessionurl_q]" rel="nofollow">$totalonline</a> </b> | <b>Newest :</b> <a href="$vboptions[bburl]/member.php?u=$newuserid"><b>$newusername</b></a> (Welcome!)
</span></div>
</td>
</tr>
</table>
<!-- Forum Stats in Header Template -->

iogames
01-04-2009, 02:18 PM
3.6x???

princeedward
01-06-2009, 05:18 PM
3.6x???click to take a look here... (https://vborg.vbsupport.ru/showthread.php?t=128863)bro.... ;)

Bounce
01-06-2009, 07:05 PM
Nice hack :up:

Is it possible to pull info from another database ... such as photopost :confused:

Bounce
01-06-2009, 07:07 PM
I have this on my board, it's a nice feature.

Another Demo (http://www.digital-kaos.co.uk/forums)



How did you get it where you have placed it, I would like my where the login box etc is :)

maxicep
01-07-2009, 06:56 AM
of course adding query to every page ..

Bounce
01-07-2009, 03:08 PM
of course adding query to every page ..

Yea but I use this (https://vborg.vbsupport.ru/showthread.php?t=199207) and save 3 queries so I can handle 1 added ;):up:

SEOvB
01-12-2009, 08:48 AM
Yea but I use this (https://vborg.vbsupport.ru/showthread.php?t=199207) and save 3 queries so I can handle 1 added ;):up:

This adds 6 per page, not 1

zulfiqar.halari
12-23-2009, 05:59 PM
Please make this modification for VB4. I am waiting for my most favourite modification.

zulfiqar.halari
12-23-2009, 05:59 PM
Please make this modification for VB4. I am waiting for my most favourite modification.

jaribas
02-01-2010, 07:45 AM
me too stay for the vb4. thanks.

imported_soft
09-10-2010, 12:30 AM
I try this with vBulletin® Version 4.0.4 But it is not working.

Any help to have it work>

Thanks