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

XF 1.5 Hide the Tags input field for usergroups without permission

Discussion in 'Troubleshooting and Problems' started by Beanjam, May 19, 2016.

  1. Beanjam

    Beanjam Active Member

    Does anybody know how I can hide the Tags input field for usergroups without permission when creating a thread?

    At the moment it still shows but gives an error when non-permitted users attempt to use it - 'You may not create new tags. Please change the following tags: '

    If I set permissions to Never then it doesn't show the input field. However giving permissions to higher usergroups also won't show the field to them.

    EDIT:
    I've added <xen:if is="{xen:helper ismemberof, $visitor, x}"> around the tagging code in the thread_create template to only show this to my higher usergroup for the moment. I'd still like to understand why the issue is occurring though. :unsure:

    Also for some reason, the higher usergroup seems to have permission to add tags to other user's threads even though Analyze Permissions confirms that Tag Thread by Anyone is set to No. Setting it to Never fixes it but is not ideal.

    Thanks
     
    Last edited: May 19, 2016
  2. Beanjam

    Beanjam Active Member

    Is anyone else having this behavior? I'd like to find out if it's just my set up or a bug.
     
  3. Mike

    Mike XenForo Developer Staff Member

    Based on the wording of the message, it sounds like you're just blocking people from creating new tags, not tagging their thread (using an existing tag). If they can't tag their thread, they won't see the block.

    In terms of moderators, the "Manage tags by anyone" will automatically imply the ability to add tags to threads.
     
    Beanjam likes this.
  4. Beanjam

    Beanjam Active Member

    Thanks for your help, I narrowed it down to being set in node permissions not usergroup. No idea why that was done. o_O
     

Share This Page