Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^6: Challenge: Hidden Message (click here)

by tye (Sage)
on May 11, 2006 at 18:41 UTC ( #548793=note: print w/replies, xml ) Need Help??


in reply to Re^5: Challenge: Hidden Message (click here)
in thread Challenge: Hidden Message

Yeah, I'd never figure out what that first link does just based on the wording. And why do you assume I'd never want to reveal all of the spoilers in a root node but not in any of the replies? Ah, I see we've got a design conflict between the old design and the new design.

The old "in this node" really means "in this node and all replies to it (and no longer showing the rest of the thread that is currently displayed)", which is why it doesn't apply to the top-most node currently being displayed.

So, if we are going to reveal spoilers individually, I'd abandon much of the old design and make "in this node" really mean "in this node" and not have it change which part of the thread you are viewing. So "in this node" would add that node's ID to the list in ?showspoiler= and the "reveal this spoiler" would add "ID-N" instead and with each click you could reveal another spoiler or another node's-worth of spoilers, or just reveal all spoilers. Something like:

Reveal this spoiler or all spoilers in this thread.
Reveal only this spoiler or all spoilers in this node or in this thread.

All links would use the top-most ID in ?node_id=. "only this spoiler" would have the current ?showspoiler= with ",ID-N" appended. "Reveal this spoiler" and "in this node" would have the current ?showspoiler= with ",ID" appended (and perhaps any "ID-N" for that same node removed). "in this thread" would drop ?showspoiler= and add ?spoil=1.

Make sense?

- tye        

  • Comment on Re^6: Challenge: Hidden Message (click here)

Replies are listed 'Best First'.
Re^7: Challenge: Hidden Message (click here)
by demerphq (Chancellor) on May 11, 2006 at 18:51 UTC

    Ah, I see we've got a design conflict between the old design and the new design.

    Yep, thats it in a nutshell. :-)

    Make sense?

    I think so. To recap the essence: make showspoiler additive in some situations, make showspoiler handle ID as well as ID-N, with the former meaning 'for all N'. Introduce new links and reorganize.

    Oh, I like it by the way. Except maybe the last two links, i wonder if they should only show up once per node, probably on the first spoiler.

    ---
    $world=~s/war/peace/g

      Yes, extra links only on the first spoiler would probably be good.

      - tye        

        Is it about right now? And i assume we are trying to minimize calls to linkNode()? Thats why we are doing the tricks with s///? (I have a weird feeling I should be asking myself that :-)

        ---
        $world=~s/war/peace/g

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://548793]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2020-09-21 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (124 votes). Check out past polls.

    Notices?