MyBB Community Forums

Full Version: [Help?]Not work php code in templates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How php code work in templates? Sad HELP?
Home » Template Sets » X Templates > Edit Template: nav_bit_active   




<li class="active"><?php echo substr($navbit['name'], 20); ?></li>
have you installed & activated php in templates plugin ?

you should also check result of substr($navbit['name'], 20) !
(2016-01-07, 10:05 AM).m. Wrote: [ -> ]have you installed & activated php in templates plugin ?

you should also check result of substr($navbit['name'], 20) !

and

<li class="active">{substr($navbit['name'], 20)}</li>

Not work .. :X
if you have installed & activated php in templates plugin then may be you wanted to use below code !
<li class="active"><?php echo substr($navbit['name'], 0,20); ?></li> 

see also => substr