[Embed Video] A simple module to embed youtube, google, or remote .flv videos

gutpiles

Joined: 2007-10-08
Posts: 2
Posted: Mon, 2007-10-08 01:49
gdfwilliams wrote:
apippin wrote:
rw712 wrote:
I installed, got my developer id, but am having a problem uploading/embedding. It gives the follow:

Error Detail -
Error (ERROR_STORAGE_FAILURE) : Unable to copy thumbnail from url: -

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 515 (GalleryCoreApi::error)
* in modules/core/ItemAdd.inc at line 84 (ItemAddEmbedVideo::handleRequest)
* in main.php at line 231 (ItemAddController::handleRequest)
* in main.php at line 94
* in main.php at line 83

System Information
Gallery version 2.2.2
PHP version 5.1.6 apache2handler
Webserver Apache/2.2.4 (Fedora)
Database mysqli 5.0.27
Toolkits SquareThumb, ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux chocolate.epicminds.com 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:45:28 EST 2006 i686
Browser Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20061201 Firefox/2.0.0.4 (Ubuntu-feisty)

I am trying to upload the following link:

http://www.youtube.com/watch?v=V4yhtS3Ers0

You have an interesting failure here. I know something isn't quite right by the "Unable to copy thumbnail from url: -" output. It is supposed to print out the URL to the thumbnail, and the HTTP Response it received by trying to copy it. I don't see either of those things in the debug output. This leads me to believe that the module was unable to extract the thumbnail URL from youtube. I tried using the module to add the link to the youtube video you provided, and it worked just fine. You'll have to post the .html page that is produced with the debugOutput parameter set to true. Right click on the webpage that is shown in debug mode, and save it as a local .html file on your system. Then, add it as a file attachment to your next post. If I could take a look at that, it might shine a better light on this. Does it do this for any youtube video you try to add?

I was getting the error above, too, until I realized that I hadn't entered a YouTube developer ID. Get a developer ID by editing your Developer Profile in your YouTube account. Then, define your developer ID by including it as a variable in the Embed Video Settings (under Import) in Admin.

Great mod. Thanks for your hard work.

Has anyone figured out how to increase the default YouTube thumbnail size?? According to Google (as of 6/11), larger thumbnails are not yet available:
http://groups.google.com/group/youtube-api-basics/browse_thread/thread/591142f68d8e440a/7de61b1d40308e26?lnk=gst&q=thumbnail&rnum=9#7de61b1d40308e26

I'm getting the same error described by rw712, but I've entered the developer id. What else might be causing this problem?

 
gutpiles

Joined: 2007-10-08
Posts: 2
Posted: Mon, 2007-10-08 02:44

Tried to add item from YouTube and got the Error (ERROR_STORAGE_FAILURE) : Unable to copy thumbnail from url:

Tried to add item from Yahoo Video and got a path error.

Tried to add item from Google Video and it works like a charm! Any ideas?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Tue, 2007-10-09 01:52

If you can post the output (or send them to me in a private message) from your attempts to add these videos with the debug output parameter set to true, I can better debug the problem. The embedvideo module uses a different algorithm for each site that is used to extract the thumbnail URL. I would need to see the debug output for each failed attempt on each failed site to offer any additional insight.

 
fluentdesigns2

Joined: 2003-06-25
Posts: 6
Posted: Tue, 2007-10-16 19:55

Was wondering if anyone would be able to help me out with the problem I am facing. If you look at the attached screen shots you will see in number one when viewing a video you cannot play it unless you click on the detail button. After clicking the detail button you will see that it makes playing the videos available. I obviously would like it so once you click on a video thumbnail that you can play it without having to click the detail link.

Any help would be appreciated.

 
gdfwilliams

Joined: 2007-03-13
Posts: 20
Posted: Tue, 2007-10-16 20:43

There is an option to AutoStart videos. Check out the attached image.

In Site Admin > Tools > Embed Video, define autoStart=true as a variable.

That should work!

 
fluentdesigns2

Joined: 2003-06-25
Posts: 6
Posted: Tue, 2007-10-16 21:27

thanks for the reply but I already have that option on. :( thought it would fix it as well but aparently not.

 
gdfwilliams

Joined: 2007-03-13
Posts: 20
Posted: Tue, 2007-10-16 23:52

Sorry about that. Seemed pretty obvious to me, too. :)

