Permissions for new page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dbrooke
    Member
    • Aug 2016
    • 45
    • 5.2.x

    Permissions for new page

    Hello, how do you make it so only a custom usergroup (besides admins / mods) can see a new page that I created?
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 3955
    • 5.7.X

    #2
    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.

    Flag Icon Postbit Insert GIPHY Impersonate User INITIALS AVATAR Better Name Card Quote Selected Text Collapsed PM Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • dbrooke
      Member
      • Aug 2016
      • 45
      • 5.2.x

      #3
      Thanks Glenn, I think rather I'll just create an HTML post in a protected forum... then link to that from the sub-header menu... that way it will only be viewable by a usergroup. Sounds like another Forum Feature Suggestion. :-)

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        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 &lt;- awesome site for html/css help

        Comment

        • glennrocksvb
          Former vBulletin Developer
          • Mar 2011
          • 3955
          • 5.7.X

          #5
          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 usergroup

          Flag Icon Postbit Insert GIPHY Impersonate User INITIALS AVATAR Better Name Card Quote Selected Text Collapsed PM Post Footer Translate Stop Links in Posts +MORE!

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 73427
            • 6.0.X

            #6
            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 API

            Comment

            • dbrooke
              Member
              • Aug 2016
              • 45
              • 5.2.x

              #7
              Have voted.. thx.

              Comment

              Related Topics

              Collapse

              Working...
              😀
              😂
              🥰
              😘
              🤢
              😎
              😞
              😡
              👍
              👎