You could modify the "sidebarhider" plugin to fold in some specific sidebars. You could also enhance the plugin to automatically hide some plugins only for not logged in users.
To completely hide a plugin (not only via JavaScript) would mean you'd need to modify the plugin itself you want to not display.
Inside the generate_content() method of a sidebar plugion you can do a check:
function generate_content(&$title) {
global $serendipity;
if (!$_SESSION['serendipityAuthedUser']) {
return false;
}
// more code here
}
HTH,
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/
Actually I have not yet come up with an idea that would make this function appear in all plugins, because as you mention it would mean to have a new column.
I will further ponder about it and hope to come to a solution
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/
And then I've committed the hiding functionality into the sidebar hider plugin. How's that?
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/