Gallery3

Gallery3, a forum discussion on Jojo CMS. Join us for more discussions on Gallery3 on our Plugin Announcements forum.

Back to Forum Index : Back to Plugin Announcements   RSS
tom

Developer

tom

6 Sep 2010
Posts: 379

I've made some additions/changes to gallery3 in the current branch copy. Existing sites should function as normal, but the changes allow for a bit more flexibility.

1. Added a new indeximage field to galleries. Sometimes you want to use a particular image in the index but you want it cropped more dramatically than the actual image in the gallery (especially if you're using gallery3 more like a portfolio plugin). The index image gets used for the index thumbnail if you supply it, otherwise..

2. key images: any image in galleryimages can be defined as a key image, and any that is will get shown as a thumbnail in the index - so you can have more than one image showing in the index list if you want, but even if you only want one you get to choose which one rather than just using the first one.
If an indeximage is set it gets used too as $gallery['keyimages'][0].

3. Categories are enabled by default. Any gallery page you create is automatically added as a new category. Any gallery you create that isn't assigned to a category will only be accessible by calling the gallery filter

4. Some tweaks to the template to allow for more css control, which should hopefully mean less requirement to make custom templates.

I've been thinking idly of making a 4th layout style for 'accordian' and an iPhoto-style index-image-rollover-thing but haven't got beyond thinking about it yet.. if anyone thinks that would be useful/cool to have, feel free to prod.

Or of course if you have something like that yourself already that you wouldn't mind committing you could do that too.. :)
ikohutua

20 Sep 2010
Posts: 3

I've installed Gallery3 on my site. Then I created some galleries and added some pictures into them. Once I have explored my gallery on the website, I got 10000 records in the eventlog table, the error description is "Undefined index: imageid
File: /virt/homes/viruyu/jojo/plugins/jojo_gallery3/jojo_gallery3.php
Line: 391" So what is wrong?
tom

Developer

tom

21 Sep 2010
Posts: 379

It looks like it's the sort function which is having a problem and I suspect it's because although the images have been uploaded and gallery3 has found them in the directory, it hasn't yet added them to the database table where they get given ids.
Force refresh the page (Ctr+F5) to run the script that checks for this.
You could also check the 'gallery image data' page in admin to make sure the images are all in there.

Which version of Jojo and gallery3 are you running?
ikohutua

23 Sep 2010
Posts: 3

You were right. I just checked the 'gallery image data', bud didn't do anything on this page. After that, the error doesn't appear any more in the event log.
Thank you for help.
Jaijaz Jaijaz

9 Oct 2010
Posts: 215

There a particular sort choice that will trigger this bug but for the life of me I can't remember which one it is, possibly name. I found it some time ago went to commit it but something stopped it from working. Totally forgot all about it till just reading this now. I'll try an find it again when I get a chance.
If you not living on the edge you taking up too much space.
Back to Forum Index : Back to Plugin Announcements   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.