Go Back   Forum Runner Support > Forum Runner > Bug Reports > Closed Bugs
Reply
 
Thread Tools Display Modes
  (#1) Old
Fofer
Junior Member
 
Default [media] tags and watching YouTube/Vimeo videos - 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 [media] tag.

Unfortunately, ForumRunner doesn't play nice with this:



As you can see, it adds the end tag [/media] 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 discussing the issue, with plenty of examples.

Thanks!

Last edited by Fofer; 07-02-2011 at 12:20 PM.
   
Reply With Quote
  (#2) Old
eddyj
Member
 
Default 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.
   
Reply With Quote
  (#3) Old
ClemsonJeeper
Forum Sprinter
 
ClemsonJeeper's Avatar
 
Default 07-05-2011, 01:34 PM

Try going into forumrunner/support/utils.php and search for

Code:
   $bbcode->addCode('video', 'callback_replace', 'handle_video', array(), 'inline',
        array('listitem', 'block', 'inline', 'link'), array(''));
then add another line directly below it

Code:
   $bbcode->addCode('media', 'callback_replace', 'handle_video', array(), 'inline',
        array('listitem', 'block', 'inline', 'link'), array(''));
See if that fixes it/helps.


Rob J
Forum Runner Developer

http://www.forumrunner.net
   
Reply With Quote
  (#4) Old
Fofer
Junior Member
 
Default 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.
   
Reply With Quote
  (#5) Old
ClemsonJeeper
Forum Sprinter
 
ClemsonJeeper's Avatar
 
Default 07-07-2011, 07:47 AM

Yup!


Rob J
Forum Runner Developer

http://www.forumrunner.net
   
Reply With Quote
  (#6) Old
eddyj
Member
 
Default 07-07-2011, 09:40 AM

Thanks!
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
vBulletin Skin developed by: vBStyles.com