log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Drag'N'Drop Autumn edition now available (News:)
- !DualHead puts 2 screens in one (News:)
- RISC OS London Show 2017 - Notes from the talks (News:6)
- November News (News:)
- !Organizer 2.28 reviewed (News:2)
- !OBrowse reviewed (News:10)
- Aemulor (Gen:16)
- DDE reaches release 28 and above (News:)
- Elesar quicks dispels stormy clouds (News:2)
- RISC OS London Show 2017 (News:)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
Site Search
 
Article archives
The Icon Bar: Test posts: Spoiler tag
 
  Spoiler tag
  rich (21:15 7/7/2009)
  tribbles (08:36 8/7/2009)
    rich (09:03 8/7/2009)
      tribbles (09:11 8/7/2009)
        rich (09:20 8/7/2009)
          rich (09:24 8/7/2009)
          tribbles (09:28 8/7/2009)
            rich (09:40 8/7/2009)
              tribbles (10:03 8/7/2009)
                rich (10:11 8/7/2009)
                  tribbles (10:18 8/7/2009)
                    rich (10:45 8/7/2009)
                      monkeyson2 (22:13 8/7/2009)
                        Phlamethrower (22:26 8/7/2009)
                          rich (23:13 8/7/2009)
                            tribbles (07:52 9/7/2009)
                              monkeyson2 (08:50 9/7/2009)
                                Phlamethrower (10:39 9/7/2009)
                                  rich (14:30 9/7/2009)
                            richcheng (08:47 9/7/2009)
  monkeyson2 (09:33 8/7/2009)
 
Richard Goodwin Message #110506, posted by rich at 21:15, 7/7/2009
Rich
Webmaster
The Icon Bar

Posts: 6765
Spoiler
We Are Coming


[ spoiler ] your text here [ /spoiler ]
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Jason Tribbeck Message #110514, posted by tribbles at 08:36, 8/7/2009, in reply to message #110506
tribbles
Captain Helix

Posts: 929
Spoiler
Oh, so you're just using black backgrounds then. What about people who use Lynx?


Spoiler
Or smileys smile
  ^[ Log in to reply ]
 
Richard Goodwin Message #110515, posted by rich at 09:03, 8/7/2009, in reply to message #110514
Rich
Webmaster
The Icon Bar

Posts: 6765
We've been all through this - there's no perfect solution for making a spoiler tag that works on all browsers. Frankly, Lynx users are not our core audience.

Smileys are graphics. If you don't want them to show, don't use them.

I'm struggling to think of a solution that *would* work on Lynx that doesn't involve removing text altogether and putting them on a completely different page, which is not convenient for people with proper browsers.

Personally I don't want to use a table and font tag combo to implement it, the standards police will have more to say about that I'm sure - a div tag would have been a much nicer solution. But it wouldn't necessarily have blocked the text in browsers people actually use in numbers on this site.
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Jason Tribbeck Message #110516, posted by tribbles at 09:11, 8/7/2009, in reply to message #110515
tribbles
Captain Helix

Posts: 929
Spoiler
We've been all through this - there's no perfect solution for making a spoiler tag that works on all browsers. Frankly, Lynx users are not our core audience.

Smileys are graphics. If you don't want them to show, don't use them.


True; I probably would've used CSS to hide it, and then Javascript to reveal it, but that would be even less browser-agnostic.

Pity you can't spoiler a quote though smile
  ^[ Log in to reply ]
 
Richard Goodwin Message #110517, posted by rich at 09:20, 8/7/2009, in reply to message #110516
Rich
Webmaster
The Icon Bar

Posts: 6765
True; I probably would've used CSS to hide it, and then Javascript to reveal it, but that would be even less browser-agnostic.
Exactly - most RISC OS browsers don't have CSS, or Javascript, or both. And this is, to some extent, a RISC OS website.

Pity you can't spoiler a quote though smile
You can, but that's CSS changing the quote smile Fixable, if necessary.

More to the point, do you need to?
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Richard Goodwin Message #110518, posted by rich at 09:24, 8/7/2009, in reply to message #110517
Rich
Webmaster
The Icon Bar

Posts: 6765
Spoiler

Spoiler, with nested quote
He dies at the end you know

