MyBB Community Forums

Full Version: if not login, appear link login in bottom of showthread/quick reply
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
if not login, appear link login in bottom of showthread/quick reply

or, in generally (other page), if not login appear something like link, announce etc

thanks
there can be different methods to fulfill above requirement.

one method is to install template conditionals plugin & use code like below at the required location
<if $user['usergroup'] == 1 then>guest message</if>

[templates guidance]
(2017-06-10, 01:11 PM).m. Wrote: [ -> ]there can be different methods to fulfill above requirement.

one method is to install template conditionals plugin & use code like below at the required location
<if $user['usergroup'] == 1 then>guest message</if>

yes work, after i change like below
<if $GLOBALS['mybb']->user['usergroup'] == 1 then>messange</if>

thanks