What's with the Summary vs. Details display modes? Is that specific to wp-gallery or have I just missed that??

I found your site through a Google search. Are you OK with posting a URL?

GDW

 
fluentdesigns2

Joined: 2003-06-25
Posts: 6
Posted: Wed, 2007-10-17 00:26

Ya that is fine.. I actually have two sites with the same problem of course.. maybe it is a wp-gallery theme problem

http://www.sidexsideaction.com/wp-gallery2.php

http://www.sandaddiction.com/wp-gallery2.php

thanks for your help

 
gdfwilliams

Joined: 2007-03-13
Posts: 20
Posted: Wed, 2007-10-17 01:17

Here's a video gallery on FluentDesign's site:
http://www.sidexsideaction.com/wp-gallery2.php?g2_itemId=1283

The videos only display in details mode because in its current form, the EmbedVideos module actually inserts the embed code in the description field, and displays a screenshot from the video as the image. (The wp-gallery theme allows you to turn of descriptions in "summary" mode, hence the problem you're having.)

There's been chatter in this thread about making changes to move the embed code out of the description. This "bug" is a good example of how the current format impacts some themes.

I'm not sure how to suggest you proceed. Perhaps others here will chime in...

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2007-10-17 04:55
gdfwilliams wrote:
Here's a video gallery on FluentDesign's site:
http://www.sidexsideaction.com/wp-gallery2.php?g2_itemId=1283

The videos only display in details mode because in its current form, the EmbedVideos module actually inserts the embed code in the description field, and displays a screenshot from the video as the image. (The wp-gallery theme allows you to turn of descriptions in "summary" mode, hence the problem you're having.)

There's been chatter in this thread about making changes to move the embed code out of the description. This "bug" is a good example of how the current format impacts some themes.

I'm not sure how to suggest you proceed. Perhaps others here will chime in...

Thanks for your excellent debug analysis on this failure GDF! I've double checked the sites you've posted, and agree with the problem. Unfortunately, with this module's current dependence on the description field, the use of this module is subject to that restriction. Your album must have descriptions enabled to use this module right now. Sorry!

 
fluentdesigns2

Joined: 2003-06-25
Posts: 6
Posted: Wed, 2007-10-17 16:32

Is there a way to turn description on globally?

 
jppaz

Joined: 2005-08-18
Posts: 47
Posted: Thu, 2007-10-18 06:28

Could I embed photos from Flickr or Panoramio?

I use "Embed Video" module and it is great !
Example: http://www.fotografiasdegalicia.com/galeria/v/acorunha/fisterra/videos-finisterre/

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Thu, 2007-10-18 13:32
jppaz wrote:
Could I embed photos from Flickr or Panoramio?

I use "Embed Video" module and it is great !
Example: http://www.fotografiasdegalicia.com/galeria/v/acorunha/fisterra/videos-finisterre/

I'm going to keep the EmbedVideo module specific to videos. However, gallery2 already supports the concept of "linking" in photos that are stored in remote locations (via the "Link to External URL:" feature). If this isn't what you are looking for, I understand. Another user requested a similar feature. I think this feature would best be serviced by an "EmbedPhoto" type module (I don't think anything like this has been written to date). They wanted the photo to look and feel just like it was stored in Gallery2, but in essence, the storage is not held locally for the photo. It is "embedded" in Gallery2 as a link to a photo stored remotely somewhere else. That's probably the best way to support the "Flickr" or "Panoramio" idea in Gallery2.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Thu, 2007-10-18 13:33
fluentdesigns2 wrote:
Is there a way to turn description on globally?

I'm not a Gallery2 expert by any means, but I did look around, and didn't see anything obvious to turn on the description globally. I wonder if your theme is in direct control of displaying that or not?

 
Insane Ninja

Joined: 2006-12-06
Posts: 5
Posted: Sat, 2007-10-20 22:12

something i find very useful..

i set these values.

height=360
width=480

and at the bottom of the theme.tpl template, (before google analytics) i put this..

{literal}
  <script type="text/javascript">
  if (document.getElementById("photo") && document.getElementById("VideoPlayback"))
  {
    document.getElementById("photo").appendChild(document.getElementById("VideoPlayback"))
    if (document.getElementById("IFid1"))
        document.getElementById("IFid1").style.display="none";
  }
  </script>
{/literal}

it moves the video under the image, and then hides the image, leaving the video

i am using the theme "ICE" but i believe this is universal

you MUST use the {literal} tags

 
osv

Joined: 2007-09-19
Posts: 26
Posted: Sun, 2007-10-21 21:16

would it be possible to make this module work with revver.com videos?

 
jppaz

Joined: 2005-08-18
Posts: 47
Posted: Fri, 2007-10-26 05:58

I extend EmbedVideo Module to support Embed Photos from Flickr and Panoramio.
The use of Description field is not correct.
Anybody could create this module with a new GalleryDataItem?
I think it is similar to LinkItem but the url is to embed the item

 
fnelsen

Joined: 2006-09-07
Posts: 2
Posted: Mon, 2007-10-29 17:44

I am a novice at Gallery for sure. I have managed to install and get everything functioning except the embed video modute. I have 1.05 installed with gallery 2.2.3. The module is installed and does show up and I have configured it accordingly with youtube developer id. When I try to upload a video I get a http error screen "this page cannot be displayed". Do you have a suggestion?
Thank you in advance for any help

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2007-11-02 02:44

I've just released a new version of embedvideo, version 1.0.6, and have attached it here.

Here are the release notes for 1.0.6:
- Added support for watermarking the thumbnails of the embedded videos

You'll find the following new parameters:
watermarkVideos true/false specify whether you want to apply a watermark to the video thumbnails when they are added.
watermarkImage URL or local path URL or local path to an alternate image to use as a watermark for all video thumbnails.
watermarkAlignment alignment Specify the watermark alignment: top-left, top, top-right, left, center, right, bottom-left, bottom, bottom-right

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2007-11-02 02:47
osv wrote:
would it be possible to make this module work with revver.com videos?

Absolutely. I've added your request to my feature request list. I don't see any major roadblocks to adding support for this site. It supports an embedded URL to its videos, which is the most important thing. I should be able to get to it soon.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2007-11-02 02:50
fnelsen wrote:
I am a novice at Gallery for sure. I have managed to install and get everything functioning except the embed video modute. I have 1.05 installed with gallery 2.2.3. The module is installed and does show up and I have configured it accordingly with youtube developer id. When I try to upload a video I get a http error screen "this page cannot be displayed". Do you have a suggestion?
Thank you in advance for any help

I'm not familiar with that error screen. I would need to see the debug output of your attempt to add a video. I've added instructions on how to do this under the "What if it doesn't work, or I get an error?" section of the wiki for this project located here: http://codex.gallery2.org/Gallery2:Modules:embedvideo

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2007-11-02 02:53
oltix wrote:
Maybe making the embed videos option just like that for the photos, with title and description fields, could resolve the problem.

You are quite correct. Moving away from overloading the photoItem by making our own embedded video item would certainly help here. That feature is coming. (I know everyone keeps hearing me say that, I just keep hitting snags in the process of trying to do this). Patience...

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2007-11-02 03:05
DeBoro wrote:
i do belive this is where it would by right to add new parametr to store our embedURL and not to abuse discription field

...

i think all this adds is all we need to create new field in db and to be able to comunicate with it

Deboro, first off, my apologies for not getting back to you sooner about this. Your posts came just before our new baby arrived, and I failed to see them up until now. I really like your suggestions, they show a simple path to getting out of the description field, and into a dedicated database field. However, it does involve changing the Gallery Core, which I want to avoid trying to do. If we can make our own item type, we will have full control over how we want it to be, what database fields we want to have, and keep it self contained, so the only dependency folks will have is on the embedVideo module itself. If we can find a way to take your ideas, and make our own Gallery type, I think we can achieve the same results, but in a more independent manner. I know one of the Gallery developers (valiant) has strongly encouraged us to go that way in taking the next step with this module. What are your thoughts and insights about doing something like this instead?

 
Barbrousse

Joined: 2007-05-22
Posts: 168
Posted: Sun, 2007-11-04 20:16

Hello,

Dailymotion (http://www.dailymotion.com) is a serious and high quality alternative to Youtube, did anyone try to make the plugin work with Dailymotion (i don't want to do the job twice...) ?

Thank you.

Barbrousse.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2007-11-05 13:31
Barbrousse wrote:
Hello,

Dailymotion (http://www.dailymotion.com) is a serious and high quality alternative to Youtube, did anyone try to make the plugin work with Dailymotion (i don't want to do the job twice...) ?

Thank you.

Barbrousse.

This is a great suggestion. I've added this to my feature request list, and should be able to add support for it this week.

 
Barbrousse

Joined: 2007-05-22
Posts: 168
Posted: Tue, 2007-11-06 18:12

Thank you, I was starting the job but you will do it faster than me, you know your code ;-)

Barbrousse.

 
gdfwilliams

Joined: 2007-03-13
Posts: 20
Posted: Tue, 2007-11-06 19:19

While you're at it, you might consider adding DivShare to the mix.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2007-11-07 04:00
gdfwilliams wrote:
While you're at it, you might consider adding DivShare to the mix.

I'll definitely look into that site as well to see if I can make that work too.

 
jeclic

Joined: 2007-09-14
Posts: 48
Posted: Wed, 2007-11-07 13:38

Hello apippin,
How can you explain the video doesn't display ?
http://galerie.de.photos.free.fr/main.php?g2_itemId=895

It's a public google video and your last plugin version.
However, G2 is instal for Multi-site, perchance...
I try with public youtube video, it's exactly the same result.
Here is the debugOutput file :
http://galerie.de.photos.free.fr//vids_test/main.php.htm

Can you help me ?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2007-11-07 14:02
jeclic wrote:
Hello apippin,
How can you explain the video doesn't display ?
http://galerie.de.photos.free.fr/main.php?g2_itemId=895

It's a public google video and your last plugin version.
However, G2 is instal for Multi-site, perchance...
I try with public youtube video, it's exactly the same result.
Here is the debugOutput file :
http://galerie.de.photos.free.fr//vids_test/main.php.htm

Can you help me ?

I've looked at your log and your test video. Your log indicates everything was added properly to Gallery2 by the EmbedVideo module. Unfortunately, it appears you may have a theme issue. Other users have posted similar problems with certain custom themes not showing the description field. Your site appears to be doing the same type of thing. Once EmbedVideo adds a video as a photoItem to your gallery, it is up to your theme to allow it to be displayed properly. Your theme is trying to "load" the photo, and fails to do so for some reason. It also doesn't show the description field, which is needed to display the embedded video.

 
jeclic

Joined: 2007-09-14
Posts: 48
Posted: Thu, 2007-11-08 08:49

OK, thanks a lot apippin !
You give me the solution ! I've forget, in my administration, to display the field "description".
However, I must find how put this field description at the place of my photo.
I test and it's not nice.
http://galerie.de.photos.free.fr/main.php?g2_itemId=895
For information, I use the Xtreme Theme.

After differents tests, with the Xtreme theme, the plugin can't display videos correctly.
I 'm obliged to use an another theme for my videos.
Could you do someting or test with this theme ?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Thu, 2007-11-08 13:50
jeclic wrote:
OK, thanks a lot apippin !
You give me the solution ! I've forget, in my administration, to display the field "description".
However, I must find how put this field description at the place of my photo.
I test and it's not nice.
http://galerie.de.photos.free.fr/main.php?g2_itemId=895
For information, I use the Xtreme Theme.

After differents tests, with the Xtreme theme, the plugin can't display videos correctly.
I 'm obliged to use an another theme for my videos.
Could you do someting or test with this theme ?

I'm glad you've gotten to the bottom of this now. Unfortunately, I'm not a Gallery2 Theme expert. I don't think there is anything else the EmebedVideo module can do at this point to address the problems you are seeing. The problems you are seeing are absolutely due to the theme you have chosen. The theme will need some modification by you to work properly with the embedded videos, or another theme needs to be chosen. Good luck!

 
jeclic

Joined: 2007-09-14
Posts: 48
Posted: Thu, 2007-11-08 14:07

Thanks apippin,
I'll contact the theme developper otherwise I'll choose another theme only for my videos.
Bye and great job !

 
culture

Joined: 2005-07-27
Posts: 8
Posted: Fri, 2007-11-09 10:57

Not sure if this is the right place to post this but i will try anyway:
I am having some sizing problems despite having the variables set to the correct size (ie default) and the video of the right size i am getting embedded youtube videos at 201 x 150...
see:
http://gallery.trailsunexpected.com/v/AmericasTrip/Vids/60_Seconds_around_South_America.html

Anyone know why?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2007-11-09 13:50
culture wrote:
Not sure if this is the right place to post this but i will try anyway:
I am having some sizing problems despite having the variables set to the correct size (ie default) and the video of the right size i am getting embedded youtube videos at 201 x 150...
see:
http://gallery.trailsunexpected.com/v/AmericasTrip/Vids/60_Seconds_around_South_America.html

Anyone know why?

It should be easy to figure out if you provide the debug output from adding this video. I've added instructions on how to do this under the "What if it doesn't work, or I get an error?" section of the wiki for this project located here: http://codex.gallery2.org/Gallery2:Modules:embedvideo

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2007-11-09 13:54
culture wrote:
Not sure if this is the right place to post this but i will try anyway:
I am having some sizing problems despite having the variables set to the correct size (ie default) and the video of the right size i am getting embedded youtube videos at 201 x 150...
see:
http://gallery.trailsunexpected.com/v/AmericasTrip/Vids/60_Seconds_around_South_America.html

Anyone know why?

I also noted that the video watermark placed on your thumbnail is down the center of your image. This is because the default watermark the module uses is the filmstrip, and the default watermarkAlignment is "center". This is a bad combination. I've changed the default to alignment to "left". This will take affect in the next version I release. For now, you'll have to set the "watermarkAlignment=left" variable to fix this. If anyone has a better "play button" watermark to use, feel free to share!

 
culture

Joined: 2005-07-27
Posts: 8
Posted: Fri, 2007-11-09 14:47
apippin wrote:
culture wrote:
Not sure if this is the right place to post this but i will try anyway:
I am having some sizing problems despite having the variables set to the correct size (ie default) and the video of the right size i am getting embedded youtube videos at 201 x 150...
see:
http://gallery.trailsunexpected.com/v/AmericasTrip/Vids/60_Seconds_around_South_America.html

Anyone know why?

It should be easy to figure out if you provide the debug output from adding this video. I've added instructions on how to do this under the "What if it doesn't work, or I get an error?" section of the wiki for this project located here: http://codex.gallery2.org/Gallery2:Modules:embedvideo

Done as requested :)

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2007-11-09 15:22
culture wrote:
apippin wrote:
culture wrote:
Not sure if this is the right place to post this but i will try anyway:
I am having some sizing problems despite having the variables set to the correct size (ie default) and the video of the right size i am getting embedded youtube videos at 201 x 150...
see:
http://gallery.trailsunexpected.com/v/AmericasTrip/Vids/60_Seconds_around_South_America.html

Anyone know why?

It should be easy to figure out if you provide the debug output from adding this video. I've added instructions on how to do this under the "What if it doesn't work, or I get an error?" section of the wiki for this project located here: http://codex.gallery2.org/Gallery2:Modules:embedvideo

Done as requested :)

Thanks for the extra debug. The size of 201 x 150 is being set on your thumbnail. The embedded video is specifying a size of 320x240 based on the setting of your width and height parameters. If you set the useRemoteSize=true, the embedded object will take on a default size of 425 x 350 for youtube. The "Full size:" report on the right hand side of the description is referring to the thumbnail size, not the embedded video size. The reason your thumbnails are sized that way is due to the thumbnail size option of 150 the EmbedVideo module is finding for your album. That should help!

 
culture

Joined: 2005-07-27
Posts: 8
Posted: Fri, 2007-11-09 16:27

Ah! Yes thats the one - the useRemoteSize thing. Although that is slightly confusing as i didn't realise the youtube vids where 425 x 350!!!
I will also adjust the thumbnails as well (tbh).

Thanks for your help and the app - really sorts a problem out for me!

 
Alexandra70

Joined: 2004-12-08
Posts: 143
Posted: Fri, 2007-11-16 07:08

apippin... THANK YOU, THANK YOU, THANK YOU for this GREAT Module!!

I literally cried today, when I was able to add the "In Memory" YouTube video made for my beloved dog, to my Gallery!!! Thanks to you!!

All is working fine... except I cannot figure out why Thumbnails display this thick vertical line right in the middle of the picture!!

I adjusted the Thumbnail Manager (which I already had activated) as suggested, but I cannot get rid of that line.

http://www.thebakkerfamily.com/gallery2/v/videos/

Appreciate your help!!

Alex

 
Alexandra70

Joined: 2004-12-08
Posts: 143
Posted: Fri, 2007-11-16 07:35

I figured it out!!! Geee... so proud of myself because I don't know anything about this "language" of code writing.

Anyway... I found that it was the Watermark image. And that in ItemAddEmbedVideo.inc, you had the alignment as CENTER.

$watermarkAlignment = $this->getParameter($ItemAddEmbedVideo, 'watermarkAlignment', "center");

That was putting the image right in the middle of the image.

Might want to fix that in the download file.

Alex

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2007-11-16 14:34
Alexandra70 wrote:
I figured it out!!! Geee... so proud of myself because I don't know anything about this "language" of code writing.

Anyway... I found that it was the Watermark image. And that in ItemAddEmbedVideo.inc, you had the alignment as CENTER.

$watermarkAlignment = $this->getParameter($ItemAddEmbedVideo, 'watermarkAlignment', "center");

That was putting the image right in the middle of the image.

Might want to fix that in the download file.

Alex

I'm glad you are enjoying the module, and I'm glad you solved your problem! Well done. Yes, I made a mistake by setting the default watermarkAlignment to CENTER with a default watermark that needs to be placed on the LEFT or RIGHT side of the image. My bad! You can also correct this by adding a watermarkAlignment parameter when you configure the module. I have corrected this mistake, and it will be fixed in the next version of this module I plan to release this weekend. The next version will not only correct this anomaly, it will also add support for 3 other video sites, in addition to allowing youtube videos to be added without having a developer ID.

 
Alexandra70

Joined: 2004-12-08
Posts: 143
Posted: Sat, 2007-11-17 04:16

Cool!! I will check for then new version then!!

Thanks again for this Module.. You don't know how much it meant to me being able to add that video to my Gallery!!

Alex

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sat, 2007-11-17 21:05

I've just released a new version of embedvideo, version 1.0.7, and have attached it here.

Here are the release notes for 1.0.7:
- Added support for adding revver, dailymotion, and divshare embedded videos.
- Added support for adding youtube embedded videos without a youtube developer ID.
- Fixed default watermark alignment.

 
petaluma007

Joined: 2007-11-18
Posts: 2
Posted: Sun, 2007-11-18 09:28

I'm using Gallery 2.1.2 core 1.1.0.2. When I copy the module over to my gallery and go to admin - modules page, it shows the following message under Embed Video:

Incompatible module!
Core API Required: 7.4 (available: 7.3)

Does it mean my gallery version is too old to run Embed Video?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sun, 2007-11-18 14:47
petaluma007 wrote:
I'm using Gallery 2.1.2 core 1.1.0.2. When I copy the module over to my gallery and go to admin - modules page, it shows the following message under Embed Video:

Incompatible module!
Core API Required: 7.4 (available: 7.3)

Does it mean my gallery version is too old to run Embed Video?

That is what the message means that you are getting. However, I didn't have the older versions of Gallery installed at the time I wrote this module. There is a chance it will work in your current version. To see if it will work or not, simply do this:

1) edit the modules/embedvideo/module.inc file
2) Change the following line from this:
$this->setRequiredCoreApi(array(7, 4));
to this:
$this->setRequiredCoreApi(array(7, 3));

