Recent Topics

Youtube plugin upgrade

Started by on Sep 11, 2015 – Contents updated: Sep 12, 2015

Sep 11, 2015 16:45    

Hi,

I have a b2evolution installed (version 4.17) which I cannot upgrade it because it has a lot of customisations.
Is there a way to upgrade just the youtube plugin? The existing one has some problems, for example I cannot go to full screen mode even if I click the "full screen" button.

Thanks,
Bogdan

Sep 11, 2015 19:49

@bogdan_benn2000 I think the plugin should be updated in general because the YouTube <object> embeds were deprecated on January 27, 2015.

Besides of that, you can restore the fullscreen option on your site by going to the file `plugins/videoplug_plugin/_videoplug.plugin.php` and replacing this line (~58):

$content = preg_replace( '#\[video:youtube:(.+?)]#', '<div class="videoblock"><object data="http://www.youtube.com/v/\\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\\1"></param><param name="wmode" value="transparent"></param></object></div>', $content );

with this other:

$content = preg_replace( '#\[video:youtube:(.+?)]#', '<div class="videoblock"><iframe id="ytplayer" type="text/html" width="425" height="350" src="http://www.youtube.com/embed/\\1" allowfullscreen="allowfullscreen" frameborder="0"/>', $content );

In addition to that, maybe you should consider to upgrade your site. It's worth to get the tons of new stuff included in the latest version :D

Sep 12, 2015 19:45

Hi,

Thanks for your answer.
I tried replacing the line and now the youtube video doesn't work anymore.
I see on the page the code that used to call the youtube plugin: [video:youtube:XXXXXXXXX]

Do you have any other suggestion?

Regards,
Bogdan

Sep 12, 2015 20:03

Hi again,

Sorry, my mistake. After I modified the plugins/videoplug_plugin/_videoplug.plugin.php file I forgot to uninstall and re-install the Video plugin.
After doing that it worked :) Thanks a lot!

Regarding the upgrade, you are right, I should do it. It's just that my installation has a lot of customization done during time and I don't know if they will work after upgrade. The process implies a lot of work during which the blogs will be offline. I just postponed this for some time as I'm not an web expert and I'm afraid that things might go bad after upgrade. Nevertheless, the plan is to upgrade it in the future :)

You can make an idea if you enter the bellow links:
http://dolce-far-niente.ro/
http://blog.sql-assistance.com/

Regards,
Bogdan


Form is loading...

powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.