Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Challenge: Hidden Message

by demerphq (Chancellor)
on May 11, 2006 at 02:42 UTC ( #548617=note: print w/replies, xml ) Need Help??


in reply to Re: Challenge: Hidden Message
in thread Challenge: Hidden Message

It probably wouldnt be too hard to make it possible to selectively display different spoilers. We already have logic along those lines for handling download links so there is at least a starting point.

Update: And I was right, it wasn't hard. Case closed. :-)

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

Replies are listed 'Best First'.
Re^3: Challenge: Hidden Message
by ysth (Canon) on May 11, 2006 at 12:25 UTC
    First time round, I completely overlooked that "Reveal" was a link; how about making it "Reveal this spoiler or spoilers on this page."?

      Your css doesnt highlight links eh? Heh.

      I completely overlooked that "Reveal" was a link; how about making it "Reveal this spoiler or spoilers on this page."?

      My main objection to this is it doesnt work that nicely when you have "reveal this spoiler or all spoilers in this node or all spoilers on this page"... Although "objection" is definately too strong a word... The truth was the patch was a quickie and doing it the way I did required the least finagling the markup. :-)

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

      [...|this]--. [...|this spoiler] would be better, but it still obfuscates what the link does ([...|Reveal spoilers] would be even better, but doesn't address the possible desire to have a link that reveals just one spoiler). After noting that there was a patch, I expected to see three links when a node had multiple spoilers (not that I'm convinced that such would or wouldn't be a good idea). I don't have a suggestion, I just wanted to strongly discourage making links labeled "this", which is only slightly better than links labeled "click here".

      - tye        

        I expected to see three links when a node had multiple spoilers

        You will see three links, but only in a reply displayed when viewing another node. In that case youll see

        The in this node part disappears when the node being rendered is also the focus of the page. For instance if you make Challenge: Hidden Message the focus you'll see that the reply by Unanimous Monk has the links above. But when you make it the focus one link disappears.

        BTW, you can also make links that expose multiple specific spoilers at once.

        As a side note, ive been thinking that the 'in this node' link really belongs in the "per node links" that are normally on the right, and the "on this page" link should go at the bottom. Then the only link that would remain would be the single mode, so then we could say "Reveal this spoiler" all the time. Which I guess means using HTMLVARS, sigh.

        ---
        $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://548617]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2019-10-16 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?