Template doesn't change

by DarSider - 25-06-2015, 09:46 PM
Member
Prime
Posts:
155
Joined:
May 2015
Likes:
13
Credits:
54
Reputation:
9
2 Years of Service
#1
OP
Posted: 25-06-2015, 09:46 PM (This post was last modified: 26-06-2015, 04:47 AM by DarSider.)
Hello all :D

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
- Web Developer & Designer

Website : https://developement.design/
Skype : ef.team
Email : business@developement.design
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)