Back to vBulletin 3.0 Add-Ons

mediaWiki vBulletin Statistics
Mod Version: 1.00, by RossOliver

This modification is in the archives.
vB Version: 3.0.8 Rating: (0 vote - 0 average) Installs: 1
Released: 18 Sep 2005 Last Update: 18 Sep 2005 Downloads: 11
Not Supported Additional Files  

I hope this is the most suitable place to post this extension.

Basically, it allows you to view information about your forum statistics on your mediaWiki pages. You can view an example of the extension working http://developersdigest.org/wiki/index.php/MediaWiki_VBulletin_stats_extension_demo.

The installation is easy enough and takes ~2 minutes. Everything you need to get going can be found on this http://developersdigest.org/wiki/index.php/MediaWiki_VBulletin_stats_extension or below.

This hack has only been tested on vBulletin version 3.0.8 and mediaWiki version 1.4.7

Installation

To install the script; first download the VbStatsExtension.zip file.

Rename the downloaded .php file to 'vbStats.php' and upload it to; yourwiki/extensions/

Next; put the following code at the bottom of your localSettings.php file;

Code:
# include vBStatsExtension
include("extensions/vbStats.php");
Finally, change these settings in vbStats.php;

Code:
 
########### EDIT THESE VARS ########### 
$server = "localhost"; # if you don't know what this is just leave it as localhost
$username = "username"; # your MySQL username
$password = "password"; # your MySQL password
$forumdb = "forum"; # your forum MySQL database name
$wikidb = "wiki"; # your wiki MySQL database name
$maxThreadLimit = 10; # max number of threads to show
$maxUserLimit = 10; # max number of users to show
$forum_url = "http://www.yourwebsite.com/forum"; # your forum url - DO NOT put an ending forward slash on (site.com/forum/ <-WRONG)
########### /EDIT THESE VARS ###########
Usage

To use the script, simply put the following tags in a mediaWiki article;

Code:
<vbThreadStats>
limit=[number]
sort=[ASC,DESC]
order by=[date,title,rand]
</vbThreadStats>
<vbUserStats>
limit=[number]
sort=[ASC,DESC]
order by=[posts,joindate,username,rand]
</vbUserStats>
<vbBoardStats>
show total posts=[true,false]
show total threads=[true,false]
show total members=[true,false]
show largest thread=[true,false]
show most popular thread=[true,false]
show most popular forum=[true,false]
</vbBoardStats>
<vbUserActivityStats>
show active users=[true,false]
show inactive users=[true,false]
show sub-heading=[true,false]
show last 30 days=[true,false]
show last 14 days=[true,false]
show last 7 days=[true,false]
</vbUserActivityStats>
Example;

Code:
<!-- show latest threads -->
<vbThreadStats>
limit=5
sort=DESC
order by=date
</vbThreadStats>
Enjoy...

-Ross

Download

This modification is archived and cannot be downloaded.

Supporters / CoAuthors

  • RossOliver

vblts.ru supports vBulletin®, 2022-2024