MyBB Community Forums

Full Version: Template doesn't change
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all Big Grin

I use this code :

Quote:function ratio_activate()
{
    global $db;
    require MYBB_ROOT.'/inc/adminfunctions_templates.php';
    find_replace_templatesets(
        "member_profile",
        '#'.preg_quote('<tr>
<td class="trow2"><strong>{$lang->timeonline}</strong></td>
<td class="trow2">{$timeonline}</td>
</tr>').'#',
        '<tr><td class="trow2"><strong>{$lang->timeonline}</strong></td><td class="trow2">{$timeonline}</td></tr><tr><td class="trow2"><strong>Ratio</strong></td><td class="trow2">{$ratio}</td></tr>'
    );
}

But the template doesn't change Sad
Please help

PS : Where do i need to declare the $ratio variable into my plugin.php ?

Thanks Big Grin

FIXED : http://community.mybb.com/thread-141819.html