MyBB Community Forums

Full Version: Youtube links mangled up...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is post conversion, so here's what happened - SMF has youtube link that is like this:
[url=http://www.youtube.com/watch?v=RG4gbTXKArA]Alison Krauss - Gentle River[/url]

Post conversion, it looks like a link. Can it be fixed so it can go to something like
[video=youtube]http://www.youtube.com/watch?v=RG4gbTXKArA[/video]?

Is there a way for me to fix it this way?

Example:

Old: http://www.oldelmtree.com/smf/index.php?...#msg133473

New: http://www.oldelmtree.com/mybb/showthrea...179&page=2

You could create a simple plugin to find the old links and replace them with MyBB's way to handle links, but the problem is how would the plugin know if the user was actually linking to a video rather than embedding it? Or what if it was pointing at another website other than YouTube? All links would be replaced, no matter what.

I'm pretty sure you're just gonna have to edit each post manually. That's the price to pay for moving to better software.
(2011-07-09, 08:02 PM)faviouz Wrote: [ -> ]You could create a simple plugin to find the old links and replace them with MyBB's way to handle links, but the problem is how would the plugin know if the user was actually linking to a video rather than embedding it? Or what if it was pointing at another website other than YouTube? All links would be replaced, no matter what.

I'm pretty sure you're just gonna have to edit each post manually. That's the price to pay for moving to better software.

I wouldn't know how to make that plugin.. do you know who to ask?

I would imagine that it could be restricted to finding a string of "youtube.com" in the link search...

Yes, restricting it to only search for youtube.com can be done, but what if users were actually linking to a video rather than embedding them? Do you really have that many posts with videos? Either way, you can place a request in the Requests forum. I would imagine the plugin would be a little something like this:

http://community.mybb.com/thread-65098-p...#pid467840
(2011-07-09, 08:18 PM)faviouz Wrote: [ -> ]Yes, restricting it to only search for youtube.com can be done, but what if users were actually linking to a video rather than embedding them? Do you really have that many posts with videos? Either way, you can place a request in the Requests forum. I would imagine the plugin would be a little something like this:

http://community.mybb.com/thread-65098-p...#pid467840

Well, there's a running thread called "Sad songs" that the originator of the thread wants to keep going.. and wants them embedded back like it was in SMF...

(2011-07-09, 07:50 PM)Hawkeye-X Wrote: [ -> ]This is post conversion, so here's what happened - SMF has youtube link that is like this:
[url=http://www.youtube.com/watch?v=RG4gbTXKArA]Alison Krauss - Gentle River[/url]

Post conversion, it looks like a link. Can it be fixed so it can go to something like
[video=youtube]http://www.youtube.com/watch?v=RG4gbTXKArA[/video]?

Is there a way for me to fix it this way?

Example:

Old: http://www.oldelmtree.com/smf/index.php?...#msg133473

New: http://www.oldelmtree.com/mybb/showthrea...179&page=2

you might be able to slightly alter this mycode some to get it to work for your situation:

http://community.mybb.com/thread-99817.html
This is like a month old, why did you have to bump it? Besides, he has already sorted this out:

http://community.mybb.com/thread-100810.html