1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

User Criteria for Custom Field

Discussion in 'Showcase Support' started by bloh, Jun 21, 2014.

  1. bloh

    bloh New Member Showcase

    I'm looking to limit certain custom fields to certain usergroup. Is there an easy way to achieve this?
     
  2. Bob

    Bob Developer Staff Member

    The only easy way to do something like that would be to limit which groups could create items in specific categories since custom fields are assigned to categories. Other than that, you are looking at some rather complex coding and or some rather wicked template editing. Im also not sure if your focus is on preventing Item Owners from being able to add content to specific fields OR if you are wanting to prevent specific users from viewing specific fields because of a group they are in. That is two completely different sets of circumstances (both would require the same amount of code and or template editing).
     
  3. bloh

    bloh New Member Showcase

    This ->preventing Item Owners from being able to add content to specific fields

    Or is it possible to limit the custom field url they enter to "http://domain.com/*"
     
    Last edited: Jun 21, 2014
  4. Bob

    Bob Developer Staff Member

    You can use both Regular expression and PHP callback for Text fields. That should be all you need to do what you want. You should even be able to use the PHP Callback to prevent specific user groups from adding a URL
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.