Skip to Content Skip to Menu

[SOLVED] Display Custom 16px icons Beside Name

  • lylejover
  • lylejover
  • OFFLINE
  • Posts: 30
  • Thanks: 3
  • Karma: 1
10 years 1 month ago - 10 years 1 month ago #249661 by lylejover
Hi,

I was trying to play around to display Icons beside the Name of a User on Profile View, however i could not find a way to do this.

I am using a delimiter field and a tab specifically just for this to display custom icons.

Is there a way or can you show me where in the code so that I would be able to display this delimiter field beside the name of the user?

e.g. [Name of User] [Icon]
Last edit: 10 years 1 month ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
10 years 1 month ago - 10 years 1 month ago #249683 by krileon
Replied by krileon on topic Display Custom 16px icons Beside Name
With CB 2.0 this is easily done with the new Layouts feature, which allows you to change the output of a field. With CB 1.x you'll need to use a delimiter field and substitute in the name fields with your icon HTML next to it. You then would need to replace the field on profile with your substitution field by moving the original name field to a tab in a not shown on profile position. The CB 1.x method won't show up in various plugins though. Another option is to use purely CSS to add an image before or after the name.


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.
Last edit: 10 years 1 month ago by krileon.

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

  • lylejover
  • lylejover
  • OFFLINE
  • Posts: 30
  • Thanks: 3
  • Karma: 1
10 years 1 month ago #249760 by lylejover
Replied by lylejover on topic Display Custom 16px icons Beside Name
Ok, I got it now. customized the code. :) Thanks Krileon! The Best as always!

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

Moderators: beatnantkrileon
Powered by Kunena Forum