________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Jason Tribbeck Message #110519, posted by tribbles at 09:28, 8/7/2009, in reply to message #110517
tribbles
Captain Helix

Posts: 929

Pity you can't spoiler a quote though smile
You can, but that's CSS changing the quote smile Fixable, if necessary.

More to the point, do you need to?
No, probably not. I just like pushing the boundaries of things and seeing how far they bend smile

[Edited by tribbles at 10:29, 8/7/2009]
  ^[ Log in to reply ]
 
Phil Mellor Message #110520, posted by monkeyson2 at 09:33, 8/7/2009, in reply to message #110506
monkeyson2Please don't let them make me be a monkey butler

Posts: 12380
Spoiler
Quoting spoilers

Spoiler
Quoting spoilers
Spoiler
Quoting spoilers
Spoiler
Quoting spoilers
Spoiler
Quoting spoilers
grin
  ^[ Log in to reply ]
 
Richard Goodwin Message #110521, posted by rich at 09:40, 8/7/2009, in reply to message #110519
Rich
Webmaster
The Icon Bar

Posts: 6765

Pity you can't spoiler a quote though smile
You can, but that's CSS changing the quote smile Fixable, if necessary.

More to the point, do you need to?
No, probably not. I just like pushing the boundaries of things and seeing how far they bend smile
There might be circumstances where a spoiler is a quote from somewhere else I guess, so I've fixed the CSS.

The caveat is that I've just fixed ".spoiler a" to be black, where the nested quotes are different greys; plus, some browsers might need ".spoiler a:something" to fully fix it. But it works in Firefox, which is what I have to test it in.

I'm sure there are other CSS issues that need overriding, but I can't be arsed.

Ponders: if I make spoilers have an "a name" tag, can I use a:hover to reveal...? Then again, you'd probably need a different name for each spoiler tag, and if there's multiple spoilers in a post, there's no nice way of doing that: I was considering just the id of the post. Maybe a random number on the end... and a letter at the start because you can't have things starting in numbers, or is that just when you're using javascript?

Sounds like a lot of faff actually.
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Jason Tribbeck Message #110522, posted by tribbles at 10:03, 8/7/2009, in reply to message #110521
tribbles
Captain Helix

Posts: 929
Or you could do it server-side, and have a button "Show me the spoilers" - that would even work on Lynx smile
  ^[ Log in to reply ]
 
Richard Goodwin Message #110523, posted by rich at 10:11, 8/7/2009, in reply to message #110522
Rich
Webmaster
The Icon Bar

Posts: 6765
Or you could do it server-side, and have a button "Show me the spoilers" - that would even work on Lynx smile
I already said...
I'm struggling to think of a solution that *would* work on Lynx that doesn't involve removing text altogether and putting them on a completely different page, which is not convenient for people with proper browsers.

________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Jason Tribbeck Message #110524, posted by tribbles at 10:18, 8/7/2009, in reply to message #110523
tribbles
Captain Helix

Posts: 929
D'oh!

How about AJAX for more modern browsers to fetch the spoiler messages and fill it in; for earlier browsers, it becomes a link.

Or are you claiming to incorporate that in your earlier message? grin

[Edited by tribbles at 11:19, 8/7/2009]
  ^[ Log in to reply ]
 
Richard Goodwin Message #110525, posted by rich at 10:45, 8/7/2009, in reply to message #110524
Rich
Webmaster
The Icon Bar

Posts: 6765
D'oh!

How about AJAX for more modern browsers to fetch the spoiler messages and fill it in; for earlier browsers, it becomes a link.

Or are you claiming to incorporate that in your earlier message? grin
I'm confused why you think I should do any of this at all now I've already got a working solution, just to support a browser I've already said I'm not bothered about?

The standard thing people do is change the colour of the text. Clicking a button to reveal it is nice, sure, but I don't think anyone goes to the trouble of doing AJAX fetches. It's a sledgehammer to crack a nut.

When all's said and done, even screenreaders for the blind will say "Spoiler" before getting to the text. If you don't want spoilers, don't read on.
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Phil Mellor Message #110536, posted by monkeyson2 at 22:13, 8/7/2009, in reply to message #110525
monkeyson2Please don't let them make me be a monkey butler

Posts: 12380
Hmm. I have discovered a flaw: you can't read spoilers using an iPhone.
  ^[ Log in to reply ]
 
