I have noticed that mybb templates use characters like { }. Mybb uses smarty?
I need to comment on some {}, I've tried the following but it does not work: <!-- {$variable} -->
Any idea?
Thanks!
<!-- {$variable} --> does work on MyBB, make sure you are editing correct templates.
(2017-05-10, 04:50 PM).metro. Wrote: [ -> ]Creo que ya ha visto respuestas aquí .
como Omar sugirió que, sería mejor utilizar los condicionales plantilla plug-in y el código como por debajo
<if false then>
This is never shown!
</if>
I dont't understant .... I just want to comment on the code ..
umm ..
This code does not work on my template...
This code does not work on my template.. Also displays the content..
you can
install & activate template conditionals plugin
And for
whatever code you want to comment out,
you can wrap that code with
<if false then> and
</if>
that is,
put
<if false then> at the
beginning of
the code to be commented out
and put
</if> at the
end of
the code to be commented out
example :
<if false then>
{$variable}
</if>
ahhhh ok perfect!
A doubt.. Mybb uses smarty templates??
Thanks!
IIRC, at present
MyBB is using
its own template system. it is somewhat similar to
Smarty Engine.
MyBB 2.0 version will be using
Twig Engine.