Gallery2 Integration

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

Re: Gallery2 Integration

Post by JohnJohn »

Hi KnightWolfJK

I managed to get the Gallery2 integrator working without too many problems. As others have pointed out it contains a few errors that you have to fix.

I think my server structure is the same as yours - gallery2 is in the CMCMS directory

The key word you seem to have missed is in line 27 where it says:

Code: Select all

// change this for the relative path to embed.php
NB: relative

My line 28 is therefore:

Code: Select all

	require_once(dirname(__FILE__) . '/../gallery/embed.php');
Hope this helps.
KnightWolfJK

Re: Gallery2 Integration

Post by KnightWolfJK »

JohnJohn wrote: The key word you seem to have missed is in line 27 where it says:

Code: Select all

// change this for the relative path to embed.php
NB: relative

My line 28 is therefore:

Code: Select all

	require_once(dirname(__FILE__) . '/../gallery/embed.php');
Hope this helps.
Thanks.  You're right, I totally missed that.  It worked- the NOCACHE errors are gone and Gallery2 is loading data but not images- I think I can track it down though.  Thanks again
JohnJohn

Re: Gallery2 Integration

Post by JohnJohn »

Glad that helped. If memory serves I also had to mess about with lines 31 and 32 to get it to point properly at the directory where Gallery2 is installed. That might help with your 'not showing images' issue?
Mesmer

Re: Gallery2 Integration

Post by Mesmer »

FYI
Gallery 2.0.2 is now available for download. This release adds no new features. It fixes a minor XSS exploit, a potential information leak and a file disclosure bug in the zipcart module that could allow remote visitors to view sensitive files on your webserver. These security flaws were discovered during an internal security audit of the Gallery 2 code, and there are no known exploits of them in the wild. However we strongly recommend that you upgrade to version 2.0.2 as soon as possible. If you're unable to upgrade right away we recommend that you *disable the zipcart module* until time permits you to upgrade. Please follow our upgrading instructions and download and install the latest release.

Upgrading is quick and easy and will help you ensure the security of your system. Visit http://gallery.menalto.com/gallery_2.0.2_released for more details.

Patch Files:
http://codex.gallery2.org/index.php/Gal ... d#Upgrades

Instructions:
http://codex.gallery2.org/index.php/Gal ... g_to_2.0.x

If you have any questions, please ask in the Gallery 2 forums:
http://gallery.menalto.com/forum/62

regards,
The Gallery Team
cwalk

Re: Gallery2 Integration

Post by cwalk »

Ok, so using this thread, I changed some things, and installed the plugin. It works, but there are no pictures, has anyone fixed this yet?
cwalk

Re: Gallery2 Integration

Post by cwalk »

From the install instructions in

"Default configuration will work if gallery is installed within the cms made simple tree. I.E. CMS made simple is installed in /var/www/mysite and gallery2 is installed in /var/www/mysite/gallery"

I have gallery2 installed in folder 'gallery' which is located in the install directory of cmsms (which happens to be the root of my domain). So from what I read, I followed the install instructions, but I didn't work. embed.php would load, but no pictures would be displayed. To get the entire gallery2 integration working, I had to change the following in function.gallery2.php:

line 31: 'embedUri' => 'index.php?page=Gallery', 'embedPath' => 'gallery', 'relativeG2Path' => '',
line 37: GalleryCapabilities::set('showSidebarBlocks', false);
line 41: }

So it works, but it's not really integrated. I thought that integration meant that the gallery would stay within your cms while browsing, but it seems as though it is just in your cms for the main index of gallery2, and then it jumps into the gallery2 template when you try to visit anything.
Mesmer

Re: Gallery2 Integration

Post by Mesmer »

can someone ecplain to me how I can install this module? I´m still quite the newbe here :)
cwalk

Re: Gallery2 Integration

Post by cwalk »

Put the module in the 'plugins' directory in CMS. Then call {gallery2} from within one of your pages.
Mesmer

Re: Gallery2 Integration

Post by Mesmer »

I uploaded the file, made the changes, put the tag in a page and I can see the albums in my cms.
But when I click on an album I get this error
Warning: Smarty error: unable to read resource: "db:Gallery" in /usr/local/psa/home/vhosts/dewoldmeppers.nl/httpdocs/lib/smarty/Smarty.class.php on line 1088
KnightWolfJK

Re: Gallery2 Integration

Post by KnightWolfJK »

cwalk wrote: From the install instructions in

"Default configuration will work if gallery is installed within the cms made simple tree. I.E. CMS made simple is installed in /var/www/mysite and gallery2 is installed in /var/www/mysite/gallery"

I have gallery2 installed in folder 'gallery' which is located in the install directory of cmsms (which happens to be the root of my domain). So from what I read, I followed the install instructions, but I didn't work. embed.php would load, but no pictures would be displayed. To get the entire gallery2 integration working, I had to change the following in function.gallery2.php:

line 31: 'embedUri' => 'index.php?page=Gallery', 'embedPath' => 'gallery', 'relativeG2Path' => '',
line 37: GalleryCapabilities::set('showSidebarBlocks', false);
line 41: }

So it works, but it's not really integrated. I thought that integration meant that the gallery would stay within your cms while browsing, but it seems as though it is just in your cms for the main index of gallery2, and then it jumps into the gallery2 template when you try to visit anything.
Cwalk- That's the same conclusion I came to.  I'm going to switch to a image gallery that's in the Forge and being actively developed for CMSMS.
User avatar
ghostrifle
Forum Members
Forum Members
Posts: 54
Joined: Wed Mar 02, 2005 11:03 pm

Re: Gallery2 Integration

Post by ghostrifle »

I stopped working on my image gallery module.... and wrote a small module for Gallery2, it's easy to install and to setup if your gallery2 installation is the cms folder

eg: www.cmsdomain.org/gallery2/

and even it's not like above it won't be a problem to set it up  ;D

I will release it tomorrow.... I even wrote a theme called "nordheim" for a better integration in my cms site
Tho

Re: Gallery2 Integration

Post by Tho »

you are my hero  :)  - Great Module!

Where can i download "nordheim" ?
User avatar
ghostrifle
Forum Members
Forum Members
Posts: 54
Joined: Wed Mar 02, 2005 11:03 pm

Re: Gallery2 Integration

Post by ghostrifle »

;D Here you go: http://www.damage-done.net/upload/relea ... imv0.1.zip

Be sure to remove the blocks (search etc.... from the admin) to have a look like on my site

A little more info can be found here: http://www.damage-done.net/index.php?page=CMSMadeSimple(german)

greetings

PS: G2Mod can be found here
Last edited by ghostrifle on Wed Dec 14, 2005 2:12 pm, edited 1 time in total.
cwalk

Re: Gallery2 Integration

Post by cwalk »

nice work! this was what I was looking for in the first place.
User avatar
ghostrifle
Forum Members
Forum Members
Posts: 54
Joined: Wed Mar 02, 2005 11:03 pm

Re: Gallery2 Integration

Post by ghostrifle »

thanx for the nice comments  :D
Locked

Return to “Modules/Add-Ons”