2013-04-12, 02:19 PM
Hey,
I have searching for a sollution the hide the reply button, new reply and the new thread button for members that have not the permission to use this in forums.
Here the sollutions.
This will hide the New Thread button automatically when a user doesn't have permission to create a new thread in a forum.
forumdisplay_newthread:
This will hide the New Reply button automatically when a user doesn't have permission to post a new reply in a thread.
showthread_newreply:
The same conditional if we want to hide the Reply button in postbit:
postbit_quote template:
I don't know if this is already on the Mybb forum, but I want to share this with people that want the same to hide this..
Greatings.
I have searching for a sollution the hide the reply button, new reply and the new thread button for members that have not the permission to use this in forums.
Here the sollutions.
This will hide the New Thread button automatically when a user doesn't have permission to create a new thread in a forum.
forumdisplay_newthread:
<if $fpermissions['canpostthreads'] == 1 then>
<a href="newthread.php?fid={$fid}"><img src="{$theme['imglangdir']}/newthread.gif" alt="{$lang->post_thread}" title="{$lang->post_thread}" /></a>
</if>
This will hide the New Reply button automatically when a user doesn't have permission to post a new reply in a thread.
showthread_newreply:
<if $forumpermissions['canpostreplys'] == 1 then>
<a href="newreply.php?tid={$tid}"><img src="{$theme['imglangdir']}/newreply.gif" alt="{$lang->post_reply_img}" title="{$lang->post_reply_img}" /></a>
</if>
The same conditional if we want to hide the Reply button in postbit:
postbit_quote template:
<if $forumpermissions['canpostreplys'] == 1 then>
<a href="newreply.php?tid={$tid}&pid={$post['pid']}"><img src="{$theme['imglangdir']}/postbit_quote.gif" alt="{$lang->postbit_quote}" title="{$lang->postbit_quote}" /></a>
</if>
I don't know if this is already on the Mybb forum, but I want to share this with people that want the same to hide this..
Greatings.