alain01 wrote:// Determine if video source is XoopsTube for thumbnail
case 200:
$thumb
=
'<img src="' . XOOPS_URL . '/' . $screenshot . '/' . $picurl .'" title="'. $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;" />';
break;
}
return $thumb;
Now just write the fine name of the preview picture in the field "Link of the picture :" (for example "myvideo_01.png")
Thanks Alain01, this worked and the screenshot now shows but it isn't being resized to the thumbnail dimensions. You missed the "width" and "height" tags.
It works like this:
// Determine if video source is XoopsTube for thumbnail
case 200:
$thumb
= '<img src="' . XOOPS_URL . '/' . $screenshot . '/' . $picurl . '" width="' . $width . '" height="' . $height . '" title="'. $title . '" alt="' . $title
. '" style="padding: 0px; border-style: none;" />';
break;
}
return $thumb;
}
Cheers,
Marty.