Skip to Content Skip to Menu

[SOLVED] Display HTML code in a delimiter field

  • NickC4555
  • NickC4555
  • OFFLINE
  • Posts: 23
  • Thanks: 2
  • Karma: 1
13 years 4 months ago - 13 years 4 months ago #165163 by NickC4555
Is there a way to display HTML code in a delimiter field? I want to display a code block as a field value that users can embed in their websites to link to their CB profile on my site, like the "Find us on Facebook" button.
Last edit: 13 years 4 months ago by krileon.

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

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
13 years 4 months ago #165283 by krileon
Replied by krileon on topic Re: Display HTML code in a delimiter field
Delimiter fields support HTML, simply input the HTML of your choice and save. Don't quite understand your request however. Are you wanting users to provide for instance a Facebook ID and you structure that ID with HTML in a delimiter field? This is very doable using substitutions to obtain the field value (e.g. [cb_myfbid]).


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.

  • NickC4555
  • NickC4555
  • OFFLINE
  • Posts: 23
  • Thanks: 2
  • Karma: 1
13 years 4 months ago #165289 by NickC4555
Replied by NickC4555 on topic Re: Display HTML code in a delimiter field
What I want to do is create a block of HTML that a user can copy and paste into another website to create a link back to mine with an image. I've tried what you suggest, but the browser just renders it, instead of displaying the raw code. Even changing the less than and greater than characters for "<" and ">" still doesn't fix it.

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

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
13 years 4 months ago #165312 by krileon
Replied by krileon on topic Re: Display HTML code in a delimiter field
I see, you need to html encode your content before adding to a delimiter field. Another option is to place the HTML in a text area; examples as follows.

Encoded:
Code:
<a href="[cb:config param="live_site" /]"><img src="[cb:config param="PARAMETER" /]/images/logo.png" /></a>

Textarea Encoded:
Code:
<textarea cols="20" rows="5"> &lt;a href=&quot;[cb:config param="live_site" /]&quot;&gt;&lt;img src=&quot;[cb:config param="live_site" /]/images/logo.png&quot; /&gt;&lt;/a&gt; </textarea>

You can find an online encoding tool at the below link.

web.forret.com/tools/html.asp


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: NickC4555

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

  • NickC4555
  • NickC4555
  • OFFLINE
  • Posts: 23
  • Thanks: 2
  • Karma: 1
13 years 4 months ago #165712 by NickC4555
Replied by NickC4555 on topic Re: Display HTML code in a delimiter field
That did the trick, thank you. One last question: Is there a way of using the CB Conditional plugin (or any other way) to only display the field on your own profile, i.e. not be seen by anyone else who visits it?

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
13 years 4 months ago #165732 by nant

NickC4555 wrote: That did the trick, thank you. One last question: Is there a way of using the CB Conditional plugin (or any other way) to only display the field on your own profile, i.e. not be seen by anyone else who visits it?


You should use the privacy plugin to do this.
The following user(s) said Thank You: NickC4555

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

Moderators: beatnantkrileon
Powered by Kunena Forum