Make specific menu buttons hidden to login/registration page?

Started by rcane, December 15, 2021, 01:14:00 PM

Previous topic - Next topic

rcane

I'd like to add a button (sub-menus too actually) of some points of contact for our group.

I was looking to block them from showing on the registration page or login page until the user gets inside.

I was hoping to find the template for that, much like using the boardIndex template to block the info center in that very same situation.

Thoughts?

shadav

in your source folder in subs.php
for whatever menu item you want
change the show to
'show' => !$user_info['is_guest'],this will not show the button to guests, so they have to be logged in to see it

rcane

Quote from: shadav on December 15, 2021, 01:29:47 PMin your source folder in subs.php
for whatever menu item you want
change the show to
'show' => !$user_info['is_guest'],this will not show the button to guests, so they have to be logged in to see it

THAT was it.  I had some pretty good failures up to this part :)

Advertisement: