I use this code :
Code:
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 :(
Please help
PS : Where do i need to declare the $ratio variable into my plugin PHP page ?
Thanks :D
EDIT : The problem of the template edition = fixed
But not the seconde problem :p
All problems fixed :D