Recent Topics

1 Jun 26, 2009 18:29    

My b2evolution Version: Not Entered

Having a problem with the YouTube video plugin with 3.2.x

The video id is 3-GzZx3ucdM and it plays fine at http://www.youtube.com/watch?v=3-GzZx3ucdM

But when I put that ID into the video plugin I get "The video ID is invalid."

Perhaps it's related to the - as the second character in the ID string.

Cutting and pasting YouTube's embed code only displayed the code itself, not the video.

2 Jun 26, 2009 18:57

Perhaps it's related to the - as the second character in the ID string.

You are right. I fixed this bug in CVS. To fix it on your local installation, open the file plugins/videoplug_plugin/_videoplug.plugin.php and change line 135 to

if( video_ID.match( /^[a-z0-9_-]+$/i ) )

3 Jun 26, 2009 20:30

Worked perfectly. Thank you.

5 Feb 24, 2015 23:14

I have exactly the same problem in version 5.2.2.
Replacing the code in the PHP script makes no difference, and when I use the video icon in the 'Simple' tab, I get the message I am using an invalid tag, which is IFrame.

Any further advice, please?
Thanks.

6 Feb 25, 2015 07:21

Hi @vlaanderen,

I guess you're trying to paste the entire URL into the dialog of the video plugin. In that case, as explained on the first section of this page: http://b2evolution.net/man/how-to-add-videos-1, you need to paste only the video ID (see image above).

The second method explained in the same page is more adequate when you have the direct URL to a video file instead of having it hosted in youtube, vimeo, etc. It also requires to enable iframes support and set security check to basic in the blogging permissions of your user group (http://b2evolution.net/man/blogging-permissions).

So, as you can see, it's way easier and safer to use method 1.

Regards!

7 Feb 25, 2015 11:05

Thank you so much, mgsolipa.
That did do the trick, but it was quite easy to miss (I did :) ) that only the ID had to be entered.
Anyway, problem solved, thanks again.


Form is loading...