Advertisement:

Author Topic: Quick Spoiler  (Read 59198 times)

Offline dmask

  • Semi-Newbie
  • *
  • Posts: 30
Re: Quick Spoiler
« Reply #80 on: September 11, 2013, 05:12:57 AM »
hi, is this mod compatible with 2.0.5? :)

Offline Hristo

  • Jr. Member
  • **
  • Posts: 319
  • Gender: Male
Re: Quick Spoiler
« Reply #81 on: September 11, 2013, 09:53:30 AM »
Yes, it works just fine.

Offline dmask

  • Semi-Newbie
  • *
  • Posts: 30
Re: Quick Spoiler
« Reply #82 on: September 12, 2013, 08:52:25 AM »
update the infos then ;)

thx! :)

EDIT:
i can confirm it works on 2.0.5! :)
« Last Edit: September 12, 2013, 09:13:26 AM by dmask »

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,306
  • Gender: Male
    • docsPT
Re: Quick Spoiler
« Reply #83 on: September 16, 2013, 10:25:47 AM »
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.

You can change width with spoiler.css:
Code: [Select]
.sp-wrap {float:left; width: 50%}

Offline Hristo

  • Jr. Member
  • **
  • Posts: 319
  • Gender: Male
Re: Quick Spoiler
« Reply #84 on: September 16, 2013, 01:11:13 PM »
Try with:
Code: [Select]
.sp-wrap {float:left; width: 50%; display: block;}
or

Code: [Select]
.sp-wrap {float:left; width: 50%; display: table;}

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,306
  • Gender: Male
    • docsPT
Re: Quick Spoiler
« Reply #85 on: September 17, 2013, 01:51:51 PM »
Hi, Hristo. Thanks for your help.

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

Offline Hristo

  • Jr. Member
  • **
  • Posts: 319
  • Gender: Male
Re: Quick Spoiler
« Reply #86 on: September 17, 2013, 03:46:50 PM »
Can you provide a link to a sample post on your forum?

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,306
  • Gender: Male
    • docsPT
Re: Quick Spoiler
« Reply #87 on: September 17, 2013, 08:52:42 PM »
Sure, here it is. ;)

Offline Hristo

  • Jr. Member
  • **
  • Posts: 319
  • Gender: Male
Re: Quick Spoiler
« Reply #88 on: September 18, 2013, 06:20:01 AM »
Try one of these (replace your .sp-wrap code)
Code: [Select]
.sp-wrap {
    background-color: #A8E8E8 !important;
    border: 1px solid #CCC !important;
    border-radius: 6px !important;
    display: inline-block;
    margin: 0 auto 4px !important;
}

OR

Code: [Select]
.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;

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,306
  • Gender: Male
    • docsPT
Re: Quick Spoiler
« Reply #89 on: September 19, 2013, 08:36:08 PM »
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.
« Last Edit: September 20, 2013, 10:04:36 AM by FragaCampos »

Offline Hristo

  • Jr. Member
  • **
  • Posts: 319
  • Gender: Male
Re: Quick Spoiler
« Reply #90 on: September 20, 2013, 05:24:23 AM »
Add:
Code: [Select]
width: 98%; this is just an example, you can play with the % value until it suits you.

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,306
  • Gender: Male
    • docsPT
Re: Quick Spoiler
« Reply #91 on: September 20, 2013, 10:04:08 AM »
Perfect!

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

Offline SDMiller

  • Semi-Newbie
  • *
  • Posts: 62
Great Mod... but one error I keep getting...
« Reply #92 on: March 22, 2014, 02:49:11 PM »
Love the spoiler mod!

In QuickSpoiler.english.php

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

Code: [Select]
$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:

Quote
Template 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.

Offline usrfsledge

  • Semi-Newbie
  • *
  • Posts: 30
Re: Quick Spoiler
« Reply #93 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 ?

Offline NekoJonez

  • Full Member
  • ***
  • Posts: 503
  • Gender: Male
  • Stuff
    • @NekoJonez on Twitter
    • My blog
Re: Quick Spoiler
« Reply #94 on: March 23, 2014, 07:41:10 AM »
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

Offline usrfsledge

  • Semi-Newbie
  • *
  • Posts: 30
Re: Quick Spoiler
« Reply #95 on: March 23, 2014, 03:02:43 PM »
thanks for your reply, can you tell me which one you used ?

Offline SDMiller

  • Semi-Newbie
  • *
  • Posts: 62
Re: Quick Spoiler
« Reply #96 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!

=====

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

Thanks.

Offline NekoJonez

  • Full Member
  • ***
  • Posts: 503
  • Gender: Male
  • Stuff
    • @NekoJonez on Twitter
    • My blog
Re: Quick Spoiler
« Reply #97 on: March 24, 2014, 12:36:52 PM »
thanks for your reply, can you tell me which one you used ?

http://custom.simplemachines.org/mods/index.php?mod=195

This one, it's a ton better imo.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Offline usrfsledge

  • Semi-Newbie
  • *
  • Posts: 30
Re: Quick Spoiler
« Reply #98 on: March 25, 2014, 05:03:26 AM »
This one, it's a ton better imo.
Thanks for your reply Neko,
Does that one work out of the box?

@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?


Offline SDMiller

  • Semi-Newbie
  • *
  • Posts: 62
Re: Quick Spoiler
« Reply #99 on: March 25, 2014, 11:14:33 PM »
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