1. 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

Discussion in 'XenForo Development Discussions' started by AndyB, Feb 11, 2015.

  1. AndyB

    AndyB Well-Known Member

    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.
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    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.
     
    Marcus likes this.
  3. AndyB

    AndyB Well-Known Member

    Thank you, Chris.
     

Share This Page