Displaying videos from Youtube in Coppermine. - Page 6 Displaying videos from Youtube in Coppermine. - Page 6
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Displaying videos from Youtube in Coppermine.

Started by Nibbler, October 31, 2006, 03:42:27 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

bitcloud

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?

webslingers

Quote from: sigepjedi on December 15, 2006, 02:38:52 AM
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.

morgue

Quote from: webslingers on March 30, 2007, 11:26:07 PM
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?

morgue

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...

dakwah

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?

MaverickLal101

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...

jujuv

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  ;)

Nibbler

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.

jujuv

I found the problem !!!

Look the picture !

$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  ;)

olti

Quote from: jape on February 03, 2007, 07:00:46 PM
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"...

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg166.imageshack.us%2Fimg166%2F6245%2Fgallery1bd3.gif&hash=af1bc0e6dc1c500696e8db5abf1311682c2c91dd)

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

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg250.imageshack.us%2Fimg250%2F1271%2Fgallery2hi0.gif&hash=3c47308d66abc34ee66c40dc2d9b1ead43556367)

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

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg176.imageshack.us%2Fimg176%2F4689%2Fgallery3df0.gif&hash=439d4f79eeeca4c3502c757cbfcc2da37068de33)

Thank you very much!  ;)

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

olti

Here is my upload.php file


         

The Reverend Doctor

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.


Nibbler

You probably missed the changes to the theme.

The Reverend Doctor

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;

?>

Nibbler

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

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

vinubhai

@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/

Nibbler

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.

vinubhai

@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

vinubhai

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

andyleery

Hi I have a problem with installing this mod.

Quotetheme.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".