vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Statistics Modifications - Live Forum Statistics on All Pages in Forum Header (https://vborg.vbsupport.ru/showthread.php?t=165914)

Neutral Singh 12-22-2007 10:00 PM

Live Forum Statistics on All Pages in Forum Header
 
Live Forum Statistics on All Pages in Header Template
Plugin Keywords: Statistics, Members, New Members, Forum, Statistics, Member Info, Forum, Stats, Member 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 -->

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

ChU v2 12-23-2007 01:11 AM

Amazing! Asked him to update for 3.7 and did so within a few hours! Thanks again, works perfectly.

Neutral Singh 12-23-2007 01:24 AM

Thanks!! Please click install button for future support. ;)

Audentio 12-23-2007 05:23 AM

Very nice, Ill definitely use this sometime.

Sofia 01-06-2008 08:15 PM

Good work. thanks a lot :)

Magnumutz 01-07-2008 02:00 PM

Guess what... the demo ain't working.

CareyG 01-12-2008 11:53 AM

This is great thanks so much. I have a question though,. It shows up on my board with a dark blue background, I want it to be transparent to my board. How would I do that? Here is a screenshot of what I mean.

https://vborg.vbsupport.ru/external/2008/01/34.jpg

apdcanari 03-30-2008 09:21 PM

My customize :rolleyes:

Add template Header :

HTML Code:

<!-- Forum Stats in Header Template -->
<div class="statsheader">

<span class="smallfont" style="float:$stylevar[left]"><b><a href="index.php">My forum</a></b></span>

<span class="smallfont" style="float:$stylevar[right]"><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>
<br />
<!-- Forum Stats in Header Template -->

Add Css :

HTML Code:

.statsheader {
position:fixed;
width:100%;
top:0;
right:0;
background:#B6CFF2;
border-bottom:3px solid #5379B8;
z-index:10;
}

Scroll your page, and bar is fixed.

C?dric ;)

Neutral Singh 04-22-2008 03:29 PM

haven't tested on 3.7.x series. Is this hack working fine?

Megatr0n 04-22-2008 07:22 PM

Nick hack paaji.


All times are GMT. The time now is 03:54 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.01421 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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