Skip to Content Skip to Menu

Avatar image in CB search Plugin/Joomla search?

7 years 5 months ago - 7 years 5 months ago #293911 by Windwanderer
RE: www.joomlapolis.com/forum/153-professional-member-support/221058-solved-avatar-image-in-cb-search-plugin-joomla-search#293911

I have the same issue. When I use [avatar] in CB search plugin, URL will be shown in search. But when I use [cb:userfield field="avatar" /], nothing (accept username from [username]) appears.

[MOD EDIT]: Please do not bump 4 year old topics to the front page. Create a new topic and link to the old if you feel it's relevant.
Last edit: 7 years 5 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48449
  • Thanks: 8280
  • Karma: 1443
7 years 5 months ago - 7 years 5 months ago #293913 by krileon
The [avatar] substitution always outputs the URL as that's a raw substitution. You need to use [cb:userfield field="avatar" /] if you want it to output the image, but Joomlas search doesn't allow HTML so it's not going to work unless you've modified Joomlas search.


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: 7 years 5 months ago by krileon.

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

7 years 5 months ago - 7 years 5 months ago #293919 by Windwanderer
Replied by Windwanderer on topic Avatar image in CB search Plugin/Joomla search?
Where can I allow html in joomla search?
Last edit: 7 years 5 months ago by Windwanderer.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48449
  • Thanks: 8280
  • Karma: 1443
7 years 5 months ago #293920 by krileon
You can't unless you modify Joomlas search component or maybe you can just override its results layout.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum