Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #62  
Old 05-13-2006, 04:47 AM
kurtbarker kurtbarker is offline
 
Join Date: Nov 2005
Location: Kogarah, NSW
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Neutral Singh
This hacks counts all the posts in your database whether they are under usergroup restrictions or not which i think is the true count of posts in your forums.
hey mate, was going to install, but what is stated above is a bit of a worry for me... I have admin/mod/official sections which only those usergroups have access to, I don't want to display more posts than what my members can actually see, and if it shows a different count from the stats down the bottom, then it could be seen as a 'bug' by my members
Reply With Quote
  #63  
Old 05-14-2006, 02:38 PM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any need to show both the stats at all... just remove the stats down the bottom !!
Reply With Quote
  #64  
Old 05-24-2006, 05:45 PM
Svenna Svenna is offline
 
Join Date: May 2005
Location: Hamburg, Germany
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, don?t work.

https://vborg.vbsupport.ru/showthread.php?t=116361


I have tried all sorts of things but it simply does not work.
Reply With Quote
  #65  
Old 05-25-2006, 10:32 PM
MrOnline MrOnline is offline
 
Join Date: Feb 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've had to use impex on my old vb sqldb and move to a new, but on the new one after running all kinda "maintance" i still cant get the this plugin to show anything at the header...
the default stats update like no problem, but nothing comes up on top...
Reply With Quote
  #66  
Old 05-27-2006, 11:10 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

i think you would have to install the plugin again.
Reply With Quote
  #67  
Old 06-22-2006, 04:23 PM
napy8gen napy8gen is offline
 
Join Date: Jan 2006
Location: port ++++son
Posts: 519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

me too having the same problem to 2 of our client skin;

Quote:
Invalid SQL:
SELECT userid, username FROM vb_user WHERE vb_userid=9041;

MySQL Error : Unknown column 'vb_userid' in 'where clause'
Error Number : 1054
the plugin was installed and the code is put in header template properly.Any clue Mr Singh?
Reply With Quote
  #68  
Old 07-13-2006, 06:42 PM
TitanJeff's Avatar
TitanJeff TitanJeff is offline
 
Join Date: Jul 2002
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having a custom skin designed for 3.5.1 and installed this just a few minutes ago. It worked like a charm but it messed with my photo thumbnail table below the masthead by scrunching (technical term) the thumbnails to the left. Not only that, it did the same thing to my current skin which isn't even using the plugin.

Any ideas or suggestions as to a fix? I turned off this plugin and all returned to normal. I can post an image if it may help.

Thanks!
Reply With Quote
  #69  
Old 07-15-2006, 08:14 AM
TitanJeff's Avatar
TitanJeff TitanJeff is offline
 
Join Date: Jul 2002
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TitanJeff
I am having a custom skin designed for 3.5.1 and installed this just a few minutes ago. It worked like a charm but it messed with my photo thumbnail table below the masthead by scrunching (technical term) the thumbnails to the left. Not only that, it did the same thing to my current skin which isn't even using the plugin.

Any ideas or suggestions as to a fix? I turned off this plugin and all returned to normal. I can post an image if it may help.

Thanks!
Just to follow up, here are screen shots which show the problem better.
Reply With Quote
  #70  
Old 07-17-2006, 03:26 PM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Jeff, sorry for a late reply... see you dont have to put the same html formatting i used for an example....

So, even the following code should work for you!!


Code:
<b>Discussions:</b> $totalthreads </br>
<b>Messages:</b> $totalposts </br>
<b>Members: </b>$numbermembers </br>
<b>Online: </b>$totalonline </b> </br>
<b>Newest :</b> <a href="$vboptions[bburl]/member.php?u=$newuserid"><b>$newusername</b></a> (Welcome!) </br>
Reply With Quote
  #71  
Old 07-17-2006, 04:01 PM
TitanJeff's Avatar
TitanJeff TitanJeff is offline
 
Join Date: Jul 2002
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Neutral Singh
Hi Jeff, sorry for a late reply... see you dont have to put the same html formatting i used for an example....

So, even the following code should work for you!!


Code:
<b>Discussions:</b> $totalthreads </br>
<b>Messages:</b> $totalposts </br>
<b>Members: </b>$numbermembers </br>
<b>Online: </b>$totalonline </b> </br>
<b>Newest :</b> <a href="$vboptions[bburl]/member.php?u=$newuserid"><b>$newusername</b></a> (Welcome!) </br>
I am still getting the same error with the thumbnails shifting. Here is the code:

Code:
<td style="background-image:url($stylevar[imgdir_misc]/header_mid_bg.gif); background-position:top;">
	<p class="headlink2">
	<span class="headlink2">
	<strong>Members:</strong> $numbermembers<br />
    <strong>Threads:</strong> $totalthreads<br />
    <strong>Posts:</strong> $totalposts<br />
	
          <br />
          <strong>Newest Member:</strong> <a href="$vboptions[bburl]/member.php?u=$newuserid">$newusername</a></span></p>
    </td>
I assume this has to be in the plug-in code itself as my current template, that doesn't even use this plugin, has a shift of the photo gallery thumbnails when the plugin is activated.
Reply With Quote
Reply


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 11:23 PM.


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.05015 seconds
  • Memory Usage 2,320KB
  • 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
  • (4)bbcode_code
  • (4)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
  • (4)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