Let me know how it goes, and if the module works properly. If it does, I'll make this change in my source code too to reflect the fact that this module does work with that Gallery Core version.

 
maffew12

Joined: 2007-11-18
Posts: 3
Posted: Sun, 2007-11-18 17:43

good god.. my random validation code to register was "mumsex"

..anyway!
great little module!
i just started with it, version 1.0.7
i want to edit the descriptions, but when i do the commenting fix on line 859 of the utilities class file, my gallery breaks instantly. just blank white pages. i take out the comment, and it's back. any idea what i'm doing wrong?
upgraded gallery just the other day - 2.2. raw HTML is enabled.

 
petaluma007

Joined: 2007-11-18
Posts: 2
Posted: Sun, 2007-11-18 19:06

Awesome...after I followed your suggestion, now my gallery could play the embed video. Great module!!

 
Barbrousse

Joined: 2007-05-22
Posts: 168
Posted: Mon, 2007-11-19 07:58

Thank you !

Barbrousse.

 
woofie8781

Joined: 2007-11-21
Posts: 2
Posted: Wed, 2007-11-21 12:26

So whats this all about>?

[img]http://www.cabiacfamily.com/images/error.PNG[/img]

not the thumbnail but the "/>

and shouldn't my thumbnail manager be taking care of that thumbnail?

FIXED - Went into General setting of admin and enabled HTML embeded markup