Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Live Forum Statistics on All Pages in Header Details »»
Live Forum Statistics on All Pages in Header
Version: 1.01, by Neutral Singh Neutral Singh is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 09-01-2005 Last Update: 05-24-2006 Installs: 171
Uses Plugins Template Edits
 
No support by the author.

Plugin Keywords: Forum, Stats, Statistics, Members, New Members, Forum, Statistics, Member Info

Please Don't Forget to Click -->

Requested by :
Myself :devious:

Context :
Searched through vb.org but could not find a similar plugin/hack for vB3.5/vB3.0.x. 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.sikhism.us

Any Screenshots : Demo is self-explanatory.

Warning : This plugin executes 5 queries per page.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-16-2005, 07:24 PM
hyproVision hyproVision is offline
 
Join Date: Feb 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow your site looks very much like www.webhostingtalk.com !
Reply With Quote
  #13  
Old 09-17-2005, 05:22 PM
Blindchild02's Avatar
Blindchild02 Blindchild02 is offline
 
Join Date: Apr 2002
Location: USA
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hyproVision
Wow your site looks very much like www.webhostingtalk.com !
i was just about to say that
http://www.webhostingtalk.com/
Reply With Quote
  #14  
Old 09-19-2005, 02:39 PM
hyproVision hyproVision is offline
 
Join Date: Feb 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This comes up when i install it:

There seems to have been a problem with the Test Forums database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.


Code:
Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:
SELECT COUNT(DISTINCT(userid)) AS count FROM testboardsession WHERE session.userid>0 AND session.lastactivity>1127143369;

MySQL Error  : Unknown table 'session' in where clause
Error Number : 1109
Reply With Quote
  #15  
Old 09-19-2005, 07:38 PM
HaYLaZ's Avatar
HaYLaZ HaYLaZ is offline
 
Join Date: Apr 2005
Posts: 349
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ı made some code modifications about this and ı change the table
ı think it was very beatiful and changable all colours
replace the codes below wiht your old codes and ı put this codes to myforumhome template under $navbar code.You can see the example in attachment

PHP Code:
<!-- Forum Stats in Header Template -->
<
table width="100%" border="0" cellspacing="0" cellpadding="0">
  <
tr>
    <
td>
      <
table align="center" border="1">
<
tr>
<
td bordercolor="red"><div class="smallfont">
<
span style="color: red;"><b>Discussions:</b$totalthreads </span></div>
 
<
td bordercolor="blue"><div class="smallfont">
<
span style="color: blue;"><b>Messages:</b$totalposts </span></div>

<
td bordercolor="black"><div class="smallfont">
<
span style="color: black;"><b>Members: </b>$numbermembers </span></div>
 
<
td bordercolor="green"><div class="smallfont">
<
span style="color: green;"><b>Online: </b>$totalonline </b> </span></div

<
td bordercolor="purple"><div class="smallfont">
<
span style="color: purple;"><b>Newmember :</b> <a href="$vboptions[bburl]/member.php?u=$newuserid"><b>$newusername</b></a> (welcome!)</span></div>

 </
tr>
</
table>
<!-- 
Forum Stats in Header Template --> 

you can change colours yourself
Reply With Quote
  #16  
Old 09-24-2005, 09:00 AM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HaYLaZ
ı made some code modifications about this and ı change the table
ı think it was very beatiful and changable all colours
replace the codes below wiht your old codes and ı put this codes to myforumhome template under $navbar code.You can see the example in attachment

PHP Code:
<!-- Forum Stats in Header Template -->
<
table width="100%" border="0" cellspacing="0" cellpadding="0">
  <
tr>
    <
td>
      <
table align="center" border="1">
<
tr>
<
td bordercolor="red"><div class="smallfont">
<
span style="color: red;"><b>Discussions:</b$totalthreads </span></div>
 
<
td bordercolor="blue"><div class="smallfont">
<
span style="color: blue;"><b>Messages:</b$totalposts </span></div>

<
td bordercolor="black"><div class="smallfont">
<
span style="color: black;"><b>Members: </b>$numbermembers </span></div>
 
<
td bordercolor="green"><div class="smallfont">
<
span style="color: green;"><b>Online: </b>$totalonline </b> </span></div

<
td bordercolor="purple"><div class="smallfont">
<
span style="color: purple;"><b>Newmember :</b> <a href="$vboptions[bburl]/member.php?u=$newuserid"><b>$newusername</b></a> (welcome!)</span></div>

 </
tr>
</
table>
<!-- 
Forum Stats in Header Template --> 

you can change colours yourself
Yeah, hee hee, its duly called WHT Remix Style.

Nice work HaYLaZ !!
Reply With Quote
  #17  
Old 10-09-2005, 07:14 AM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Neutral Singh
Yeah, hee hee, its duly called WHT Remix Style.

Nice work HaYLaZ !!
didnt work w/ gold.
Reply With Quote
  #18  
Old 10-09-2005, 07:17 AM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT COUNT(DISTINCT(userid)) AS count FROM x_session WHERE session.userid>0 AND session.lastactivity>11288029;

MySQL Error : Unknown table 'session' in where clause
Error Number : 1109
Date : Sunday, October 9th 2005 @ 04:17:09 AM
Script : http://www.thesite.com/
Referrer :
IP Address : x.x.x.x
Username : Chad
Classname : vb_database
Reply With Quote
  #19  
Old 10-11-2005, 03:33 AM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chatbum
Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT COUNT(DISTINCT(userid)) AS count FROM x_session WHERE session.userid>0 AND session.lastactivity>11288029;

MySQL Error : Unknown table 'session' in where clause
Error Number : 1109
Date : Sunday, October 9th 2005 @ 04:17:09 AM
Script : http://www.thesite.com/
Referrer :
IP Address : x.x.x.x
Username : name
Classname : vb_database
why cant i get it to show how many users are online?
Reply With Quote
  #20  
Old 10-13-2005, 06:19 AM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

? anyone
Reply With Quote
  #21  
Old 10-24-2005, 12:28 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chatbum
? anyone
how come you got it to work for online members...
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05308 seconds
  • Memory Usage 2,344KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete