PDA

View Full Version : Forum stats in header template


DionDev
14 Jul 2009, 03:05
This makes no sense. Why is something so simple being so difficult?

Adding the following code as a plugin in global_start does not work:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



When using the variable $totalthreads in the header template after creating and activating this plugin, it is still not showing the $totalthreads count in the header where I want it to.

I have not seen a suitable fix for this. And no, a mod that executes 6 queries just to pull up these cached statistics is not what I am looking for.

HMBeaty
14 Jul 2009, 03:15
just a small bit from one of my custom files on my site.....it should help you out a bit:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



--------------- Added 1247541532 at 1247541532 ---------------

Actually....looking at that again, that IS part of my file. You're just missing the require_once variables I believe