PDA

View Full Version : [media] tags and watching YouTube/Vimeo videos


Fofer
07-02-2011, 12:07 PM
On a few forums I frequent, there are media embedding plugins so that posting videos from popular sites like YouTube (or Vimeo) is easier. It makes it easier for other members to watch the videos inline, or in a pop-up "theater" view, without having to leave the thread page they are on.

Most of these implementations use the tag.

Unfortunately, ForumRunner doesn't play nice with this:

http://www.fofer.com/sharedimages//mail_661%C3%97992_pixels-20110702-100439.jpg

As you can see, it adds the end tag to the url, leading to a malformed url error in the resulting YouTube page. So it makes it impossible for us to even click the URL to go to the appropriate YouTube page and watch the video.

Can this be fixed?

I'd love to be able to watch the video inline (YouTube links on iOS devices get switched to HTML5/MP4) but if not, simply making the URLs work, without the extra [/media] portion which makes it "malformed" would be acceptable, too. I think you'd just need to make ForumRunner hand the [media] tag the same way it handles the [yt] tag.

Here's a thread (http://www.tivocommunity.com/tivo-vb/showthread.php?p=8594269#post8594269) discussing the issue, with plenty of examples.

Thanks!

eddyj
07-02-2011, 12:14 PM
I've had this problem in the past, but now that tag is being used by the forum I visit most often, so it would be great it the media tag was handled correctly.

ClemsonJeeper
07-05-2011, 01:34 PM
Try going into forumrunner/support/utils.php and search for


$bbcode->addCode('video', 'callback_replace', 'handle_video', array(), 'inline',
array('listitem', 'block', 'inline', 'link'), array(''));


then add another line directly below it


$bbcode->addCode('media', 'callback_replace', 'handle_video', array(), 'inline',
array('listitem', 'block', 'inline', 'link'), array(''));


See if that fixes it/helps.

Fofer
07-05-2011, 04:36 PM
Seems to work fine on one test forum... thank you. Can you add this to the next version of Forum Runner so it works for all forums, without the need for a manual tweak? Much appreciated.

ClemsonJeeper
07-07-2011, 07:47 AM
Yup!

eddyj
07-07-2011, 09:40 AM
Thanks!