XF 2.0 Cannot Get Custom BBCode To Work

markransome

Member
Hi,

I am trying to add a custom BBCode to be able to add a custom button with a link, this is what I have come up with so far:

BB code tag: btn

Title: Custom button

Replacement mode: Simple

Supports option parameter: Yes

HTML replacement:
HTML:
<p class="custom-button"><i class="fas fa-angle-right"></i>{text}<a href="{option}">{text}</a>.</p>
I have followed the tutorial in the manual (https://xenforo.com/xf2-docs/manual/bbcode/#custom-bb-codes) but still no joy! If I put the raw code into a widget it works (See attachment Custom Button.jpg).

Can anybody help?


Kind regards,

Mark
 

Case

Well-known member
How are you using it in your posts? Post an example inside the code tag here.

I'm not sure 2 instances of {text} will work.
 

markransome

Member
HTML:
[BTN]<p class="custom-button"><i class="fas fa-angle-right"></i>Follow this example link <a href="my link">here</a>.</p>[/BTN]
 
Top