Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 ... 5 6 7 8 [9] 10 11 12 13 ... 22   Go Down

Author Topic: Displaying videos from Youtube in Coppermine.  (Read 432375 times)

0 Members and 1 Guest are viewing this topic.

holyworld

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
Re: Displaying videos from Youtube in Coppermine.
« Reply #160 on: November 12, 2007, 12:14:28 am »

Great MOD, but a quick question: Is it not possible to create a Plugin for this instead of a MOD.. as with each upgrade the files needs to be updated.

Thanks!
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #161 on: November 12, 2007, 12:50:27 am »

No. It's only one core file anyway.
Logged

skmdd

  • Tester
  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 23
    • Celebrities Wallpapers & Photo Gallery
Re: Displaying videos from Youtube in Coppermine.
« Reply #162 on: November 12, 2007, 06:25:19 am »

I am getting the following error when I upload a youtube video after applying the mods.

YT errors:
URI   Error message
1. http://youtube.com/watch?v=EIlzEloTQxM

What can be the possible error.
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #163 on: November 12, 2007, 09:16:59 am »

Do URI uploads work?
Logged

skmdd

  • Tester
  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 23
    • Celebrities Wallpapers & Photo Gallery
Re: Displaying videos from Youtube in Coppermine.
« Reply #164 on: November 12, 2007, 07:56:00 pm »

The URI is not working either.
What could be the possible problem?
Logged

skmdd

  • Tester
  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 23
    • Celebrities Wallpapers & Photo Gallery
Re: Displaying videos from Youtube in Coppermine.
« Reply #165 on: November 12, 2007, 08:07:01 pm »

Yup, I have fixed the sitemap.. You were right, I had put the code at the end of my theme.php then I move copy theme_html_picture() to the top after
Code: [Select]
define('THEME_IS_XHTML10_TRANSITIONAL',1); and works fine now.

Thanks :)


I also broke my sitemap after this mod. Could you elaborate how you fixed yours.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Displaying videos from Youtube in Coppermine.
« Reply #166 on: November 13, 2007, 07:37:28 am »

If URI uploads don't work then you can't use this mod - your webhost probably disabled url_fopen.
Logged

holyworld

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
Re: Displaying videos from Youtube in Coppermine.
« Reply #167 on: November 16, 2007, 09:29:20 pm »

Just FYI, according to my webshoster, url_fopen can be enabled by setting it in a PHP.ini file which has to be copied to the root directory.

cheers
Logged

holyworld

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
Re: Displaying videos from Youtube in Coppermine.
« Reply #168 on: November 16, 2007, 09:50:37 pm »

Just tried it out and it worked.

php.ini

content:

allow_url_fopen = On

put it in Coppermine root directory..

thats it!
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #169 on: November 16, 2007, 09:53:36 pm »

For anyone who can't change their php config like that, there is code posted a few pages back that uses cURL instead which may work.
Logged

skmdd

  • Tester
  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 23
    • Celebrities Wallpapers & Photo Gallery
Re: Displaying videos from Youtube in Coppermine.
« Reply #170 on: November 20, 2007, 06:25:20 pm »

Thanks all of you. I have successfully made the changes to display the youtube videos:
http://decoratingdesktop.com/index.php?cat=17
Logged

jesusarmy

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 34
Re: Displaying videos from Youtube in Coppermine.
« Reply #171 on: November 23, 2007, 01:22:52 pm »

Also, has anyone had any luck adding a watermark to youtube videos?
I have made a mod to Stramms's modpack to add a watermark to the thumbnails of YouTube videos added through this mod.

In Stramm's modded version of picmgmt.inc, find:
Code: [Select]
function resize_image($src_file, $dest_file, $new_size, $method, $thumb_use, $watermark="false", $sharpen=0, $media_type="false", $quality="false")
{
after it insert:
Code: [Select]
// if filename starts "youtube_", or "orig_youtube_" and ends ".jpg" then assume mediatype is video
if (preg_match('/\/youtube_(.*)\.jpg$/', $src_file) || preg_match('/\/orig_youtube_(.*)\.jpg$/', $src_file)){
$media_type="movie";
}
This works fine for me.
Logged

jesusarmy

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 34
Re: Displaying videos from Youtube in Coppermine.
« Reply #172 on: November 23, 2007, 01:37:01 pm »

Just to add to my previous post, that you may well find that you have to update your browser cache before you see the new watermarked thumbnails if you recreate them through Admin Tools | Update thumbs.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Displaying videos from Youtube in Coppermine.
« Reply #173 on: November 23, 2007, 07:23:11 pm »

Nice to see you are putting the effort in but what is the point of overlaying a watermark over embedded youtube video?
Logged
It is a mistake to think you can solve any major problems just with potatoes.

jesusarmy

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 34
Re: Displaying videos from Youtube in Coppermine.
« Reply #174 on: November 23, 2007, 07:58:44 pm »

The thumbnail now shows "video" as an overlay, so that users know that the link is to a video. This is particularly helpful when the YouTube link appears in another thematic album if the keyword of the album is included in the video's keywords.

So, for example, I have an album containing pictures of our Coventry Jesus Centre. I also have an album of YouTube videos. One of those features the Coventry Jesus Centre, and its keywords cause it to also appear among the Coventry Jesus Centre pictures. See http://www.jesus.org.uk/gallery/thumbnails.php?album=1. With the watermark, it is clear what to expect.
Logged

santoro

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Displaying videos from Youtube in Coppermine.
« Reply #175 on: November 25, 2007, 01:09:45 am »

I do every steps described here, but i have this error message message:

Error Report
The following uploads encountered errors:
YT errors:
URI Error message
1. http://www.youtube.com/watch?v=wqZiYKIjH7I

What does it mean and what can I do with it? Thanks!
Logged

santoro

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Displaying videos from Youtube in Coppermine.
« Reply #177 on: November 25, 2007, 02:07:01 am »

Thanks. I used your "modded version of upload.php that allows you to use the mod on servers without URL fopen support" from your message posted on January 03, 2007.
It works, but I want to ask if it's ok to use this version upload.php for the latest version of Coppermine?
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #178 on: November 25, 2007, 03:34:08 pm »

Generally speaking no, but in this case it's OK since the file has not changed since then.
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Displaying videos from Youtube in Coppermine.
« Reply #179 on: December 07, 2007, 12:36:08 am »

I don't see fopen in my PHP.INI so should I assume I do not have access or is it somewhere else?

Just asking.

Thanks!
Logged
Pages: 1 ... 5 6 7 8 [9] 10 11 12 13 ... 22   Go Up
 

Page created in 0.025 seconds with 20 queries.