Hello;
there is a way to insert Google videos or youtube videos in 4images.
But if you cannot host your videos, and just want to show a link to an external host, maybe this could help:
------ First we have to add a new image field in the database.
So... better backup it before anything!Upload the attached zip, unzip it to your 4images root location, and run the installer by typing:
http://yoursite/your_4images_gallery/video_link_install.php------ Second, we declare it in the file
includes/db_field_definitions. Edit this file, and at the end, before
?>, add this line:
$additional_image_fields['video_url'] = array($lang['video_url'], "text", 0);
------ Now, in
lang/your_language/main.php, add this line at the end, before
?>:
$lang['video_url'] = "External video location (without http://www.)";
$lang['video_link'] = "Click here to see the video";
------ In
templates/your_template/details.html, add this just after {image}:
<br />{if video_url}<a href="http://{video_url}" target="_blank">{lang_video_linkl}</a>{endif
video_url}
------Now it's time to go to the
Admin Control Panel, and add an "image" ( as 4images is basically an image gallery).
In the fields "image" and "thumbnail", you may for example upload this image:
At the bottom of the page, you will notice a new field, called: "
External video location (without http://www.)".
Fill this field with the URL of your video,
BUT WITHOUT THE BEGINNING CHARACTERS http://HTTP://WWW., as 4images functions management can interfer.
Example, if your video is here:
http://www.youtube.com/watch?v=-ShGhmqw4vMyou will fill the field with just:
youtube.com/watch?v=-ShGhmqw4vM
Once it'done, go to your frontend and try the changes.