MyBB Support

Template doesn't change

Submitted by DarSider, , Thread ID: 5043

Thread Closed
DarSider
Member
Level:
0
Reputation:
13
Posts:
149
Likes:
14
Credits:
55
25-06-2015, 09:46 PM
This post was last modified: 26-06-2015, 04:47 AM by DarSider
#1
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 : [email protected]

Users browsing this thread: 1 Guest(s)