Re: Hiding Sidebar Plugins
Posted: Tue May 10, 2005 9:00 pm
There is currently no way.
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:
HTH,
Garvin
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:
Code: Select all
function generate_content(&$title) {
global $serendipity;
if (!$_SESSION['serendipityAuthedUser']) {
return false;
}
// more code here
}
Garvin