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

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

Discussion in 'XenForo Questions and Support' started by SeaDog, Jul 28, 2015.

  1. SeaDog

    SeaDog Active Member


    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:


    What can we do?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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:
    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.
  3. SeaDog

    SeaDog Active Member

    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?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    These are the default definitions:


    You can create any others as required though.

Share This Page