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 2 3 4 5 [6] 7 8 9 10 ... 22   Go Down

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

0 Members and 1 Guest are viewing this topic.

bitcloud

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: Displaying videos from Youtube in Coppermine.
« Reply #100 on: March 22, 2007, 04:32:39 pm »

Nice work flux! thats a very slick addition to this mod...
Have you found any way around the duplicate upload bug?

Also, has anyone had any luck adding a watermark to youtube videos?
Logged

webslingers

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #101 on: March 30, 2007, 11:26:07 pm »

0 uploads were successful.   

Error Report
The following uploads encountered errors: 

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

4Missing required parameter

If you get this error, there is probably a space after your Developer ID.
Logged

morgue

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Displaying videos from Youtube in Coppermine.
« Reply #102 on: April 13, 2007, 08:44:44 am »

If you get this error, there is probably a space after your Developer ID.

Hi, there's no space and I'm getting this error, any suggestion?
Logged

morgue

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Displaying videos from Youtube in Coppermine.
« Reply #103 on: April 13, 2007, 08:48:41 am »

I'm not getting that "4Missing required parameter" though, all I get is
YT errors:
URI   Error message
1. http://www.youtube.com/watch?v=7PZK8koGcmM

I get nothing, I tried uploading using random videos, using watch?v=myDevID...

I am getting the youtube upload videos but I don't know... Am I supposed to set something up on user groups? If so, I am not getting any option there...
Logged

dakwah

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Displaying videos from Youtube in Coppermine.
« Reply #104 on: April 19, 2007, 10:28:13 pm »

I got a problem, when i tried to upload a file, i got the upload.php file pop-up asking me to open or save. When i open it, it is just a blank file.

why and how to overcome this?
Logged

MaverickLal101

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Displaying videos from Youtube in Coppermine.
« Reply #105 on: April 22, 2007, 01:28:10 am »

oh boy i tried this and got a host of problems...

i think i got the stuff in themes.php fine, i understood what u meant about copying and pasting tat function over but my upload.php...

lol... take a look...
Logged

jujuv

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 66
    • Wallmanga.com
Re: Displaying videos from Youtube in Coppermine.
« Reply #106 on: May 15, 2007, 10:23:05 pm »

Excuse me for my bad english ... I'm french

I have a problem with the website's skin when I look a video !
My website has a left column and a total width of 950px and when I look a video the width is so large !!!

I think that the MOD isn't make for a skin with a left column !?!
my website: http://www.wallmanga.com
a page with video: http://www.wallmanga.com/galerie/displayimage.php?pos=-20305
and
a page with photo: http://www.wallmanga.com/galerie/displayimage.php?pos=-19156
for difference of width

Thanks

PS: In the French Forum, They have no time for me for the moment  ;)
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #107 on: May 16, 2007, 03:11:33 am »

Youtube's videos are 425x350. If you want them a different size then go ahead and adjust the code, but they will probably become distorted if you do.
Logged

jujuv

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 66
    • Wallmanga.com
Re: Displaying videos from Youtube in Coppermine.
« Reply #108 on: May 16, 2007, 11:01:33 am »

I found the problem !!!

Look the picture !

Code: [Select]
$pic_html = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/'. $vid . '"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/'. $vid . '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object><br /><table align=\"center\">';
I removed <table align=\"center\"> and it's ok !

Thanks for help  ;)
Logged

olti

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • Galeria Shqiptare - Albanian Gallery
Re: Displaying videos from Youtube in Coppermine.
« Reply #109 on: May 28, 2007, 11:28:51 am »

Problems "browse upload"...
YouTube upload working very fine, but "normal browse uploads" not working...

i select "Upload" and browse my computer picture, and click "Continue"...