Jeffrey Lee Message #110537, posted by Phlamethrower at 22:26, 8/7/2009, in reply to message #110536
PhlamethrowerHot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff

Posts: 15057
Hmm. I have discovered a flaw: you can't read spoilers using an iPhone.
That's a flaw with your iPhone, not with the spoiler system wink
  ^[ Log in to reply ]
 
Richard Goodwin Message #110538, posted by rich at 23:13, 8/7/2009, in reply to message #110537
Rich
Webmaster
The Icon Bar

Posts: 6765
Hmm. I have discovered a flaw: you can't read spoilers using an iPhone.
That's a flaw with your iPhone, not with the spoiler system wink
It's quite simple - just select some text, like you would for cutting and pasting. Oh, wait... wink

I'm sure someone will write an app for it.

After all, most of the apps seems to be reworkings of either web pages, or the calculator*.

* based purely on that stupid advert
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Jason Tribbeck Message #110539, posted by tribbles at 07:52, 9/7/2009, in reply to message #110538
tribbles
Captain Helix

Posts: 929
Hmm. I have discovered a flaw: you can't read spoilers using an iPhone.
That's a flaw with your iPhone, not with the spoiler system wink
It's quite simple - just select some text, like you would for cutting and pasting. Oh, wait... wink
Actually, that does basically work on OS 3.x - select the area around the spoiler, go to Notes and then paste it...
  ^[ Log in to reply ]
 
richard cheng Message #110540, posted by richcheng at 08:47, 9/7/2009, in reply to message #110538

Posts: 653
After all, most of the apps seems to be reworkings of either web pages, or the calculator*.
I am sorely tempted to write an Icon Bar app, now.
  ^[ Log in to reply ]
 
Phil Mellor Message #110542, posted by monkeyson2 at 08:50, 9/7/2009, in reply to message #110539
monkeyson2Please don't let them make me be a monkey butler

Posts: 12380
Hmm. I have discovered a flaw: you can't read spoilers using an iPhone.
That's a flaw with your iPhone, not with the spoiler system wink
It's quite simple - just select some text, like you would for cutting and pasting. Oh, wait... wink
Actually, that does basically work on OS 3.x - select the area around the spoiler, go to Notes and then paste it...
Yay!

Or, to avoid switching apps, I can paste it into a new message or the search box. For some reason I was thinking it would copy the black-on-black formatting as well, but obviously that wouldn't happen in many situations.
  ^[ Log in to reply ]
 
Jeffrey Lee Message #110543, posted by Phlamethrower at 10:39, 9/7/2009, in reply to message #110542
PhlamethrowerHot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff

Posts: 15057
Or, to avoid switching apps, I can paste it into a new message or the search box. For some reason I was thinking it would copy the black-on-black formatting as well, but obviously that wouldn't happen in many situations.
Or for the OS 2.x compatible way, hit the 'reply and quote' link and read it there.
  ^[ Log in to reply ]
 
Richard Goodwin Message #110545, posted by rich at 14:30, 9/7/2009, in reply to message #110543
Rich
Webmaster
The Icon Bar

Posts: 6765
Or, to avoid switching apps, I can paste it into a new message or the search box. For some reason I was thinking it would copy the black-on-black formatting as well, but obviously that wouldn't happen in many situations.
Or for the OS 2.x compatible way, hit the 'reply and quote' link and read it there.
There is that - so that quoting worked I had to add the code as a sort of last-minute processing so that the spoiler tags were retained everywhere except the final HTML (otherwise, the system blocks things like table tags in posts).

In fact the reply page has a function for last minute display changes*, so I had to implement it a second time, but if I reset the reply page you would see the spoiler in-situ.

Hmm, that's almost a "spoiler on another page" thing Jason wanted - apart from the removing it from the main page which would be silly smile

As for writing a TIB App, it would probably be easier to just figure out the magic combination of JS and CSS that would allow you to click on the -- Spoiler ----- legend and change the text colour of this.foo to white (as opposed to the background colour of several classes).

* Why doesn't the view thread page use the same processing function as the reply page, you say? Probably because it does things to the reply version that would bugger up the view thread page, although it might be possible to bang it into shape.
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 

The Icon Bar: Test posts: Spoiler tag