[pmwiki-users] how to hide sidebar when login form is displayed?
Hans
design5 at softflow.co.uk
Sat Mar 31 11:29:43 CDT 2007
Saturday, March 31, 2007, 1:59:02 PM, Neil wrote:
> On 2007-03-31 SteP is rumoured to have said:
>> How can I hide the left sitebar when the login form is being displayed?
>>
I found the following in a not used config part which may help you,
but I have not tried this recently:
# stripping sidebar, title and footer when not logged in
if (!$AuthId) {
$HTMLStylesFmt[] = "
#wikilogo, #wikihead, #wikileft, #wikititle, #wikifoot,
#sidebar, #titlebarbox, #footer {display:none}
#sidebarbox {width:0} #main {margin:0}
#left-box, #right-box, #topnavbox {display:none}\n";
};
$AuthPromptFmt = array(&$HTMLStartFmt,
'page:$SiteGroup.AuthForm', &$HTMLEndFmt);
You may need to adjust the div names in above css.
~Hans
More information about the pmwiki-users
mailing list