(http://img166.imageshack.us/img166/6245/gallery1bd3.gif)

Now come problems.... look image...

(http://img250.imageshack.us/img250/1271/gallery2hi0.gif)

And now i click "Continue" so image no uploads my gallerys...
Upload return back first towards...

(http://img176.imageshack.us/img176/4689/gallery3df0.gif)

Thank you very much!  ;)

I have exactly the same problem here! Plz help me to fix this problem.
Logged

olti

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • Galeria Shqiptare - Albanian Gallery
Re: Displaying videos from Youtube in Coppermine.
« Reply #110 on: May 28, 2007, 11:35:05 am »

Here is my upload.php file


         
Logged

The Reverend Doctor

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • The NTS Show
Re: Displaying videos from Youtube in Coppermine.
« Reply #111 on: June 15, 2007, 04:16:15 pm »

On the "uploads page" the "YouTube Uploads" space appears and works fine.  But after it uploads you only see the JPEG of the video, it won't play.

Here is my site http://ntsshow.com/coppermine_dir/displayimage.php?album=20&pos=0

The pic of the little girl is supposed to be a playable YouTube video

Any help is appreciated.

Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #112 on: June 15, 2007, 04:36:56 pm »

You probably missed the changes to the theme.
Logged

The Reverend Doctor

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • The NTS Show
Re: Displaying videos from Youtube in Coppermine.
« Reply #113 on: June 15, 2007, 07:15:04 pm »

Okay, I had overlooked the theme.php in the "rainy day" directory.  But here is the problem now.  The theme.php in the "sample" directory has this line of code in my rainy day theme.php? 

if (isset($image_size['reduced'])) {

But my theme.php in my "rainy day" directory does not.  My question is where should I insert the line of code

if (preg_match('/^youtube_(.*)\.jpg$/', $CURRENT_PIC_DATA['filename'], $ytmatches)){
       
          $vid = $ytmatches[1];
            $pic_html = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/'. $vid . '"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/'. $vid . '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object><br />';
       
       } elseif (isset($image_size['reduced'])) {


Here is the entire code for my "rainy day" theme.php

Thanks


<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.8
  $Source$
  $Revision: 3116 $
  $Author: gaugau $
  $Date: 2006-06-08 00:11:54 +0200 (Do, 08 Jun 2006) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has had all redundant CORE items removed                           //
// ------------------------------------------------------------------------- //

define('THEME_HAS_RATING_GRAPHICS', 1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);
define('THEME_HAS_NO_SUB_MENU_BUTTONS', 1);

// HTML template for sys_menu
$template_sys_menu = <<<EOT
  <div class="topmenu">
          <table border="0" cellpadding="0" cellspacing="0">
                  <tr>
  {BUTTONS}
                  </tr>
          </table>
  </div>
EOT;

// HTML template for template sys_menu buttons
$template_sys_menu_button = <<<EOT
<!-- BEGIN {BLOCK_ID} -->
  <td><img src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
  <td><img src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" alt="" /></td>
  <td style="background-image:url(themes/rainy_day/images/button1_r1_c2.gif)">
          <a href="{HREF_TGT}" title="{HREF_TITLE}">{HREF_LNK}</a>
  </td>
  <td><img src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" alt="" /></td>
<!-- END {BLOCK_ID} -->
EOT;

// HTML template for sub menu

$template_sub_menu = <<<EOT

                       <div class="topmenu"><table border="0" cellpadding="0" cellspacing="0">
                                <tr>
<!-- BEGIN custom_link -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
                                        </td>
                              <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                              <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                          <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="http://www.ntsshow.com" title="{FAV_LNK}">{FAV_LNK}</a>
                                        </td>
                              <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                              <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                              <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{SEARCH_TGT}" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
                                        </td>
                                       
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END custom_link -->
<!-- BEGIN album_list -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END album_list -->
                                                            
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                       <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                       <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{LASTCOM_TGT}" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{TOPN_TGT}" title="{TOPN_LNK}">{TOPN_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{TOPRATED_TGT}" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                     
                                       
                                       
                                </tr>
                        </table></div>

EOT;

?>
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #114 on: June 15, 2007, 07:22:09 pm »

Please read the instructions, they tell you what to do.

Quote
if you can't find this code, copy theme_html_picture() over from sample theme and then apply the change
Logged

vinubhai

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Displaying videos from Youtube in Coppermine.
« Reply #115 on: June 15, 2007, 08:24:27 pm »

@nibbler...thanx 4 ur oding and help....

i followed the steps u provided in post1 ...and i got some error whn i pasted the youtube link...ie upload unsuccessful..
and then i used ur upload file and got the error   

Quote
faultCode0faultStringFatal error:Call to undefined function curl_init() in /home/vol1/phpnet.us/v/vinubhai/www/gallery/upload.php on line 73

thatz curl error...and suggestion...


http://swargam.coz.in/gallery/
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #116 on: June 15, 2007, 08:27:58 pm »

If you have url_fopen enabled then use the original mod.
If you have curl support then use the posted file.
If you have neither you can't use the mod.
Logged

vinubhai

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Displaying videos from Youtube in Coppermine.
« Reply #117 on: June 16, 2007, 08:06:02 am »

@nibbler...finally youtube is workin fine..thanx....i had 2 move 2 a new host...

but nw i m able 2 play a video whch i uploaded...and not others...

Quote
// Youtube
           if (USER_ID) {
               $form_array[] = 'Youtube uploads';
                $form_array[] = array('', 'YT_array[]', 0, 256, 3);
                $form_array[] = 'Note: YouTube videos must be added in the form http://www.youtube.com/watch?v=xxxxxxxxxxx';
   }

wat shud be the xxxx value here....

thanx in advance
Logged

vinubhai

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Displaying videos from Youtube in Coppermine.
« Reply #118 on: June 16, 2007, 08:11:32 am »

sorry ..the other video was corrupt 1.... ;)
Logged

andyleery

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 78
Re: Displaying videos from Youtube in Coppermine.
« Reply #119 on: June 16, 2007, 01:19:25 pm »

Hi I have a problem with installing this mod.

Quote
theme.php (if you can't find this code, copy theme_html_picture() over from sample theme and then apply the change)

What dou you mean with that? I have got the theme "ipodlounge".
Logged
Pages: 1 2 3 4 5 [6] 7 8 9 10 ... 22   Go Up
 

Page created in 0.031 seconds with 20 queries.