Quick Spoiler

Started by Bugo, October 13, 2011, 09:51:33 AM

Previous topic - Next topic

dmask

hi, is this mod compatible with 2.0.5? :)

Hristo

Yes, it works just fine.

dmask

#82
update the infos then ;)

thx! :)

EDIT:
i can confirm it works on 2.0.5! :)

FragaCampos

I was looking to change the width of the header and spoiler box, and I used this code bit. It workd fine, but there's a small problem...
If there's an image below spoiler block and I change the width to 70em, for example, the image appears in front of the spoiler block, and not below. How can I avoid this?
Thanks.

Quote from: Bugo on December 28, 2011, 09:42:50 PM
You can change width with spoiler.css:

.sp-wrap {float:left; width: 50%}


Hristo

Try with:
.sp-wrap {float:left; width: 50%; display: block;}

or

.sp-wrap {float:left; width: 50%; display: table;}

FragaCampos

Hi, Hristo. Thanks for your help.

I tried both suggestions, but unfortunately the problem persists...

Hristo

Can you provide a link to a sample post on your forum?

FragaCampos


Hristo

Try one of these (replace your .sp-wrap code)
.sp-wrap {
    background-color: #A8E8E8 !important;
    border: 1px solid #CCC !important;
    border-radius: 6px !important;
    display: inline-block;
    margin: 0 auto 4px !important;
}


OR

.sp-wrap {
    background-color: #A8E8E8 !important;
    border: 1px solid #CCC !important;
    border-radius: 6px !important;
    display: block;
    margin: 0 auto 4px !important;
}


Do you want the spoiler to be in the center (judging by margin: 0 auto 4px !important;)? Then use the second code and set some width, like width: 50%; If not just use margin: 0 0 4px

The problem was caused by the float: left;

FragaCampos

#89
Thanks again, Hristo.

The first code works fine, the second doesn't.
Still, the first bit of code gives me a small bar. How do I change the size of it?

It gets a cool effect. The top bar gets small, but when you open the spoiler, it opens the entire box. Neat.

Hristo

Add: width: 98%; this is just an example, you can play with the % value until it suits you.

FragaCampos

Perfect!

Thank you very much for you your time and patience, Hristo. You've made this mod even nicer.
See you around. ;)

SDMiller

Love the spoiler mod!

In QuickSpoiler.english.php

I tried to switch
$txt['qs_no_spoiler_sorry'] = 'Sorry you are not allowed to view spoiler contents.';

to

$txt['qs_no_spoiler_sorry'] = 'Only registered users are allowed to view spoiler contents.';

But doing this crashes the server, and causes this error page to display in its place:

QuoteTemplate Pares Error!
It seems something has gone sour on the forum with the template system. This problem should be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.

Hmm... why would such a small text change in the QuickSpoiler.english.php crunch the whole server.

Fortunately, it was quickly fixed by simply uploading the original QuickSpoiler.english.php to the server.

Thinking maybe it was a coincidence, I changed it again, and unfortunately it consistently and reproducibly crunches the server.

What am I doing wrong?

Thanks.

usrfsledge

I can't get it to work on 2.0.7

It installs okay, looks like it's working creating a post, but it hides a little bit too good. You can't show it  ;D
Looks like a problem with the jquery.

Any clues ?

NekoJonez

Quote from: usrfsledge on March 22, 2014, 07:46:29 PM
I can't get it to work on 2.0.7

It installs okay, looks like it's working creating a post, but it hides a little bit too good. You can't show it  ;D
Looks like a problem with the jquery.

Any clues ?
Same,  I changed to another mod that works.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

usrfsledge

thanks for your reply, can you tell me which one you used ?

SDMiller

@usrfsledge and NekoJonez,

My server runs 2.0.7 and this mod works beautifully. Maybe you have the permissions set funny.

Good luck!

=====

My post was asking how to modify the "sorry" message. Still looking for a knowledgable reply.

Thanks.

NekoJonez

Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

usrfsledge

Quote from: NekoJonez on March 24, 2014, 12:36:52 PM
This one, it's a ton better imo.
Thanks for your reply Neko,
Does that one work out of the box?

Quote from: SDMiller on March 23, 2014, 03:18:27 PM
@usrfsledge and NekoJonez,
My server runs 2.0.7 and this mod works beautifully. Maybe you have the permissions set funny.
Good luck!

Thanks for your reply SDMiller. I can't imagine anything now, but I'll have a look. Do you have any direction?


SDMiller

Quote from: usrfsledge on March 25, 2014, 05:03:26 AM
Thanks for your reply SDMiller. I can't imagine anything now, but I'll have a look. Do you have any direction?

Erm. I wish I could be helpful, but it works perfectly on my forum... so I can't really offer any specific advice how to get it working.

I installed it in the usual fashion:
1. Downloaded the zip to my computer.
2. Package Manager/Download Packages/Package to Upload/Choose File
3. Install
4. Activate

Boom, it works. You can see it in action here.

What's beautifully simple about the mod is you can put ANYTHING between the tags, and it will be hidden until clicked... images, audio, videos, juggling monkeys (if you have that plug-in).   ;)

It's really impressive. I can't image how another similar mod could be better.

My two cents, hope its helpful.

;D

Advertisement: