Gallery2 Integration

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
KnightWolfJK

Re: Gallery2 Integration

Post by KnightWolfJK »

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

Re: Gallery2 Integration

Post by tho »

can i use this module with mod_rewrite, too? ... how?
kreo
Forum Members
Forum Members
Posts: 27
Joined: Sat Aug 06, 2005 10:08 am

Re: Gallery2 Integration

Post by kreo »

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 ! :)
Kyle

Re: Gallery2 Integration

Post by Kyle »

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?
Kyle

Re: Gallery2 Integration

Post by Kyle »

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.
Forgot to mention: if I deactivate G2Mod (but don't uninstall it), the site works fine again.
vossen

Re: Gallery2 Integration

Post by vossen »

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
vossen

Re: Gallery2 Integration

Post by vossen »

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
vossen

Re: Gallery2 Integration

Post by vossen »

ok, i find it, had to remove short urls.
Frank

Re: Gallery2 Integration

Post by Frank »

???  OK - So I am a noob to using CMS, but that doesn't seem enough of an excuse for why I can't get this figured out...

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
Massimo

Re: Gallery2 Integration

Post by Massimo »

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
tekkel

Re: Gallery2 Integration

Post by tekkel »

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
tekkel

Re: Gallery2 Integration

Post by tekkel »

1 downside: ussing adodb instead of adodblite somehow breaks caching of the rest of cmsms
JohnJohn

Re: Gallery2 Integration

Post by JohnJohn »

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
Locked

Return to “Modules/Add-Ons”