Page 1 of 1

Gallery2 integration

Posted: Thu Aug 17, 2006 3:30 pm
by bbomer
Hi,

I know this has already been hashed out in previous threads, but does anyone know how to integrate Gallery2 v 2.1.1 and CMSMS 0.13?  I have tried using the g2mod module, but that gives me the following error:
Fatal error: Call to a member function isError() on a non-object in /home/grvland/public_html/cms/modules/G2Mod/G2Mod.module.php on line 87
CMSMS is in public_html/cms and Gallery2 is in public_html/pictures.  I think I changed the paths appropriately in the g2mod settings UI to:
relative path: /../../../pictures
embedding path:
relative path to embed.php: /../../../pictures/embed.php


I noticed that g2mod was released quite a while ago, so does anyone know if it still works with the latest releases of Gallery2?  Are there any updates around that might make it work with G2 v 2.1.1?

I also noticed that there is a "Gallery2Embed" module in the forge that is in alpha.  Does anyone know when that might be released?  I'd even be willing to test an alpha version if any files are ever released.

Re: Gallery2 integration

Posted: Thu Aug 17, 2006 5:38 pm
by tsw
Have you tested Album module, its fully integrated...

Re: Gallery2 integration

Posted: Sat Aug 19, 2006 2:57 am
by Elijah Lofgren
bbomer wrote: Hi,

I know this has already been hashed out in previous threads, but does anyone know how to integrate Gallery2 v 2.1.1 and CMSMS 0.13?  I have tried using the g2mod module, but that gives me the following error:
Fatal error: Call to a member function isError() on a non-object in /home/grvland/public_html/cms/modules/G2Mod/G2Mod.module.php on line 87
CMSMS is in public_html/cms and Gallery2 is in public_html/pictures.  I think I changed the paths appropriately in the g2mod settings UI to:
relative path: /../../../pictures
embedding path:
relative path to embed.php: /../../../pictures/embed.php


I noticed that g2mod was released quite a while ago, so does anyone know if it still works with the latest releases of Gallery2?  Are there any updates around that might make it work with G2 v 2.1.1?

I also noticed that there is a "Gallery2Embed" module in the forge that is in alpha.  Does anyone know when that might be released?  I'd even be willing to test an alpha version if any files are ever released.
This may help:
http://dev.cmsmadesimple.org/projects/gallery2

12:18 gandalfcome: I think the gallery2 module works if you
use full adodb instead of adodb-lite
12:19 gandalfcome: I'm using gallery2 embedded on this cmsms
site: http://www.mwdesigns.nl/?page=gallery

Re: Gallery2 integration

Posted: Sat Aug 19, 2006 4:19 am
by calguy1000
yes, turning on full adodb in 0.13 should allow gallery2 integration with no difficulties.

However

When you upgrade to 1.0 you will probably have difficulties with the gallery2 module.

Gallery2 requires adodb proper, not adodb_lite, and in the latest version of adodb_lite, some changes have been made that make it slightly incompatible with adodb.  The incompatibilities we have found (so far) indicate that this incompatibility occurs only when creating tables.

You may be able to get past this though with a simple upgrade from 0.13 to 1.0 (when it comes out).  but, I'm not sure.  It depends on which modules you're using and the order that the upgrades procede in.  i.e.: a module written for cms 1.0 may not install or upgrade properly wien you've turned on adodb (proper).

this is just a pre-warning.  Your mileage may vary.

Re: Gallery2 integration

Posted: Mon Aug 21, 2006 2:19 pm
by bbomer
I got Gallery2 to work with CMSMS, the latest versions of gallery2 apparently use a different form of the "GalleryEmbed::init" function.  I may post the way I got it to work if anyone is interested.

Speaking of modules not working when adodb full is used, does anyone know why the News extension stops working when I use adodb full?  I have seen some chatter in the forums about it, but I can't find a concrete answer as to how to fix it.  Basically when adodb full is in use, no News content show up.  I don't see any error on the page as I did with the gallery2 page, but there is no content, just the header, menu and  footer. 

Re: Gallery2 integration

Posted: Mon Aug 21, 2006 5:50 pm
by Dee
It has to do with some incompatibilities between adodb light and full adodb.
This explains some: http://forum.cmsmadesimple.org/index.ph ... l#msg33952

It is fixed in SVN now, so it will be fixed in beta6:
http://viewsvn.cmsmadesimple.org/viewsv ... e&view=rev

Using these versions of method.install.php and method.upgrade.php should fix it:
http://viewsvn.cmsmadesimple.org/viewsv ... newsmodule
http://viewsvn.cmsmadesimple.org/viewsv ... newsmodule
(place them into your News module directory overwriting the existing ones)

Re: Gallery2 integration

Posted: Tue Aug 22, 2006 2:42 am
by bbomer
Dee, thanks for the tip.  I downloaded them and put them in the folder, but my news module did not have these files originally.  I guess these are for the version that's still under development for CMSMS v1?  If it is, I can just upgrade to the latest version 1 beta (currently using 0.13 stable release) if that's what it takes to make adodb full play nice.

Re: Gallery2 integration

Posted: Tue Aug 22, 2006 3:34 pm
by Elijah Lofgren
bbomer wrote: Dee, thanks for the tip.  I downloaded them and put them in the folder, but my news module did not have these files originally.  I guess these are for the version that's still under development for CMSMS v1?  If it is, I can just upgrade to the latest version 1 beta (currently using 0.13 stable release) if that's what it takes to make adodb full play nice.
Yes, those files will only be used for with the version of News included with CMSMS 1.0
I would wait and upgrade to CMSMS 1.0 beta6 which I think is coming out tomorrow.

Re: Gallery2 integration

Posted: Wed Aug 23, 2006 3:04 pm
by bbomer
Elijah, I will certainly wait for beta 6 if it is coming soon.  Thanks for the info.

Re: Gallery2 integration

Posted: Wed Aug 23, 2006 3:57 pm
by Elijah Lofgren
bbomer wrote: Elijah, I will certainly wait for beta 6 if it is coming soon.  Thanks for the info.
calguy1000 just said that he doubts beta6 will be released today. He thinks maybe tomorrow.

Just wanted to let you know,

Elijah