• 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?

#1
Hi,

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
Code:
[SPOILER]
?

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.
 

Brogan

XenForo moderator
Staff member
#2
You could run queries to update the post content:
Code:
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.