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 » Tue Feb 01, 2005 1:08 am

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

What exactly does that plugin do? Thanks :)

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Gallery Display

Post by garvinhicking » Tue Feb 01, 2005 9:58 am

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 » Wed Feb 02, 2005 6:51 am

:o

That's exactly what I need!!

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

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Wed Feb 02, 2005 9:53 am

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

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

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

Post by vastneonwolf » Sun May 22, 2005 7:14 am

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

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.

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

Post by vastneonwolf » Mon May 23, 2005 12:26 pm

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

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

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.

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

Post by vastneonwolf » Tue May 24, 2005 5:25 am

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'!

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Tue May 24, 2005 8:45 am

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/

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

Post by vastneonwolf » Tue May 24, 2005 8:52 am

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