Notings of Attention™
Acmlmboard 2 Released
Github/GIT | @acmlmboard
Chatting Places
Discord

Affiliates
Super Mario Bros. X | Kuribo64 | NeoRHDN
Views: 11,051,185
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Stats | Ranks | Online users | Search
11-24-24 12:15 AM
Guest: Register | Login

0 users currently in AcmlmBoard II Software/Bug Report Forum | 5 bots

Main - AcmlmBoard II Software/Bug Report Forum - spoiler unreadable (6)
Next newer thread | Next older thread

Pages: 1 2

Kiyoshi
Posted on 01-19-12 03:17 PM, in Link | ID: 3423
Normal User
HEY HEY HEY STAY OUTTA MAH SHED
Level: 65


Posts: 262/1016
EXP: 2222325
Next: 113303

Since: 01-02-12

Last post: 4597 days
Last view: 4568 days
I still prefer the ABXD-style buttons.

____________________
I don't give a flying feather

Nadia
Posted on 01-19-12 03:58 PM, in Link | ID: 3428
Normal User
Axew
Axew
Level: 23


Posts: 12/93
EXP: 61526
Next: 6197

Since: 01-05-12
From: Denmark

Last post: 2355 days
Last view: 1273 days
Posted by GreyMaria
What the fuck? Just found a peculiarity with that: the checkbox works on a per-instance basis, but the label attached to the checkbox only works for the first checkbox.

What the fuck is this sorcery.
That is because of the for attribute on that label. It is set to point to the checkbox in my post, which is the first checkbox of the page to have that ID set to it.

Kawa
Posted on 01-19-12 05:22 PM, in Link | ID: 3436
Retired Staff

Not okay
Prophet of Celestia
Level: 94


Posts: 178/2423
EXP: 8185504
Next: 171153

Since: 01-01-12
From: The Netherlands

Last post: 2240 days
Last view: 555 days
<label><input type="checkbox"> Foo!</label>

For is overrated and only useful if you have, for example, the label and the input in two different parent elements -- like AcmlmBoards do.


Nadia
Posted on 01-20-12 08:26 AM, in Link | ID: 3523
Normal User
Axew
Axew
Level: 23


Posts: 13/93
EXP: 61526
Next: 6197

Since: 01-05-12
From: Denmark

Last post: 2355 days
Last view: 1273 days
Posted by Kawa
<label><input type="checkbox"> Foo!</label>

For is overrated and only useful if you have, for example, the label and the input in two different parent elements -- like AcmlmBoards do.
Though, how do you detect if the checkbox is checked with CSS in this way without putting the toggled content -inside- the label, which would be bad?

Kawa
Posted on 01-20-12 05:37 PM, in Link | ID: 3562
Retired Staff

Not okay
Prophet of Celestia
Level: 94


Posts: 189/2423
EXP: 8185504
Next: 171153

Since: 01-01-12
From: The Netherlands

Last post: 2240 days
Last view: 555 days
I guess that's another thing it's useful for, then. No biggie.


Scrydan
Posted on 11-02-12 05:53 AM, in Link | ID: 28586
Normal User
Scryforce - A place that still exists. Neat.
Level: 86


Posts: 1125/2020
EXP: 6098253
Next: 43854

Since: 07-18-12
From: USA

Last post: 984 days
Last view: 967 days
Sorry for the sudden revival of many of these old threads but I am going through them all so we can put to rest any and all issues. I aim to get things done.

As for this issue, I plan to use my own board's spoiler (which is courtesy of @GlitchMr.)
It works well enough and it works on my phone's browser. We'll have to do some testing when 2.6 pops up for a test spin.

GlitchMr
Posted on 11-02-12 07:01 PM, in Link | ID: 28597
Normal User

Goomba

Level: 13


Posts: 12/27
EXP: 9419
Next: 848

Since: 07-22-12

Last post: 3915 days
Last view: 3915 days
My spoiler was really lame, but I guess I won't stop you from using it on this board too ;). Also, it works on my phone web browser (it's just simple JavaScript). But hey, it's more likely that browser has JavaScript with DOM than :checked CSS3 property.

XerX
Posted on 03-15-15 07:52 PM, in (rev. 3 of 03-15-15 08:20 PM by XerX) Link | ID: 82965
Normal User


Level: 19


Posts: 3/69
EXP: 35225
Next: 552

Since: 07-22-14

Last post: 3512 days
Last view: 3097 days
I don't mean to bump an old topic, but you could do this for the spoilers. It works fine when I tested it.

Anywhere in post.php (preferebly before the bbcodes to easily find it)

echo '<script type="text/javascript">
function showSpoiler(obj)
{
var inner = obj.parentNode.getElementsByTagName("div")[0];
if (inner.style.display == "none")
inner.style.display = "";
else
inner.style.display = "none";
}
</script>';


Then replace the spoiler bbcode with this line.


$msg=str_replace('[spoiler]','<div class="spoiler"><input type="button" onclick="showSpoiler(this);" value="Spoiler" /><div class="inner" style="display:none;">',$msg);


Then go to your boards css folder and add this to whatever themes you wish. (It's not required, but it will make it look nice. :) )

// Spoiler styling. input is the button and .inner is the container.
.spoiler
{
padding:1px;
}
input[type=button]
{
padding:1px;
background: #020202;
}
input[type=button]:hover
{
padding:1px;
background: #ff2EFF;
}
.spoiler .inner
{
border:1px solid #eee;
background: rgba(0,0,0,0.85);
padding:10px;margin:3px;
}


Hope this helps.
Pages: 1 2


Next newer thread | Next older thread
Main - AcmlmBoard II Software/Bug Report Forum - spoiler unreadable (6)


Acmlmboard v2.5.6 (06/11/2024)
© 2005-2024 Acmlm, Emuz, et al.

Page rendered in 0.052 seconds. (805KB of memory used)
MySQL - queries: 112, rows: 513/548, time: 0.040 seconds.