Partway? You just gave me exactly the piece i need!

I honestly expected a response of  "Sorry, TW5 doesn't support that, you'll 
have to code your own." responses.

Here is what i settled on:

I changed the CSS part to:   .tc-tagged-GM_Only button[title="Edit this 
tiddler"] {display:none} 

So now he can tag an entire tiddler as uneditable.

and since <$reveal> w/ no options defaults to hidden. He just needs to use 
those as spoiler tags to hide information.
And since <$reveal> doesn't let its contents reach the browser, its better 
than a {display:none}

I seriously love this frigging application!

You don't HAVE to be insane to make it sit, stay, and beg.. but it might 
help.

Thank you again!


On Sunday, July 9, 2017 at 6:42:55 PM UTC-5, Mark S. wrote:
>
> I'm not sure if you meant $:/state/UserName. I went with 
> $:/status/UserName.
>
> TW5 will let you put widgets inside of stylesheet tiddlers. If you put 
> this inside a tiddler tagged as a stylesheet...
>
> <$reveal type="nomatch" state="$:/status/UserName" text="MARK">
>    button[title="Edit this tiddler"] {display:none}
> </$reveal>
>
> It would hide all the tiddler edit buttons as long as the signed-in user 
> didn't match "MARK" (or whatever name you designated). 
>
> Does that get you partway there?
>
> Good hunting!
> Mark
>
> On Sunday, July 9, 2017 at 3:25:45 PM UTC-7, [email protected] wrote:
>>
>>
>> I'm attempting to use TiddlyWiki as a Gaming notebook for my gaming 
>> groups campaign.
>> The DM needs a way to save notes, but 'obscure' some things until he's 
>> ready.
>>
>> First, i'd like to point out that I am unconcerned about multi-user 
>> writing issues, and actual security isn't my goal.
>> We're on a honor system here. clearly if one of my users bypasses the 
>> system,  he's just spoiling the story for himself.
>>
>> My attempt at accomplishing this was 2 fold:
>>
>> for subsections of a tiddler, fall back on a simple <$reveal> against the 
>> $:/state/UserName to make sure it equals the GMs id.
>> I THINK I can even do <$reveal>s against a tag called say.. 'GM Only'..
>>
>> But i'm at a loss for how to stop a player from editing a signed tiddler 
>> unless they are the signer.
>> And hiding a tiddler unless you are the signer.
>>
>> Does anyone know if this is possible?
>> Code is awesome, but even a link to the proper resources would be a great 
>> help.
>>
>>
>>
>>

-- 
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/716ca501-37a2-44d4-9ca9-81ee9b04f645%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to