Hello, how do you make it so only a custom usergroup (besides admins / mods) can see a new page that I created?
Permissions for new page
Collapse
X
-
Unfortunately there is no no permission settings for new pages created.
You could hide the content via CSS based on usergroup but since it's only CSS the content is only hidden on the screen but is viewable in the source. -
You can add the text via a PHP Module and then just put a condition around it. This example will only show the text if the user is in the Administrator usergroup:
PHP Code:if (vB5_User::get('usergroupid') ==1) {
echo 'You do not have permission to see this page';
} else {
echo '<span style="color: red;">This is a welcome message since you are an Admin!</span>';
}
Please don't PM or VM me for support - I only help out in the threads.
vBulletin Manual & vBulletin 4.0 Code Documentation (API)
Want help modifying your vbulletin forum? Head on over to vbulletin.org
If I post CSS and you don't know where it goes, throw it into the additional.css template.
W3Schools <- awesome site for html/css helpComment
-
You could also do it using an Ad Module or Notice and configure it to be visible with desired usergroup. You can only choose one usergroup though. If you want multiple usergroups to have permissions to view it, then you have to duplicate the Ad Module or Notice and then change the usergroupComment
-
There is a Feature Request for this here: http://tracker.vbulletin.com/browse/VBV-1819
The more votes it gets, the more visible it becomes.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 APIComment
Related Topics
Collapse
-
by karlmI have been building a small PHP module on the article pages. It would be useful if it could set so certain usergroups could view it and others not.
As an example scenario, say I wanted to...-
Channel: Support Issues & Questions
Sat 23 Jul '16, 5:56pm -
-
by Kent55Since vBulletin 5 has the site builder which easily enables you to add new pages to your site, you may want to add your own custom permissions to those pages. First you will need to create a new page...
-
Channel: vBulletin 5 Tutorials
Tue 29 Jul '14, 2:29pm -
Comment