• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to 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.

Item Fields: New Option - Allow View Field by: All or Selected User Groups

Bob

Developer
Staff member
As per Title, there is a New General Option for Item Fields "Allow View Field by" which allows you to set which user groups are allowed to view this field when viewing a showcase item (or item list when the field is set to display on list).

NOTE: If a user does not have permission to view Showcase or the Showcase Item itself, this setting will not apply.

Here is a screen shot of an existing field called PRICE. As you can see, there is a new option located on the General Options Tab of each field. This option has 2 main options (All User Groups or Selected User Groups... NOTE: default is set to ALL). Selected User Groups allows you to set specific user groups (one or more).

Lets set this field (and a few others Performance, Value and Vehicle Modifications) to be viewable to ALL User Groups except 'Unregistered / Unconfirmed'
Selection_122.png


Now lets check out the frontend....

As you can see, the viewing user is NOT Logged in (GUEST) which uses the "Unregistered / Unconfirmed" user group. Since the viewing user is NOT in a user group that is allowed to view these fields, they won't display


Selection_119.png


Lets log in and see what happens. Now that the viewing user is logged in and belongs to one or more of the selected user groups, they are able to view the field content.

Selection_118.png


Same thing applies on the Showcase Item pages themselves. As you can see, the viewing user is NOT logged in, therefor won't be able to view the Fields that are set to be viewable by specific user groups.

Selection_121.png


However, when logged in and the viewing user belongs to one or more of the selected user groups for a specific field, they can view the field content.
Selection_120.png
 
Upvote 0
Would it be better if the field name is shown but its values hidden so that guest users know some interesting info is available and they need to register or log in to see those.. let the users know we have lots of candies... otherwise they might not know if the info is even available.....

this will motivate the users to register or log in = Good for our forums

Just a suggestion...

Screen Shot 2015-04-24 at 1.26.54 PM.png
 
or if it is set for Premuim user groups only... say "(You need to be a Premium member to see this info)"... and all sorts of messages based on the criteria set.
 
or if it is set for Premuim user groups only... say "(You need to be a Premium member to see this info)"... and all sorts of messages based on the criteria set.
This thread is about functionality that has already been developed and implemented. Its not prefixed "Open for Discussion". Feel free to start a new thread with your specific suggestion so that it can be tracked as a suggestion.
 
Back
Top