Author Topic: Creating links to videos hosted on remote locations  (Read 8250 times)

0 Members and 1 Guest are viewing this topic.

Offline Naif

  • Pre-Newbie
  • Posts: 3
    • View Profile
Creating links to videos hosted on remote locations
« on: January 16, 2007, 11:35:41 AM »
Title says it all. I dont know much about this gallery software as I have never used it before. I am searching for a script which I can use to run a photo and video gallery. I guess its possible to place videos using 4Images, right? Anyways, this feature is offered by most scripts but my requirement is somewhat different. I cant afford to place the videos on my host so instead, I want to place links to videos uploaded on other file hosting sites like megaupload, justupit, youtube etc.

I dont want to stream those videos. Its like, I just want to place links, thats it. So that the user can click on it, and be directed to the site which has the video. Now I want to know if this is possible using 4Images?

Offline Naif

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: Creating links to videos hosted on remote locations
« Reply #1 on: January 17, 2007, 02:34:31 AM »
Anyone? I hope my question was clear. If it wasnt, please say so, so that I can elaborate myself.

Thanks. Really looking forward for a reply soon.

Regards,
-- Naif

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Creating links to videos hosted on remote locations
« Reply #2 on: January 17, 2007, 06:57:49 AM »
Look at this: http://www.4homepages.de/forum/index.php?topic=5763.0

One of the things said is "Placing files outside the web root will not work."
Not a 100% sure if this pertains to what you are asking since it is about downloading, but I believe it is all the same.  :wink:

Maybe that thread will give you an idea on something else  :?:

Offline Naif

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: Creating links to videos hosted on remote locations
« Reply #3 on: January 17, 2007, 09:50:52 AM »
Hi CeJay. Thanks for your reply but thats not what I want to achieve. The vid files are not at all going to be hosted on my host. Instead of placing videos in albums, I want to place links to videos which are hosted somewhere else... So whenever a person clicks on that link, he'll be redirected to the site which hosts the video... To make myself 100% clear, I'll show u how my video page looks right now:

http://www.dhonixpress.com/index.php?videos

As you can see, I have just placed links to video hosted on other sites like justupit, megaupload etc... I want to achieve the same thing using 4images. I guess its not possible eh?

Look at this: http://www.4homepages.de/forum/index.php?topic=5763.0

One of the things said is "Placing files outside the web root will not work."
Not a 100% sure if this pertains to what you are asking since it is about downloading, but I believe it is all the same.  :wink:

Maybe that thread will give you an idea on something else  :?:

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Creating links to videos hosted on remote locations
« Reply #4 on: January 17, 2007, 08:38:26 PM »
Quote
As you can see, I have just placed links to video hosted on other sites like justupit, megaupload etc... I want to achieve the same thing using 4images. I guess its not possible eh?

No this is not possible from everything I have seen.
Maybe someone out there has created mod for this, but I have yet to see it.

manurom

  • Guest
Re: Creating links to videos hosted on remote locations
« Reply #5 on: January 20, 2007, 01:46:35 AM »
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:
Code: [Select]
$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 ?>:
Code: [Select]
$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}:
Code: [Select]
<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=-ShGhmqw4vM
you will fill the field with just:
Code: [Select]
youtube.com/watch?v=-ShGhmqw4vM
Once it'done, go to your frontend and try the changes.

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Creating links to videos hosted on remote locations
« Reply #6 on: January 20, 2007, 02:06:29 AM »
@ manurom

Thanks!  This can be really useful  :!:

manurom

  • Guest
Re: Creating links to videos hosted on remote locations
« Reply #7 on: January 20, 2007, 02:12:31 AM »
Oops!
I forgot something.
If your prefer the link to be shown with the thumnail, in home, categories, and not in details, just add the previous code to templates/your_template/thumbnail_bit.html, instead of details.html:
Code: [Select]
<br />{if video_url}<a href="http://{video_url}" target="_blank">{lang_video_linkl}</a>{endif
video_url}

Offline hotvins

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Creating links to videos hosted on remote locations
« Reply #8 on: August 23, 2009, 06:10:31 AM »
hey I did this and now my site shows only blank page :mad:
« Last Edit: August 23, 2009, 10:04:26 AM by hotvins »

Offline hotvins

  • Newbie
  • *
  • Posts: 34
    • View Profile
Can someone post right link for this topic of 4images forum
« Reply #9 on: August 23, 2009, 08:08:30 AM »
hello

the link is curropt

http://www.4homepages.de/forum/index.php?topic=16204.0

can someone post the video_install php file rightly ?

please help