XF 1.5 Just merged two boards in to XF, need help

SeaDog

Active member
Hi,

So I made the plunge and got a license :)

We then proceeded to merge a PHPBB 3 and VB 3.x board together...!

What we've found is we have posts which now contain code like this:

Code:
[bandcamp]album=2594377903[/bandcamp]

and

Code:
[youtube]http://www.youtube.com/watch?v=Yl0C4ykr63k[/youtube]

What can we do?
 
You will need to create custom bb code to replicate the bandcamp tag.
Or, as the album references are likely invalid, you can strip it out using this add-on: Post Content Find / Replace

Similarly you can use the same add-on for the youtube tags, or if they are all the same format, use a simple SQL query, for example:
Code:
UPDATE xf_post SET message = REPLACE(message,'[youtube]http://www.youtube.com/watch?v=','[MEDIA=youtube]');
UPDATE xf_post SET message = REPLACE(message,'[/youtube]','[/MEDIA]');

Take a backup first before making any changes to the database.
 
That's great, thanks @Brogan I will give the YouTube method a try (after backing up obviously).

I also now noticed SoundCloud. Is there a list anywhere of what media types xF supports and what their corresponding shortcodes are meant to be now?
 
Back
Top Bottom