Register - Login
Views: 95204387
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
09-24-18 05:45:01 AM

Jul - Meta - How I can hide the text like a spoiler? New poll - New thread - New reply
Next newer thread | Next older thread
CruisnEma
Member
Level: 21


Posts: 14/97
EXP: 47059
For next: 2884

Since: 02-01-12


Since last post: 4 days
Last activity: 2 days

Posted on 07-15-13 02:39:33 PM Link | Quote
Please, can you tell me how I can hide the text like a spoiler? I've used the
Spoiler:
spoiler
string but don't work with the images, I have an image that is a bit big, is better hide it. How i can solve?
Xkeeper

Level: 244


Posts: 21054/23358
EXP: 228612994
For next: 1574272

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 2 days
Last activity: 9 hours

Posted on 07-15-13 02:42:05 PM (last edited by Xkitty at 07-15-13 02:42:33 PM) Link | Quote
You can always link to the image instead of displaying it in-line, e.g.


Spoiler:
This is an image link: Jul's logo is here


It's not perfect, but the spoiler stuff needs reworked anyway.


(You'll probably also want to use innocuous text for your link, since the text for that isn't hidden, either. Blah.)
CruisnEma
Member
Level: 21


Posts: 15/97
EXP: 47059
For next: 2884

Since: 02-01-12


Since last post: 4 days
Last activity: 2 days

Posted on 07-15-13 02:52:20 PM Link | Quote
Originally posted by Xkitty
You can always link to the image instead of displaying it in-line, e.g.


Spoiler:
This is an image link: Jul's logo is here


It's not perfect, but the spoiler stuff needs reworked anyway.


(You'll probably also want to use innocuous text for your link, since the text for that isn't hidden, either. Blah.)
Ok, now I try, is only for the exapmle image of my thread, thanks.
StapleButter
Member
Level: 42


Posts: 43/491
EXP: 491103
For next: 30259

Since: 02-24-13

From: your dreams

Since last post: 2 days
Last activity: 1 day

Posted on 07-15-13 04:59:01 PM (last edited by Mega-Mario at 07-15-13 04:59:16 PM) Link | Quote
Or you can try the following:

Spoiler contents go here
Image!


Using CSS hackery to achieve it. Of course, it's a bit complex, but for the one post where you need non-text content hidden, it'll work.
(quote this post to see how it's done)
CruisnEma
Member
Level: 21


Posts: 17/97
EXP: 47059
For next: 2884

Since: 02-01-12


Since last post: 4 days
Last activity: 2 days

Posted on 07-15-13 05:36:09 PM Link | Quote
Originally posted by Mega-Mario
Or you can try the following:

Spoiler contents go here
Image!


Using CSS hackery to achieve it. Of course, it's a bit complex, but for the one post where you need non-text content hidden, it'll work.
(quote this post to see how it's done)

I don't know why, but in your post I see always the content of the spoiler also if I haven't opened it and I can't close it.
StapleButter
Member
Level: 42


Posts: 44/491
EXP: 491103
For next: 30259

Since: 02-24-13

From: your dreams

Since last post: 2 days
Last activity: 1 day

Posted on 07-15-13 05:38:36 PM Link | Quote
You must be using a terrible browser then. I tested it on Firefox, Chrome and IE10 and it worked fine.

Also, if you want to use it more than once, you'll need to find the text 'haxcb' in it and replace it with something different for each instance of the spoiler.
SamEarl13

Nipper Plant
Trying (and failing) to learn Lua.
Level: 40


Posts: 316/419
EXP: 421342
For next: 19967

Since: 02-14-12


Since last post: 189 days
Last activity: 186 days

Posted on 07-17-13 04:44:13 PM Link | Quote
Originally posted by Mega-Mario
Or you can try the following:

Spoiler contents go here
Image!


Using CSS hackery to achieve it. Of course, it's a bit complex, but for the one post where you need non-text content hidden, it'll work.
(quote this post to see how it's done)

Mega-Mario your thing is kinda creepy. The show spoiler button ALWAYS opens the one in your original post even when you quote it like this.
StapleButter
Member
Level: 42


Posts: 47/491
EXP: 491103
For next: 30259

Since: 02-24-13

From: your dreams

Since last post: 2 days
Last activity: 1 day

Posted on 07-17-13 05:20:15 PM Link | Quote
Originally posted by Mega-Mario
Also, if you want to use it more than once, you'll need to find the text 'haxcb' in it and replace it with something different for each instance of the spoiler.

That is why. If you quote my post, all the buttons are going to have the same ID ('haxcb'), causing it to always link to the first spoiler.
Next newer thread | Next older thread
Jul - Meta - How I can hide the text like a spoiler? New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 5d36857 [2018-03-03]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

28 database queries, 4 query cache hits.
Query execution time: 0.152864 seconds
Script execution time: 0.013726 seconds
Total render time: 0.166590 seconds
Memory used: 786432