vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Statistics Modifications - Live Forum Statistics in Header Template (https://vborg.vbsupport.ru/showthread.php?t=200609)

Neutral Singh 01-03-2009 10:00 PM

Live Forum Statistics in Header Template
 
1 Attachment(s)
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

glennybee 01-04-2009 02:38 AM

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 -->


iogames 01-04-2009 02:18 PM

3.6x???

princeedward 01-06-2009 05:18 PM

Quote:

Originally Posted by iogames (Post 1701322)
3.6x???

click to take a look here...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

Quote:

Originally Posted by glennybee (Post 1700908)
I have this on my board, it's a nice feature.

Another Demo

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

Quote:

Originally Posted by maxicep (Post 1703956)
of course adding query to every page ..

Yea but I use this and save 3 queries so I can handle 1 added ;):up:

SEOvB 01-12-2009 08:48 AM

Quote:

Originally Posted by hIBEES (Post 1704261)
Yea but I use this 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.


All times are GMT. The time now is 10:32 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01202 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete