MyBB Community Forums

Full Version: Labrocca's online24 plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I get this to work in the various themes I have on my forum? At the moment it only works on the default forum.
Anyone?
Global template, maybe? It should work... Look for the template your plugin(s) changed and duplicate the same thing into the Global Templates.
It's not global template...it's something like boardstats_Index. You can view the plugin file to see which template it changes.
Well, I'm suggesting he has a global template instead...
I see this bit in the plug in file...

Code:
    $db->insert_query(TABLE_PREFIX."templates", $template1);

    require MYBB_ROOT."/inc/adminfunctions_templates.php";
    find_replace_templatesets('index_boardstats', '#{\$whosonline}#', "{\$whosonline}\n{\$online24}");
}

function online24_deactivate() {

Please pardon my ignorance for this kind of thing, but what am I supposed to do in order to get the plug in work in each theme?
Find the code that the plugin modifies and replicate that into each and every theme...
index_boardstats = template name
{$whosonline} = the original code it looks for
{$whosonline} {$online24} = The code it replaces it with

Some older templates do not even use the index_boardstats template and that's why online24 won't work.
Thanks labrocca, I'll take a look at this over the weekend when I have a bit more spare time. Smile
Reference URL's