Gallery2 Integration
Re: Gallery2 Integration
GhostRifle- I'll certainly check out your module. For now I've implemented a workaround- I essentially copied my site's design and created a matching Gallery2 theme (using this guide). It wasn't as difficult as I thought and everything is working perfectly except for the vertical menu navigation, but I think I can get that working soon.
Re: Gallery2 Integration
Hi
This my gallery2 http://www.regionalizm.pl/gallery2/main.php
This my cms with gallery http://www.regionalizm.pl/index.php?page=galeria
my problem
if I enlarge picture ....displays (my cms) http://www.regionalizm.pl/index.php?pag ... _itemId=10 and nothing
help !
This my gallery2 http://www.regionalizm.pl/gallery2/main.php
This my cms with gallery http://www.regionalizm.pl/index.php?page=galeria
my problem
if I enlarge picture ....displays (my cms) http://www.regionalizm.pl/index.php?pag ... _itemId=10 and nothing
help !

Re: Gallery2 Integration
I'm having an interesting problem. When I activate G2Mod, my site starts returning blank pages (as in no HTML at all) or the content without any styling, as if it's not reading the CSS. This happens even if I have not put the markup in my content (i.e. {cms_module module="g2mod"}). Anyone have any suggestions?
Re: Gallery2 Integration
Forgot to mention: if I deactivate G2Mod (but don't uninstall it), the site works fine again.Kyle wrote: When I activate G2Mod, my site starts returning blank pages (as in no HTML at all) or the content without any styling, as if it's not reading the CSS.
Re: Gallery2 Integration
sorry it's working and the tag to get it online is this {cms_module module="G2mod"}
wow, you need to look for thinks, takes ages
regards
wow, you need to look for thinks, takes ages

regards
Re: Gallery2 Integration
ok i run into a problem.
the gallery i can see the cms, even the first pictures of each gallery, but the link to the gallery is wrong:
http://www.mydomain.com/test.htm there is see the gallery and then i click on a gallery and this url turns out.
http://www.mydomain.com/test.[b]htmindex[/b].php?page=test&g2_view=core.ShowItem&g2_itemId=10
the error is here> /test.htmindex.php
if i change the url to
http://www.mydomain.com/[b]index[/b].php?page=test&g2_view=core.ShowItem&g2_itemId=10
it works fine.
any idea why this happens?
regards
vossen
the gallery i can see the cms, even the first pictures of each gallery, but the link to the gallery is wrong:
http://www.mydomain.com/test.htm there is see the gallery and then i click on a gallery and this url turns out.
http://www.mydomain.com/test.[b]htmindex[/b].php?page=test&g2_view=core.ShowItem&g2_itemId=10
the error is here> /test.htmindex.php
if i change the url to
http://www.mydomain.com/[b]index[/b].php?page=test&g2_view=core.ShowItem&g2_itemId=10
it works fine.
any idea why this happens?
regards
vossen
Re: Gallery2 Integration

I love CMSMS. It is simple and easy to use. I love Gallery2 for the same reasons. Both have great features. They compliment each other well.
My problem - I am trying to set up a multi-user website for my extended family (spread across the US) to allow changes to parts of the web site to which they are assigned. I also want them to be able to add pictures and photo albums to their web sites. But I can't see where the integration between CMSMS and Gallery gives me the ability to allow them to manage it all from one place. Is there such a thing?
I have tried G2Mod, and it does link to my Gallery, but how do I link a page in CMSMS to a specific album in Gallery2? Also - how do they upload all
I really need to keep the whole thing simple if I expect my family to use this. If they have to learn two separate applications, they won't use it.
Perhaps Gallery is to much for what I want...
Any help?
Regards,
Frank
Re: Gallery2 Integration
Hi all,
I installed G2 and G2mod,
The gallery works wen I load it in the standard way, accessing http://hostname/gallery2/
but when I load the page inside CMSMS with G2 mod tag I get this error:
Fatal error: Call to undefined method mysql_driver_ResultSet::FetchRow() in /var/www/cms/gallery2/modules/core/classes/GalleryStorage/DatabaseSearchResults.class on line 63
I also had to comment some lines in G2Mod.module.php which gave me some error about LoggerManager::getLogger...
I'm using Gallery 2 2.0.2
Hany suggestions??
Thanks,
Max
I installed G2 and G2mod,
The gallery works wen I load it in the standard way, accessing http://hostname/gallery2/
but when I load the page inside CMSMS with G2 mod tag I get this error:
Fatal error: Call to undefined method mysql_driver_ResultSet::FetchRow() in /var/www/cms/gallery2/modules/core/classes/GalleryStorage/DatabaseSearchResults.class on line 63
I also had to comment some lines in G2Mod.module.php which gave me some error about LoggerManager::getLogger...
I'm using Gallery 2 2.0.2
Hany suggestions??
Thanks,
Max
Re: Gallery2 Integration
U probably used the beta 0.12 beta 2
if so, the the solutions is as followes (worked for me)
copy the adodb from the gallery (/gallery2/lib/adodb) to the lib directory of cms made simple (/lib)
edit the config file en set "$config['use_adodb_lite'] = false;"
hope this works for you
if so, the the solutions is as followes (worked for me)
copy the adodb from the gallery (/gallery2/lib/adodb) to the lib directory of cms made simple (/lib)
edit the config file en set "$config['use_adodb_lite'] = false;"
hope this works for you
Re: Gallery2 Integration
1 downside: ussing adodb instead of adodblite somehow breaks caching of the rest of cmsms
Re: Gallery2 Integration
An update has been released for Chad's simple Gallery 2 integration tag. It's in the forge here:
http://dev.cmsmadesimple.org/frs/?group ... ase_id=405.
Unfortunately, it still has a few problems.
The notes in the new versions suggest a workaround for the different ways CMSMS and Gallery 2 handle databases.
Replacing CMSMS's adodb_lite with the full set, as suggested in the notes in version 1.1 causes a problem: the news module stops working.
Changing the second-last line of adodb.config.php to:
$modules = "pear:date";
as suggested, produces this error in /admin/listcss.php:
Fatal error: Call to undefined function: rowcount() in /home/johnjohn/www/admin/listcss.php on line 70
and in /admin/adminlog.php:
Fatal error: Call to undefined function: rowcount() in /home/johnjohn/www/admin/adminlog.php on line 41
In addition, the details of how Gallery 2 integration should be implemented have been changed for Galley 2.1, as detailed here:
http://codex.gallery2.org/index.php/Gal ... init.28.29
To bring the tag up to the new spec, the following changes are needed:
Replace these lines (30-36):
$ret = GalleryEmbed::init(array(
'embedUri' => 'index.php?page=Gallery', 'embedPath' => '/', 'relativeG2Path' => 'gallery',
'loginRedirect' => 'index.php?page=Login', 'activeUserId' => ''));
if ($ret->isError()) {
// $ret->getAsHtml() has error details..
exit;
}
with this:
$ret = GalleryEmbed::init(array(
'embedUri' => 'http://www.mysitename.com/index.php?page=Gallery', 'g2Uri' => 'http://www.mysitename.co/gallery/',
'loginRedirect' => 'index.php?page=Login', 'activeUserId' => ''));
if ($ret) {
print $ret->getAsHtml();
exit;
Also, the current line 33 ( if ($ret->isError()) { ) produces an error under CMSMS 0.13, but that's academic if the above change is made.
The tag still contains at line 37:
GalleryCapabilities::set('showSidebar', false);
This should be:
GalleryCapabilities::set('showSidebarBlocks',false);
And finally a tiny nitpick at line 53:
Embed the popular Gallery2 image gallery software (http://gallery.sourceforge.net
Should be
Embed the popular Gallery2 image gallery software (http://gallery.sourceforge.net
http://dev.cmsmadesimple.org/frs/?group ... ase_id=405.
Unfortunately, it still has a few problems.
The notes in the new versions suggest a workaround for the different ways CMSMS and Gallery 2 handle databases.
Replacing CMSMS's adodb_lite with the full set, as suggested in the notes in version 1.1 causes a problem: the news module stops working.
Changing the second-last line of adodb.config.php to:
$modules = "pear:date";
as suggested, produces this error in /admin/listcss.php:
Fatal error: Call to undefined function: rowcount() in /home/johnjohn/www/admin/listcss.php on line 70
and in /admin/adminlog.php:
Fatal error: Call to undefined function: rowcount() in /home/johnjohn/www/admin/adminlog.php on line 41
In addition, the details of how Gallery 2 integration should be implemented have been changed for Galley 2.1, as detailed here:
http://codex.gallery2.org/index.php/Gal ... init.28.29
To bring the tag up to the new spec, the following changes are needed:
Replace these lines (30-36):
$ret = GalleryEmbed::init(array(
'embedUri' => 'index.php?page=Gallery', 'embedPath' => '/', 'relativeG2Path' => 'gallery',
'loginRedirect' => 'index.php?page=Login', 'activeUserId' => ''));
if ($ret->isError()) {
// $ret->getAsHtml() has error details..
exit;
}
with this:
$ret = GalleryEmbed::init(array(
'embedUri' => 'http://www.mysitename.com/index.php?page=Gallery', 'g2Uri' => 'http://www.mysitename.co/gallery/',
'loginRedirect' => 'index.php?page=Login', 'activeUserId' => ''));
if ($ret) {
print $ret->getAsHtml();
exit;
Also, the current line 33 ( if ($ret->isError()) { ) produces an error under CMSMS 0.13, but that's academic if the above change is made.
The tag still contains at line 37:
GalleryCapabilities::set('showSidebar', false);
This should be:
GalleryCapabilities::set('showSidebarBlocks',false);
And finally a tiny nitpick at line 53:
Embed the popular Gallery2 image gallery software (http://gallery.sourceforge.net
Should be
Embed the popular Gallery2 image gallery software (http://gallery.sourceforge.net