MyBB Community Forums

Full Version: Buttons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have two non-standard buttons added, the first is "Chat" and the second is "Store" and I would like to hide them from logged in users where they will be visible only after logging in.  How can I do it ?
HTML:
<a class="button button_{$mybb->user['uid']}" href="store.php">Store</a>

CSS:
.button_0 { display: none !important; }

And you also need to take care of backend restrictions for guests in your chat / store script. Simply hiding them from frontend will not restrict users with a little knowledge.
And in what exactly file I have to paste this css code because I don't really know
You can put in global.css in admin cp
(2021-02-19, 09:45 AM)Koper Wrote: [ -> ]And in what exactly file I have to paste this css code because I don't really know

Paste this
.button_0 { display: none !important; }


0 is guest`s uid