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

XF 1.4 Soundcloud embedded player did not convert

tribedude

Active member
#1
We have done a test import of our vb 3.8x board so we can see how Xenforo works before actually switching over. I notice that the embedded soundcloud player we use in vb did not translate over well. Instead of a player in Xenforo, we got links like this:

[SOUNDCLOUD]https://soundcloud.com/gqhouse/gqhq-mixtape-house-of-insolent-silence[/SOUNDCLOUD]

Is there any way to tweak Xenforo so that these show up as players as well? What do I do here?

Thanks,
 

tribedude

Active member
#5
Our forum is nearly 5 million posts deep and there is probably a lot of youtube code that needs to be converted. Will the addon be able to handle that?
 

EQnoble

Well-known member
#6
The amount of posts really isn't the issue as much as the amount of posts with matches made but yes and even in the worst case scenario you could tweak the addon to run in batches suitable to your system resources/configuration.
 

Brogan

XenForo moderator
Staff member
#7
If all of the existing YouTube tags are identical then you can also do it with two queries:
Code:
UPDATE xf_post SET message = REPLACE(message, '[youtube]', '[media=youtube]');
UPDATE xf_post SET message = REPLACE(message, '[/youtube]', '[/media]');
Ensure you take a backup of the database before doing any manipulation of this sort.
 

Mike

XenForo developer
Staff member
#8
Your soundcloud tag could probably be handled by creating a custom BB code of your own to do it.
 

tribedude

Active member
#10
If all of the existing YouTube tags are identical then you can also do it with two queries:
Code:
UPDATE xf_post SET message = REPLACE(message, '[youtube]', '[media=youtube]');
UPDATE xf_post SET message = REPLACE(message, '[/youtube]', '[/media]');
Ensure you take a backup of the database before doing any manipulation of this sort.
We are making the board move this week. So just so I understand correctly: Because the youtube embedding is built into Xenforo AND is different than what we are using on vbulletin , we run these queries after importing the board in order to convert all our old vb youtube urls to xenforo's youtube urls.

Then we create custom BB codes in Xenforo to match the BB code that we are using in vbulletin for Soundcloud and VIMEO (which are our only other custom embed codes).

Is that correct?
 

Brogan

XenForo moderator
Staff member
#11
That's more or less correct.

XF also has a Vimeo bb code built in so you shouldn't have to create one for that.
You may need to run queries though to change the tags to match, as with the YT tags.