Boardstats Displayed Globally - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Community Archive (https://community.mybb.com/forum-106.html) +--- Forum: Archived Forums (https://community.mybb.com/forum-143.html) +---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html) +----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html) +------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html) +------ Thread: Boardstats Displayed Globally (/thread-141561.html) |
Boardstats Displayed Globally - Miley - 2013-06-25 Is there a way that I could add {$boardstats} to every page. I figure it probably requires file edits as it appears to only be defined in the index. Thanks in advance! RE: Boardstats Displayed Globally - cyimking - 2013-06-25 You have to add it into all the templates. Example: Templates > Forum Display Template> Forum Display > Add it under {$threadslist} or whatever you want it to be. You have to do this for ALL the templates RE: Boardstats Displayed Globally - Miley - 2013-06-25 When {$boardstats} is placed anywhere else other than where it's supposed to be it won't display. I need to know how to make it so it will display. This is because it is only defined on the index.. Need to know what to add to what files so it works. RE: Boardstats Displayed Globally - Destroy666 - 2013-06-25 There is much code you'd need to add/move to global.php. Take a look at lines 59-337 in index.php (MyBB 1.6.10). That's the whole boardstats code if I'm not mistaken. RE: Boardstats Displayed Globally - Leefish - 2013-06-26 Here is a simple plugin that will show the stats in the footer. Install to plugins folder, activate in ACP and put the word mystats somewhere in the footer template and it will show the basic board stats in a row. It is called from cache so no queries. RE: Boardstats Displayed Globally - Miley - 2013-06-26 @Leefish - Where's the template for your plugin located. I want to make adjustments so it suits my forum better. RE: Boardstats Displayed Globally - Leefish - 2013-06-26 There is no template - it is a find replace string in the plugin itself. Open the plugin and you will find it at the bottom of the file. RE: Boardstats Displayed Globally - cyimking - 2013-06-27 (2013-06-25, 07:49 PM)Miley Wrote: When {$boardstats} is placed anywhere else other than where it's supposed to be it won't display. I need to know how to make it so it will display. This is because it is only defined on the index.. Need to know what to add to what files so it works. AH i think know why. You would have to edit the code of the plugin. Im not sure but check to see what's the addhook function is set up as. Example
See what the 1st parameter is set up as. _--------------------------- RE: Boardstats Displayed Globally - expat - 2015-01-31 anyone still working on this? would like it in the category's subforum listing page, not on the index, way too crowded |