• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Custom BB Codes link format

AndyB

Well-known member
#1
What is the proper link format for Custom BB Codes? I would like to make sure it works properly with non Full Friendly URLs.

Currently I have
Code:
<a href="rsvp/registration?t={option}" class="OverlayTrigger"><button class="button">{text}</button></a>
I tried this but it doesn't work
Code:
<a href="{xen:link 'rsvp/registration', '', 't={option}'}" class="OverlayTrigger"><button class="button">{text}</button></a>
Thank you.
 

Chris D

XenForo developer
Staff member
#2
Code:
<a href="index.php?rsvp/registration&t={option}" class="OverlayTrigger"><button class="button">{text}</button></a>
That will work for boards that use friendly and non friendly URLs. If you absolutely must use the link builder then you will need to do that via a PHP callback.