Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

Problem Displaying Thumbnail for Videos When Using Full URL as Source

04-21-2010, 06:38 AM
# 1 (permalink)
rhertogh
Hi,

I had a problem with displaying the thumbnail picture for video's when using an full URL as source. It was always prefixing the URL of my website+image path.
I made the following adjustment to the plugin file (bot_mb.php):


Line 149 and 150 were:

PHP Code:

$t=explode("vthumb=",$parts[find_part($parts,"vthumb=")]);
$vthumb="<img class=\"bot_thumbv\" src=\"".$mosConfig_live_site."".$image_folder."/".$thumb."\" width=\"".$img_width."\" height=\"".$img_height."\" border=\"0\" alt=\"".$title."\"/>\n";      $vclass_name="class=\"popboxv\""
I changed it into:

PHP Code:

$t=explode("vthumb=",$parts[find_part($parts,"vthumb=")]);
$vthumb_src=(substr($thumb,0,4)=="http")?$thumb:$mosConfig_live_site."".$image_folder."/".$thumb;
$vthumb="<img class=\"bot_thumbv\" src=\"".$vthumb_src."\" width=\"".$img_width."\" height=\"".$img_height."\" border=\"0\" alt=\"".$title."\"/>\n";      $vclass_name="class=\"popboxv\""
Maybe it helps others.

With kind regards,

Rutger
04-21-2010, 07:48 AM
# 2 (permalink)
jaycburton
Hi - Thanks for the feedback, and posting this. Cheers!
Thread Tools
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

Members Login

Username
Password