The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Widget - Stats help
Hi,
I'm trying convert "Forum Statistics", displayed at the bottom of forum.php into a widget by following Cellarius' Rendering templates and registering variables guide and by cross referencing with Lynne's "Who's Online" mod, but I'm not having much joy. Below are the steps I took;
From looking at the guide, I (incorrectly?) thought I defined the array I wanted to use, which includes all my variables, and then registered it for use in my pre-existing template. However, something is wrong as my outcome is; The only difference in methodology I can find is the inclusion of "require_once(DIR . '/includes/functions_bigthree.php'); " at the start of the PHP in Lynne's mod. I don't really understand it, but I think it's basically needed because something required for the mod to work is defined within functions_bigthree.php? As my threads is currently displaying 0, I'm guessing that "threadcount" (amongst others) hasn't been defined properly, as it's not adding this value onto 0. I did a search for "functions" files containing"threadcount" and discovered it contained within the following files;
I then tried adding these to top of the widget PHP via require_once(DIR . '/includes/functions_filename.php');, but to no avail. I'm now at a dead end as to what to try next to get it to work so any help would be appreciated. |
#2
|
|||
|
|||
Anyone? I've hit a brick wall in terms of trying to get this to work on my own.
|
#3
|
|||
|
|||
Did you ever figure this out?
|
#4
|
|||
|
|||
Hi, sorry for the late reply. No I didn't, however, someone else managed to get it to work and released it - https://vborg.vbsupport.ru/showthread.php?t=236403 .
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|