Youtube Embed Code missing Video-Code

Looks like this never worked, not even in 7.0.9. The generated embed code for a youtube video is missing the video id. So it can never play when embedded somewhere. I can reproduce on demo.boonex.com

Here is the fix

In /modules/boonex/videos/classes/BxVideosTemplate.php

find

$sEmbedCode = str_replace("#video#", $sVideo, YOUTUBE_VIDEO_EMBED);

replace with

$sEmbedCode = str_replace("#video#", $aExtra["video"], YOUTUBE_VIDEO_EMBED);

Beside the fix i have one question. In the same function there is now some alert code in the beginning, whats the reason for that? It was added after 7.0.9

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 18 May 2013

Ooops i wanted to post this in the bugs forum.... Maybe a moderator can move it?

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 19 May 2013

This thread can be closed, i created a new one in the Bugs Forum.

http://www.boonex.com/forums/topic/Youtube-Embed-Code-missing-Video-Code-2013-05-20.htm

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 20 May 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.