1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 How do you change the no access message for a page?

Discussion in 'XenForo Questions and Support' started by Lone Wolf, Dec 18, 2013.

  1. Lone Wolf

    Lone Wolf Well-Known Member

    I have set certain pages to only be available to users with X posts. If a user doesn't have X posts then they see this message...

    ...I would like to change that message to something else like...

    ..does anyone know how to do this?
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    How are you setting them to be viewable only with x posts?
     
  3. Lone Wolf

    Lone Wolf Well-Known Member

    Creating a usergroup with X posts and then revoking the permissions of registered to view that page.
     
  4. Lone Wolf

    Lone Wolf Well-Known Member

    I think I've found it. It is a phrase called

    'do_not_have_permission'

    ...I will try and change the phrase output and see if that works
     
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    That phrase is used in more than just that instance.
     
    Lone Wolf likes this.
  6. Lone Wolf

    Lone Wolf Well-Known Member

    Yeh I know, is there another way?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    It's defined in the PHP as part of the permission check function.
     
  8. Lone Wolf

    Lone Wolf Well-Known Member

    The phrase? So I cant change it?

    I was thinking of temporarily changing the phrase on the days I have the promotion and changing it back after the promotion.
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    You can edit the phrase but it will change for every instance that phrase is used.

    So any time a permission is denied, the edited phrase will be displayed.
     
    Lone Wolf likes this.
  10. Lone Wolf

    Lone Wolf Well-Known Member

    That's what I thought. It would only be for specific days so it should be ok as a temporary fix
     

Share This Page