Re: [tw] Re: Access for multiple users to edit wiki

2010-02-03 Thread Anthony Muscio
I use drop box for my main tiddlywiki using the tiddlyloc plugin http://www.minormania.com/tiddlylock/tiddlylock.html this works well to stop my editing the same wiki from my work home or virtual machines at the same time. Would it be practical to give each machine there own tiddlywiki which then

[tw] Re: Access for multiple users to edit wiki

2010-02-03 Thread Eric Shulman
> if (config.options.txtUserName != "Me" && config.options.txtUserName ! > = "Another guy") { >     readOnly = true; >     showBackstage = false;} > > For other users with edit access, simply keep appending >    && config.options.txtUserName !="..." > to the if condition Try this:

[tw] Re: Access for multiple users to edit wiki

2010-02-03 Thread Saverio
Try if (config.options.txtUserName != "Me" && config.options.txtUserName ! = "Another guy") { readOnly = true; showBackstage = false;} For other users with edit access, simply keep appending && config.options.txtUserName !="..." to the if condition On Feb 3, 4:59 am, Claudio Li wr

Re: [tw] Re: Access for multiple users to edit wiki

2010-02-03 Thread Claudio Li
Tried the following, but failed (both users cannot edit the wiki) if(config.options.txtUserName != "Me") { readOnly = true; showBackstage = false; } if(config.options.txtUserName != "Another guy") { readOnly = true; showBackstage = false; } On 3 February 2010 03:35, Mike wrote:

Re: [tw] Re: Access for multiple users to edit wiki

2010-02-03 Thread Alex Hough
Just wondering If there were two people collaborating on a TW using Dropbox Then the changes would be automatically synced. If each user could not edit each others content, Then would the collaboration with TW dilemma be solved. ALex On 2 February 2010 19:56, Dusty Jones wrote: > This di

[tw] Re: Access for multiple users to edit wiki

2010-02-02 Thread Dusty Jones
This did the trick, thanks a bunch! On Feb 2, 12:13 pm, "Mark S." wrote: > Possibly you could try: > > readOnly="Name1;Name2;Name3".indexOf(config.options.txtUserName)==-1 ; > > As long as the names aren't subsets of each other > ("Jon","Joni","Jonis"...) > > On Feb 2, 7:33 am, Dusty Jones wrote

[tw] Re: Access for multiple users to edit wiki

2010-02-02 Thread Mike
An alternate method (albeit longer) if (config.options.txtUserName!="SomeName") { readOnly=true; showBackstage=false;} Each user with editing access would be a new line replacing SomeName Good Luck ! Mike On Feb 2, 11:13 am, "Mark S." wrote: > Possibly you could try: > > readOnly="N

[tw] Re: Access for multiple users to edit wiki

2010-02-02 Thread Mark S.
Possibly you could try: readOnly="Name1;Name2;Name3".indexOf(config.options.txtUserName)==-1 ; As long as the names aren't subsets of each other ("Jon","Joni","Jonis"...) On Feb 2, 7:33 am, Dusty Jones wrote: > I'm trying to make my wiki read only for everyone but a few users. I'm > currently d