Skip to Content Skip to Menu

CB Code Field - HTML output into substitution

  • sysopcrew
  • sysopcrew
  • OFFLINE
  • Posts: 74
  • Thanks: 14
  • Karma: 3
7 years 6 months ago - 7 years 6 months ago #293009 by sysopcrew
I've got a CB Code Field that generates a value wrapped in a div with a .class based on a condition determined in the CB Code Field php.

Example output of the cb_cert_status field:
Code:
<div class="certcurrent">Current</div>

In the CB Login module->Logout Options->Logout Post-text field, I use the substitution for this field.
Code:
[cb_cert_status]

This outputs the literal div brackets as &amp;lt; and &amp;gt;
Code:
<div class="certcurrent">Current</div>

Is there a way around this so that the CB Login module can render the HTML created by CB Code Field?

Current

--
David Riviera
Last edit: 7 years 6 months ago by sysopcrew. Reason: Added desired appearance

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

  • sysopcrew
  • sysopcrew
  • OFFLINE
  • Posts: 74
  • Thanks: 14
  • Karma: 3
7 years 6 months ago - 7 years 6 months ago #293011 by sysopcrew
Replied by sysopcrew on topic CB Code Field - HTML output into substitution
Aha! I found the Using Substitutions guide.
Code:
[cb:userfield field="cb_cert_status" /]

--
David Riviera
Last edit: 7 years 6 months ago by sysopcrew.

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

Moderators: beatnantkrileon
Powered by Kunena Forum