Gallery Display

Creating and modifying plugins.
Post Reply
digx
Regular
Posts: 9
Joined: Tue Feb 01, 2005 1:06 am

Gallery Display

Post by digx »

Gallery Display
Allows anonymous users to view gallery links
Author: Matthew Groeninger; version: 0.2

What exactly does that plugin do? Thanks :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Gallery Display

Post by garvinhicking »

It displays your media library from Serendipity as a user-viewable gallery. :)

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/
digx
Regular
Posts: 9
Joined: Tue Feb 01, 2005 1:06 am

Post by digx »

:o

That's exactly what I need!!

But how do I access it after the plugin has been installed???
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

It should be displayed in the sidebar on your frontpage...?

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 »

Sorry, I should document that some place...

You need to go to

Code: Select all

http://yourwebserver/index.php?serendipity[subpage]=gallery
to view the page....

If I get some time I have some ideas about making it more configurable...
If you need something specific let me know and I might get to it faster...

Matt
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Post by vastneonwolf »

Love the plug.
Just wondering if there is a way you could restrict which galleries are viewable?
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Honestly, probably not.

This plugin relies on the internal Serendipity image functions, so it is difficult to do without patching the whole system. I keep bouncing it around in my mind, but I haven't thought of a good way to do it.
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Post by vastneonwolf »

would it be possible to pull the Directory dropdown in to the admin for the plugin and select which directory to use?
Probably be good to strip out all the search boxes and what not too...

I personally have no idea but that is the way I'm looking at it.

I'll probably break the whole thig but it's easy enough to fix :)
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

It is not possible to change the appearance of the menu/gallery display without patching the core of Serendipity, since it uses serendipity_displayImageList(). This function was not really designed to output a secure gallery structure, since it is only used in the admin menus (where security is handled within the whole admin framework).

I will play with it in my spare time, but please don't expect anything soon. I am not a core developer, and I don't have any real wish to do what they do (they work hard, I get to lounge around and play).
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

By the way, I placed an update to this plugin in CVS this morning.

The new features are:
Added css presentation for images.
Image's are shown with more information.
Plugin supports permalink (but only in root directory).
It should be available in anonymous CVS in a couple of hours.
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Post by vastneonwolf »

Well after a few hours of fooling around with serendipity_displayImageList() I slowly started to admit to myself that there is no way to do what I want without seriously modifying the core function, which I relly wanted to avoid.

So time for Plan 'B'!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Of course you can always duplicate/copy the functionality of our core code, or create new functions that maybe better read the list of images.

But we'd also accept patches to our core functions if the changes make sense :)

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/
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Post by vastneonwolf »

So far I have just removed all the admin features from my copy of the function. Can't figure out how to stop them from being displayed.

Next trick is to make the plugin stckable an work out how I can create a gallery for each directory.
Post Reply