<if in_array($GLOBALS['mybb']->user['usergroup'], array(3,4)) && in_array($fid, array(2)) then>
<a class="threadbt" title="{$lang->post_thread}" href="newthread.php?fid={$fid}" class="threadbt">{$lang->post_thread}</a>
</if>
<if $fpermissions['canpostthreads'] == 1 then>
<a class="threadbt" title="{$lang->post_thread}" href="newthread.php?fid={$fid}" class="threadbt">{$lang->post_thread}</a>
</if>
(20 Aug, 2012, 3:25 pm)InfraWorld escribió: De esta forma:
<if $fpermissions['canpostthreads'] == 1 then> <a class="threadbt" title="{$lang->post_thread}" href="newthread.php?fid={$fid}" class="threadbt">{$lang->post_thread}</a> </if>
<if $fpermissions['canpostthreads'] == 1 then>
PUEDES CREAR TEMAS :D
<else>
NO PUEDES CREAR TEMAS :@
</if>
(20 Aug, 2012, 3:37 pm)Omar G. escribió: Actualmente el boton de crear temas se muestra siempre (a menos que el foro este cerrado por completo).
$fpermissions es el array de permissos para el foro que se esta viendo.
-- ['canpostthreads'] es el permiso para crear temas en dicho foro.
<if $fpermissions['canpostthreads'] == 1 then> PUEDES CREAR TEMAS :D <else> NO PUEDES CREAR TEMAS :@ </if>
Deberia ser default, pero bueno..