MyBB Community Forums

Full Version: Display Toplinks by Permission
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Preface: Not a php programmer.

Is it possible to disable certain toplinks based on whether a user is logged in or not?

For anonymous users (guests), I do not want to show Member List and Calendar.

If so, how do I do this?

Thanks,
Kerry Wano

"True friends stab you in the front." - Oscar Wilde
I think you can move the Member List and Calendar link to header_welcomeblock_member
it would need more modifications than just moving them because they wouldn't display very well otherwise.

This plugin allows you to use basic PHP conditionals which would allow you to do what you need: http://community.mybboard.net/thread-318...nditionals
Thanks for the nudge, Matt!

Here is the solution I followed:

Download and activate this plugin:
PHP and Template Conditionals plugin

I inserted the following code in the header
(AdminCP, Templates and Style, Templates, template name, Header Templates, header):

(Search link)
<if $mybb->user['uid'] > 0 then>
(Member List link)
(Calendar link)
</if>
(Help link)