Gallery Display not Working

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Madmusk
Regular
Posts: 5
Joined: Sun Aug 20, 2006 6:28 pm
Location: Upstate, NY

Gallery Display not Working

Post by Madmusk »

Hiya,

I chose to use the "gallery display" plugin to create an image gallery for my site. This seemed like the simplest solution, allowing anyone to see my media library images, but there's a problem :shock:

The image url's are missing a / right after "albums" resulting in broken images and links to their large counterparts.

For example, a url might be /serendipity/uploads/albums(no slash)exampleimage.jpg

Now, I'm gonna go ahead and assume this is my fault since this is no special implimentation of the plugin. In any case, does anyone know what this could result from?

Any help much appreciated!
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Doh... I have seen this problem somewhere before but I do not remember what was going on...

Can you use something like phpMyAdmin (or something to look in your database) and check the image records? Is the slash missing from the path entry for the image? (I am assuming it is.)

Also, what version of Serendipity are you using? (the more I think about it the more I think this is a known bug that was corrected in 1.0... Or maybe in 1.1...


Garvin (when you read this, 'cause I know you read all of it), do you remember what version (and under what circumstances) this was a problem?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Can't this just a path misconfiguration issue?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Can't this just a path misconfiguration issue?
It could be, but I don't think so... I think we ran into this issue somewhere else where the path portion of an image entry did not have the ending slash on it. Because core uses the "like" sql to match path it is never a problem in administration, but because gallery uses strict matching it can be a problem.

But I don't remember what version that was in...

I could just add checks in the gallery plugin to add a trailing slash to the path (if it is missing) before I push it into smarty.
Madmusk
Regular
Posts: 5
Joined: Sun Aug 20, 2006 6:28 pm
Location: Upstate, NY

Post by Madmusk »

Garvin you were right. My relative upload path was wrong.

While we're on this subject, do you have any idea why, even though it is set to display multiple columns, it only displays 1?

Annnnd, is there a way to categorize the pictures so it isn't just one giant gallery? Simple headings would be fine to group them.

Sorry to keep bugging you but this forum is just such a great resource! :D thanks
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Cool! Glad to hear it was just a configuration issue!

As to why it is only returning one column, what is your "Choose the gallery style" setting set to? And what theme are you using?

If you are using the Thumbnail page output is controlled by the "plugin_usergallery.tpl" file. If the file does not exist in the directory of the current theme it defaults to using the one in the plugin directory.

The default should display three columns, I believe. I would suggest switching your theme to the default to see if it works there, as an easy test.

If that doesn't work, I'm not really sure what the problem would be. Could you post your s9y version and the version of the plugin you are using?

As for organizing pictures, most people just use directories. If you play with the plugins settings there a several ways to handle navigation through directory levels. Basically, you can create folders underneath your published folder, set the "Output images strictly" to on, and the plugin will treat each directory as seperate "gallery".
Madmusk
Regular
Posts: 5
Joined: Sun Aug 20, 2006 6:28 pm
Location: Upstate, NY

Post by Madmusk »

Thanks for your help. I'm running Serendipity 1.0. Unfortunately I don't see the file in any of the theme directories but it does exist within the plugin directory. I tried using the default theme as well as copying the plugin_usergallery.tpl to the theme directory. Whatever I tried, I still ended up with 1 column.

However, If I select the media library gallery style the columns are displayed correctly. Is there any way to edit the layout of the media library? This would work just as well if I could.

Thanks.

Luke
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Is there any way to edit the layout of the media library?
Unfortunately, nope... well, not easily. That output is created by the serendipity backend functions and hasn't been templated yet.

Do you have a url I could look at? If you aren't interested in sharing it publicly you can send it to me in a private message.

I'm a little concerned, because the template should allow the user to change the number of columns, especially with the default theme. There might be some strange css interaction that is preventing it from working... (How large are your thumbnails?)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Matthew!
Unfortunately, nope... well, not easily. That output is created by the serendipity backend functions and hasn't been templated yet.
Actually, the media database of Serendipity 1.1 has in fact been templated! Check out the templates/default/admin/media*.tpl files. :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Garvin, wow, cool!!!

Infact, that is really cool... Now there is something else I can play with!
Post Reply