[Free Add-on ] Anchor and Go To BBCode (SMF Style) 1.0

Anchor and Go To BBCode (SMF Style)

  1. XenForo Rocks
    Compatible XF Versions:
    • 1.3
    Visible Branding:
    No
    I was looking for a way to add in anchors like SMF uses, and reading on the forums the solutions I found just would not work and I didn't feel like installing a mod to handle it, so I fixed it myself.

    This uses the SMF style of BBCodes, [IURL] & [ANCHOR]
    This is an export of both BBCodes directly from the BB Code & Smilies section of the Xenforo Admin, so that is where you will import the XML.

    Don't wish to import it?

    Add it in yourself using the following:
    (You can of course rename these to whatever you wish.)

    SM0Fkox.png
    Code:
    <a id="#{option}">{text}</a>
    USE:
    [Anchor=NAME]NAME[/Anchor]
    0SBwbdX.png
    Code:
    <a href="javascript:;" onclick="window.location.hash = '#{option}';">{text}</a>
    USE:
    [iurl=NAME]NAME[/iurl]
    Kuroko likes this.