How to Add badge to user profile in cb

11 months 3 weeks ago #333670 by saman2
Hi I want add some predefined badge to user profile. How to do that and what field type can be use? I want add a number to user profile via API from outside of joomla and then cb according that value, show correspond badge. Is it possible do that with cb?
Thank you.

Please Log in to join the conversation.

11 months 3 weeks ago #333671 by krileon
Replied by krileon on topic How to Add badge to user profile in cb
You'll need a means of communicating outside of CB. Depending on how you need to communicate would determine what you'd need. If you intended to communicate using SQL you'd need CB Query Field otherwise for all other API access usage you'd need CB Code Field so you can supply the necessary PHP. If you want to synchronize external data to a CB field you'd need CB Auto Actions. Once the data is there it should be trivial to display a badge or whatever you like using substitutions and HTML.


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 to join the conversation.

11 months 3 weeks ago #333679 by saman2
Replied by saman2 on topic How to Add badge to user profile in cb
Excuse me for silly question.
How to render the corresponding html?for example I must use drop down field and put html in value? Or what?
there is no problem to synch data. My problem in how show badge.

Please Log in to join the conversation.

11 months 3 weeks ago #333680 by krileon
Replied by krileon on topic How to Add badge to user profile in cb
Custom HTML field will let you render whatever HTML you want.


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 to join the conversation.

11 months 3 weeks ago #333681 by saman2
Replied by saman2 on topic How to Add badge to user profile in cb
Maybe I can not say my mean correctly .
I want have something such as drop-down field or what you say. That I can set or you can imagine select a value and then show a custom icon that we predefined in administrator. For example if we select 1 then it show a star icon in user profile. If we select or put 2 in database for that field, then it show for example circle and continue...
Custom html field only show simple html in profile. Is'nt that?

Please Log in to join the conversation.

11 months 3 weeks ago #333686 by krileon
Replied by krileon on topic How to Add badge to user profile in cb
You'd just use substitutions for that. So a normal select field then under its layout parameters you can customize how it displays. Example as follows.

Profile Value Layout:
[cb:if FIELD_NAME="VALUE"]IMAGE_HERE[/cb:if]

Example:
[cb:if cb_myselect="123"]<img src="..." alt="star" />[/cb:if]

You'd add an IF statement for each option value.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.203 seconds

Facebook Twitter LinkedIn