Thank you Ken, 

I need to ask a really basic question. How does your solution get loaded?

I created a new tiddler titled: 
edit ability based on UserName

with body text: 
<div class='toolbar' macro="showWhen config.options.txtUserName == 
'KenGirard' "> 

      <span macro='toolbar editTiddler closeOthers closeTiddler'></span>
</div>

<div class='toolbar'  macro="showWhen config.options.txtUserName !== 
'KenGirard' ">
      <span macro='toolbar closeTiddler'></span>
</div>


and I can't tell that anything changes. (I didn't even change your name 
field to mine.) When you say UserName - do you mean the initial login to 
the computer, or a UserName specified within TiddlyWiki5 (which I don't 
know about)?

 JWHoneycutt

On Friday, June 23, 2017 at 7:01:07 PM UTC-4, Ken Girard wrote:
>
> Years ago I made a TW that showed one toolbar if the right username was 
> typed in, and a different toolbar (No edit features) if anything else was 
> in there. Still using it here at work. 
>
> <div class='toolbar' macro="showWhen config.options.txtUserName == 
> 'KenGirard' "> 
>       <span macro='toolbar editTiddler closeOthers closeTiddler'></span>
> </div>
>
> <div class='toolbar'  macro="showWhen config.options.txtUserName !== 
> 'KenGirard' ">
>       <span macro='toolbar closeTiddler'></span>
> </div>
>
>
> Used http://mptw.tiddlyspot.com/#HideWhenPlugin All kinds of fun stuff from 
> that.. 
>
>
> Now, that will not stop anyone who really knows what they are doing, but 
> it keeps the clueless out. 
>
> On Wednesday, June 21, 2017 at 6:14:18 PM UTC-5, JWHoneycutt wrote:
>>
>> I would like to share a TW5 file from Dropbox, but have it be read-only.
>>
>> Does this have an easy answer?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/87d3d9bb-9b32-4212-b9f1-9d115268fbc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to