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

XF 1.4 BB Code Alias?

Discussion in 'XenForo Questions and Support' started by kira.ee, Jun 2, 2015.

  1. kira.ee

    kira.ee Member


    I've switched from my previous forum (vBulletin) to XenForo and in that we had a different BB Code for spoiler - [OFF].
    I was wodering if it's possible to simply create an alias BB code [OFF] that will simply copy the functionality of

    Or maybe there's a different solution to this? I thought about querying all the previous posts and changing [OFF to [SPOILER but didn't want to break anything.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You could run queries to update the post content:
    UPDATE xf_post SET message = REPLACE(message,'[OFF]','[SPOILER]');
    UPDATE xf_post SET message = REPLACE(message,'[/OFF]','[/SPOILER]');
    This will only work if all of the tags are identical as in the queries.

    Take a backup of the database, or at least the xf_post table before running them, just in case.
    aker2k and kira.ee like this.

Share This Page