The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Live Forum Statistics on All Pages in Forum Header Details »» | |||||||||||||||||||||||||||
Live Forum Statistics on All Pages in Forum Header
Developer Last Online: Feb 2016
Live Forum Statistics on All Pages in Header Template
Plugin Keywords: Member info,Statistics, Members, New Members, Forum, Statistics, Member Info, Forum, Stats, Please Don't Forget to Click Install Requested by : Myself :devious: Context : Searched through vb.org but could not find a similar plugin/hack. I wanted to show all vital forum stats like total posts, total threads, total members and newest member on each page of my forum as well as vBa CMPS, in header template and this plugin performs exactly the same function. 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. Utility : Imagine... an unregistered/guest visits your website for the first time via a search engine link (95% of times its not the homepage that is found via a search engines link) and the first thing s/he notices is the forum header information and says wow!! this forum has got xxxx members, xxxxx threads, xxxxxx posts, why not get registered with this community and see what this forum has got in store for me. LOL!! quite true actually. Demo : http://www.sikhphilosophy.net Any Screenshots : Demo is self-explanatory. Warning : This plugin executes 5 queries per pageload. Installation Instructions : (Also attached alongwith 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 --> 9. And, now finally you are done! Enjoy!! Please Don't Forget to Click Install Show Your Support
|
Comments |
#12
|
||||
|
||||
I am yet to find ways to show that information in the header... if we could do that it would fine.
|
#13
|
|||
|
|||
May be using a cron each X Minutes to store the variables?
|
#14
|
|||
|
|||
Only thing I did not like on this one is that it put the info on my main forums page also which I didn't want. Anyway to out on all pages but the main front page?
|
#15
|
||||
|
||||
Quote:
Code:
<if condition="THIS_SCRIPT != 'forumhome'"> <!-- 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 --> </if> |
#16
|
|||
|
|||
I'm trying to get your hack to work on phpportals, do you have any idea how to?
|
#17
|
|||
|
|||
Very nice Installed 3.64 vb
|
#18
|
|||
|
|||
This is a great hack. I installed it but the counts don't match up to my VB stats. It looks like it is counting hidden and deleted posts too. Is there a way around this or a fix in the future.
I will uninstall till then, if fixed will click installed. |
#19
|
|||
|
|||
Very nice ... one minor bug though ... when i click on " New Posts "
the information becomes blank on that page .... weird |
#20
|
|||
|
|||
One tiny bug - it shows softly deleted messages and topics in static.
|
#21
|
||||
|
||||
thanks man this is just sweet!! works for 3.6.4 perfectly
installed |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|