Page 1 of 1

Gallery Display

Posted: Tue Feb 01, 2005 1:08 am
by digx
Gallery Display
Allows anonymous users to view gallery links
Author: Matthew Groeninger; version: 0.2

What exactly does that plugin do? Thanks :)

Re: Gallery Display

Posted: Tue Feb 01, 2005 9:58 am
by garvinhicking
It displays your media library from Serendipity as a user-viewable gallery. :)

Regards,
Garvin

Posted: Wed Feb 02, 2005 6:51 am
by digx
:o

That's exactly what I need!!

But how do I access it after the plugin has been installed???

Posted: Wed Feb 02, 2005 9:53 am
by garvinhicking
It should be displayed in the sidebar on your frontpage...?

Regards,
Garvin

Posted: Sat Feb 05, 2005 5:11 am
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

Posted: Sun May 22, 2005 7:14 am
by vastneonwolf
Love the plug.
Just wondering if there is a way you could restrict which galleries are viewable?

Posted: Sun May 22, 2005 8:03 am
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.

Posted: Mon May 23, 2005 12:26 pm
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 :)

Posted: Mon May 23, 2005 7:22 pm
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).

Posted: Mon May 23, 2005 7:26 pm
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.

Posted: Tue May 24, 2005 5:25 am
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'!

Posted: Tue May 24, 2005 8:45 am
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

Posted: Tue May 24, 2005 8:52 am
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.