[tw] Re: Hide Backstage
> if I remove the readOnly or change it to false then the > backstage is no longer hidden That's because of the startup order; plugins are loaded before the backstage status is initialized. Here's a small plugin that will check at the right time: --- //{{{ // hijack restart var restart_orig = restart; restart = function() { if(config.options.txtUserName != "foo") { showBackstage = false; } restart_orig.apply(this, arguments); }; //}}} --- (change "foo" to your desired username) Obviously, this method is not suitable for reliably restricting access. -- F. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com 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 -~--~~~~--~~--~--~---
[tw] Re: Hide Backstage
I am still looking for a fix to my problem. Is there something that I am missing. I have tried using the [[ConfigTweaks]] idea that was presented but I can not get it to work. As I said in my last post, the only way that I am able to get the backstage to be hidden like I need it to is by using the [[zzTweak]] using the following code -- if(config.options.txtUserName != "adminname") { readOnly = true; showBackstage = false; } -- however if I remove the readOnly or change it to false then the backstage is no longer hidden. Please let me know if there is something that I am missing. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com 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 -~--~~~~--~~--~--~---
[tw] Re: Hide Backstage
I reloaded the document after each time I entered a new username. I am still able to see the Backstage. I also tried searching for backstage and the only thing that shows up is the [[Config Tweaks]]. I tried loading your fix into an empty copy and was not able to get it to work that way either. I have used the zzTweak that is listed on the tiddlywiki.org site and that works to remove the Backstage but it also puts it into a read only mode and if I try to remove that the backstage no longer is hidden. Again, thanks for your help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com 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 -~--~~~~--~~--~--~---
[tw] Re: Hide Backstage
> I tried what you have written but I am able to still see the Backstage > area regardless of the username that I enter. If it would matter, > this is not being used on the web but from a file location. The backstage is initialized when the document is loaded into the browser. Make sure that you reload the document after changing the username, in order for the proper showBackstage setting to take effect. In addition, is it possible that you have some other 'systemConfig' tiddler in your document that is also setting the showBackstage value? Try searching for 'backstage' in your document. If you find such a tiddler, and it is loaded after [[ConfigTweaks]] (plugins are initialized alphabetically, by tiddler title), then it's setting will supersede the one you are trying to apply. HTH, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com 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 -~--~~~~--~~--~--~---
[tw] Re: Hide Backstage
Thanks for your quick reply, I tried what you have written but I am able to still see the Backstage area regardless of the username that I enter. If it would matter, this is not being used on the web but from a file location. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com 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 -~--~~~~--~~--~--~---
[tw] Re: Hide Backstage
> I am looking for a way to hide the Backstage area upon opening unless > a specific username is used. Everything else should function as is. Create a tiddler (e.g., [[ConfigTweaks]]), tagged with 'systemConfig', containing this line of javascript: - window.showBackstage=config.options.txtUserName=="InsertNameHere"; - enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com 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 -~--~~~~--~~--~--~---