The Arcive of vBulletin Modifications Site. |
|
Live Forum Statistics in Header Template Details »»
|
|||||||||||||||||||||||||||||||
|
Live Forum Statistics in Header Template
Developer Last Online: Feb 2016
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 Installation Instructions : (Also attached along with the plugin.) Code:
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 Download Now
Show Your Support
|
|||||||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
I have this on my board, it's a nice feature.
Another Demo You could enhance it by adding a link to the Who's Online page. Code:
<!-- 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 --> |
|
#3
|
||||
|
||||
|
3.6x???
|
|
#4
|
||||
|
||||
|
|
|
#5
|
||||
|
||||
|
Nice hack :up:
Is it possible to pull info from another database ... such as photopost
|
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
of course adding query to every page ..
|
|
#10
|
|||
|
|||
|
Please make this modification for VB4. I am waiting for my most favourite modification.
|
![]() |
|
|