2020-08-24, 10:19 PM
I am trying to use this code
So in the footer, if you belong to the main groups it will show control panel and upgrade
If you belong to guest it shows login and register.
But using that above code it wont show any of the links.
I have conditionals installed.
<div class="footer-title">Account</div>
<if in_array($mybb->user['usergroup'], array(2,3,4,5,6,7)) then>
<div class="footer-link"><a href="{$mybb->settings['bburl']}/usercp.php"><i class="fa fa-angle-right" aria-hidden="true"></i>Control Panel</a></div>
<div class="footer-link"><a href="{$mybb->settings['bburl']}/upgrade.php"><i class="fa fa-angle-right" aria-hidden="true"></i>Upgrade</a></div>
</if>
<if $mybb->user['usergroup'] == "1" then>
<div class="footer-link"><a href="{$mybb->settings['bburl']}/member.php?action=login"><i class="fa fa-angle-right" aria-hidden="true"></i>Login</a></div>
<div class="footer-link"><a href="{$mybb->settings['bburl']}/member.php?action=register"><i class="fa fa-angle-right" aria-hidden="true"></i>Create an account</a></div>
</if>
</div>
So in the footer, if you belong to the main groups it will show control panel and upgrade
If you belong to guest it shows login and register.
But using that above code it wont show any of the links.
I have conditionals installed.