Skip to Content Skip to Menu

[SOLVED] Customizing Profile Layout - delimiter fields not working for images?

10 years 7 months ago - 10 years 7 months ago #243049 by Michael2014
Hello community,

I came to love working with delimiter fields in connection with HTML as an easy means to format database content.
But now I am a bit stumped. I can´t get a simple image to show up in the profile. Here I thought that delimiter fields worked for images in the same way that they do for other data. But if displayed it only shows the path to the image. I can´t get it to work with "img src" or other html tags. I did quite some searching for the last hour, but came up with nothing?! My search fu may not be up to par, but I think I did quite some searching. So at this point I have to quit and ask for help :blush:

Thanks in advance!
Last edit: 10 years 7 months ago by Michael2014.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #243062 by krileon
My guess is you're using [FIELD_NAME] substitutions. Such substitutions are raw data. They are formatted. If you want to match a fields actual profile display value you should use the below usage.

[cb:userfield field="FIELD_NAME" /]

Please see the below tutorial for further substitution usage information.

www.joomlapolis.com/support/tutorials/107-use-cases/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.
The following user(s) said Thank You: Michael2014

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

10 years 7 months ago #243076 by Michael2014
SOLVED!!!

I do wonder why I can´t use the raw output of the field and put it into a container, i.e. code 1:
[ img ] [cb:userdata field="avatar" /] [ /img]
:code 1

to get a little more control over the data?

Thanks again !!!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #243088 by krileon
Yes, you can use the raw output like that too. Example as follows.

Code:
<img src="[avatar]" />


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.

10 years 7 months ago #243117 by Michael2014
Ah, then it´s been a typo in my html, I guess ;)

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

Moderators: beatnantkrileon
Powered by Kunena Forum