Hi Shavinder!

Got it solved thanks to you!

I never called [[ToggleRightSidebar]] before checking the value of
"config.options.chkShowRightSidebar".
That would explain why it's value changed to NULL on page reloads -- it
never got initialized.

So, I added statement: <<tiddler ToggleRightSidebar>> to one of the tiddlers
called at startup as you
explained, and now the right sidebar is hidden for regular visitors and
shown when admin logs in.

I think the documentation on TiddlyTools.com needs serious improvement.

Thanks a million, Sir!

Septimus



On Sat, Oct 31, 2009 at 4:57 AM, shavinder <[email protected]>wrote:

>
> Are you calling the [[ToggleRightSidebar]] from somewhere?
> ToggleRightSidebar is a script (transclusion now) which is not tagged
> with systemConfig and therefore in order to run it one needs to call
> it like this from somewhere: <<tiddler ToggleRightSidebar
> with:"sidebar">>. This can either be done after startup in a normal
> tiddler or in a tiddler which is called at startup like in
> [[MainMenu]] or [[SiteSubtitle]]. You could make it more discreet by
> using a smaller label, eg a dot '.' instead of 'sidebar' and making
> its color same as the background.
>
> hope this helps
> -shavinder
>
> On Oct 30, 11:34 pm, Eric Winter <[email protected]> wrote:
> > BTW, here's my content of tiddler zzTweak:
> >
> > if(config.options.txtUserName != "admin") {
> >     config.options.chkSinglePageMode = true;
> >     config.options.chkShowRightSidebar = false;
> >     readOnly = true;
> >     showBackstage = false;
> >
> > }
> >
> > Septimus
> >
> > On Fri, Oct 30, 2009 at 7:32 PM, Eric Winter <[email protected]
> >wrote:
> >
> > > Hi Shavinder,
> >
> > > Good suggestion, well done!
> >
> > > First of all, yes, I have tiddler zzTweak preperly tagged
> "systemConfig".
> >
> > > I took a look with Firebug and found that when I am logged in as user
> > > "admin",
> > > config.options.chkShowRightSidebar is TRUE.
> >
> > > When I change the username to another user and reload the page, the
> value
> > > of config.options.chkShowRightSidebar changes to NULL.
> >
> > > When I re-enter "config.options.chkShowRightSidebar" in Firebug's
> > > expression
> > > watchbox, it's value changes to FALSE.
> >
> > > So, config.options.chkShowRightSidebar appears to behave as expected.
> > > I don't know what to make of the intermediate transition to NULL.
> >
> > > Do you?
> > > Septimus
> >
> > > On Fri, Oct 30, 2009 at 6:53 PM, shavinder <
> [email protected]>wrote:
> >
> > >> Did you confirm that zzTweak tiddler has a systemConfig tag?
> > >> Is it being loaded during startup?
> > >> if you have firebug you could check the value of the
> > >> config.options.chkShowRightSidebar by entering it on the firebug
> > >> console and pressing enter. If you dont use FF I think you could
> > >> import jash from tiddlytools and do the same check.
> >
> > >> -shavinder
> >
> > >> On Oct 30, 9:34 pm, Septimus <[email protected]> wrote:
> > >> > Hi people!
> >
> > >> > I like the RightSidebar to be hidden by default, and only show if I,
> > >> > myself and me, log in.
> > >> > This should be easily configured and is explained herehttp://
> > >> tiddlywiki.org/wiki/How_To/Setting_Up_TiddlyWiki_As_a_Website
> > >> > under heading "Hide right side bar".
> >
> > >> > I followed the instructions to the letter, a couple of times even,
> and
> > >> > the RightSidebar keeps
> > >> > on showing by default. That is, it shows up each and every time, no
> > >> > matter who's logged in.
> >
> > >> > I'd like to go over my steps here, and perhaps that someone among
> you,
> > >> > see's what the
> > >> > -beep- I'm doing wrong, okay? Great!
> > >> > Here's what I did:
> > >> > -1- install the InlineJavascriptPlugin;
> > >> > -2- install the ToggleRightSidebar macro;
> > >> > -3- add tyhe following line to tiddler zzTweak:
> >
> > >> > config.options.chkShowRightSidebar=false;
> >
> > >> > -4- save the page and reload.
> >
> > >> > I checked PluginManager if the plugin is installed and it is.
> >
> > >> > Anyone any suggestions to what might be wrong?
> >
> > >> > Thanks!
> > >> > Septimus
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to