1 bogdan_benn2000 Sep 11, 2015 16:45
3 bogdan_benn2000 Sep 12, 2015 19:45
Hi,
Thanks for your answer.
I tried replacing the line and now the youtube video doesn't work anymore.
[video:youtube:XXXXXXXXX]I see on the page the code that used to call the youtube plugin:
Do you have any other suggestion?
Regards,
Bogdan
4 bogdan_benn2000 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
@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