i have 3 usergroups : A B C
i want on each user profile to be displayed an image depending his usergroup.
so:
with substitution i can assign an image for a field value (Profile Value Layout) - works
with conditional field i can show : if field usergroups has .. then show.
i can disable for edit and registration this field and put in any tab i want.
my problem is that i can set a default value for a field just for registration (for example i use text field).
i think is not the best solution for what i want ... but if anyone has a small idea... i appreciate
or a solution to display a field with assigned usergroup.. and here i can use substitution tu use an image
after some search found about delimiter field... which now is custom html
so .. i use [usertype] in the description of the field and i expect to render my usertype.. but renders me : [usertype]
if i use [firstname] [lastname] .. works. just to test it
You can test against a users usergroups or view access levels using the below usages.
[cb:if viewaccesslevel includes "1"]I am Public[/cb:if]
[cb:if viewaccesslevel !includes "1"]I am NOT Public[/cb:if]
[cb:if gids includes "2"]I have Registered Usergroup[/cb:if]
[cb:if gids !includes "2"]I do NOT have Registered Usergroup[/cb:if]
Ideally you should only use view access levels. I've no idea if/when the gids usage may change as we change how usergroups are handled to better match Joomla behavior.
Both of the above are exampled at the bottom of the substitutions tutorial found below.
You could use such a usage in a Custom HTML field to show an image based off their view access level for example.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.