Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 31)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Show User Group in Profile

  • pads
  • pads
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
8 years 1 month ago - 8 years 1 month ago #288297 by pads
Show User Group in Profile was created by pads
I want to be able to show a user's Group in their profile (and in user lists).
In my setup, the User Group indicates a person's function / duties, and it would be nice to display this in the lists.

However I cannot see how to add "User Group" in the field list.
I'm using CB 2.0.15

Many thanks

Peter
Last edit: 8 years 1 month ago by pads.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48634
  • Thanks: 8307
  • Karma: 1446
8 years 1 month ago #288325 by krileon
Replied by krileon on topic Show User Group in Profile
There is no frontend display of a users usergroups. Easiest way to do this is a Custom HTML field with substitutions. Specifically with IF substitutions since you can condition for what usergroup a user has and output whatever text you like. See the substitution tutorial below (IF examples at bottom of the page).

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb


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.

Please Log in or Create an account to join the conversation.

  • pads
  • pads
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
8 years 1 month ago #288332 by pads
Replied by pads on topic Show User Group in Profile
Thank you.

If I follow you correctly then I should put something like -
[cb:userdata field="usertype"]

In a new field

- however this does not seem to work.

Where am I going wrong .
Thank you
Peter

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48634
  • Thanks: 8307
  • Karma: 1446
8 years 1 month ago #288337 by krileon
Replied by krileon on topic Show User Group in Profile
Please read the tutorial carefully. The usages are as follows.

View Access Levels:
[cb:if viewaccesslevel includes "1"]I am Public[/cb:if]
[cb:if viewaccesslevel !includes "1"]I am NOT Public[/cb:if]

Usergroups:
[cb:if usergroup includes "2"]I have Registered Usergroup[/cb:if]
[cb:if usergroup !includes "2"]I do NOT have Registered Usergroup[/cb:if]


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.

Please Log in or Create an account to join the conversation.

  • pads
  • pads
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
8 years 1 month ago #288342 by pads
Replied by pads on topic Show User Group in Profile
Many thanks
Got it now

Peter

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum