MyBB Community Forums

Full Version: Set permissions to theme template pages?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I set permissions to a template in a theme. Here is an example of what I am talking about.

[Image: VDHUDcZ.png]

header_welcomeblock_guest is only accessiable to guests.
header_welcomeblock_member is what members see
header_welcomeblock_member_admin is only able to been seen from admins
header_welcomeblock_member_moderator allows moderators and admins to view


How can I set up templates like this where you can set permissions as to what groups can see them. I've looked inside the templates and there is nothing. Really need help with this, couldn't find anything related to this problem anywhere.
You will have to look inside the code (php) files to see how it's done.
(2015-11-26, 08:55 AM)Ashley1 Wrote: [ -> ]You will have to look inside the code (php) files to see how it's done.

Yes I know that but I do not know where those are located.
Unless I'm not understanding what you're wanting correctly - it's already setup that way by default.
(2015-11-26, 09:53 AM)Wage Wrote: [ -> ]Unless I'm not understanding what you're wanting correctly - it's already setup that way by default.

I want to be able to create new templates and set there permissions. Existing template already have permissions set, new templates however do not, they are global.