MyBB Central

Full Version: Twig
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Plugin: Twig
Description: Twig template engine for MyBB
Author: AliReza_Tofighi
You can use Twig as the template engine with this plugin.
For example you can use this code:
PHP Code:
Welcome 
{% if mybb.user.uid == '0' %}
Guest
{% else %}
{{ 
mybb.user.username }}
{% endif %} 
download:
Nice, I like this one Smile