Display plugins only to registered users

Creating and modifying plugins.
Post Reply
beerlao
Regular
Posts: 7
Joined: Thu May 31, 2007 5:53 pm

Display plugins only to registered users

Post by beerlao »

Hi all,

is there a way to display plugins only to those users that are currently logged in? I know it is not the primary purpose for a blog to be that private, but I would appreciate if that was possible.

If there is no easy way, would it be sufficient to patch the code in serendipity_plugin_api::count_plugins to only match entries if a the currently requesting user is authenticated?

Thank you for any hints.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Display plugins only to registered users

Post by garvinhicking »

Hi!

Check out the "Toggle sidebar state" event plugin (or something like "show/hide sidebar plugins"), available via spartacus. It can hide sidebar plugins from specific authorgroups.

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/
beerlao
Regular
Posts: 7
Joined: Thu May 31, 2007 5:53 pm

Re: Display plugins only to registered users

Post by beerlao »

garvinhicking wrote: Check out the "Toggle sidebar state" event plugin (or something like "show/hide sidebar plugins"), available via spartacus. It can hide sidebar plugins from specific authorgroups.
Great! That just does it :-)

Thank you for your quick help!
Post Reply