Advertisement:

Author Topic: Quick Spoiler  (Read 55155 times)

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,479
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Quick Spoiler
« on: October 13, 2011, 09:51:33 AM »
Link to Mod

Simple and beautiful jQuery spoiler, with custom title.

Example with default title:
Code: [Select]
[spoiler] ...your text... [/spoiler]
Example with custom title:
Code: [Select]
[spoiler=any title] ...your text... [/spoiler]
This work is licensed under a CC BY-SA 4.0

Russian Support
« Last Edit: January 11, 2015, 11:35:17 PM by Bugo »

Offline ddabcd277

  • Jr. Member
  • **
  • Posts: 161
  • Gender: Male
    • Garmin GPS Club
Re: Quick Spoiler
« Reply #1 on: October 13, 2011, 04:17:07 PM »
Cool! Just install it!  :)

Offline becometa

  • Jr. Member
  • **
  • Posts: 113
Re: Quick Spoiler
« Reply #2 on: October 13, 2011, 04:37:10 PM »
Great! Is there any chance to parse_bbc trough the spoiler name?
Definitely on my must-have mod list :)

@edit:

there's some problem with the SteamProfile Ajax Mod, after enabling the QuickSpoiler, the steamprofile part dissapear in topic view
« Last Edit: October 13, 2011, 05:04:22 PM by becometa »

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,479
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #3 on: October 13, 2011, 10:56:38 PM »
Thanks for report. But I can't guarantee compatibility with all existing mods.
« Last Edit: October 13, 2011, 11:03:14 PM by Bugo »

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,895
  • Gender: Male
Re: Quick Spoiler
« Reply #4 on: October 14, 2011, 04:20:46 AM »
Great mod! This is one of the best spoiler mods for SMF that I have ever seen.

Offline ddabcd277

  • Jr. Member
  • **
  • Posts: 161
  • Gender: Male
    • Garmin GPS Club
Re: Quick Spoiler
« Reply #5 on: October 15, 2011, 01:40:43 PM »
Have a question is it possible the mod not to apply to the images in the signatures. 

Many thanks,

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,479
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #6 on: October 15, 2011, 02:05:39 PM »
Replace "$('body')" with "$('div.post')" in spoiler.js. Or disable "FancyBox plugin" in settings.

Offline ddabcd277

  • Jr. Member
  • **
  • Posts: 161
  • Gender: Male
    • Garmin GPS Club
Re: Quick Spoiler
« Reply #7 on: October 16, 2011, 04:16:45 PM »
Quote
Replace "$('body')" with "$('div.post')" in spoiler.js
When I did that some weird numbers appeared in the signatures on the place of the image in my test forum :-\:



Ok, thit is not a big problem. Maybe I will just disable the FancyBox in the settings. :)

Many thanks,

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,479
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #8 on: October 16, 2011, 04:51:04 PM »
Or try replace "img" tag with "img2" tag (in Subs-QuickSpoiler.php) to use img2 tag for images within spoilers.

Offline GraphicJunki

  • Semi-Newbie
  • *
  • Posts: 31
    • @Graphicjunki on Twitter
    • GraphicJunki
Re: Quick Spoiler
« Reply #9 on: November 21, 2011, 09:14:26 PM »
I having same problem with this mod its not displaying images in fancy box
please If anyone can throw any light on this for me It would be much appreciated  :)

Offline MarChelo

  • Semi-Newbie
  • *
  • Posts: 24
Re: Quick Spoiler
« Reply #10 on: December 19, 2011, 07:52:48 AM »
After install this mod, my forum has been broken. Im tryint to contact Bugo. :S

Offline kent[ka]

  • Semi-Newbie
  • *
  • Posts: 27
Re: Quick Spoiler
« Reply #11 on: December 23, 2011, 01:18:12 AM »
Why it just show a black button and not  "Show" text inside it when stuff is on hide and "hide" inside it when stuff is being showed. Bug? Just me?
 
And always this symbol ":" so if i add text it would be --> text: black button

without text   : black button

Also, when i use spoiler for small things, it still is huge, don't read the size of stuff, so the borders still show the huge size, good thing is transparent, but any way to fix/change the things i said above?

My forum http://blizzforge.com in case you want to see it, in homepage is a good example. Thanks, out of that all is good.

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,479
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #12 on: December 23, 2011, 02:57:47 AM »
Can I see a full list of installed mods on your forum?

Offline kent[ka]

  • Semi-Newbie
  • *
  • Posts: 27
Re: Quick Spoiler
« Reply #13 on: December 27, 2011, 05:58:43 AM »
Akismet Spam Blocking
Remember position after login/logout v1.0.3
[user] BBC Tag
Default Avatar
Move Topic Notification
Activity in profile -- Will be uninstalled soon
Advanced Login Form
Code Highlighting
Inline Attackments
PM Readed
Menu_Icons -- Will be uninstalled soon
VB Style Board Index
Board Viewers Mod - Will be uninstalled soon
Downloads System
Adk Blog
Smart Pagination
Quick Spoiler
Join date and Location in Posts
TinyPortal
Resize Attached Images
Youtube BBCode
Karma Description Mod
cbi 1.0
Activity_Bar -- Will be uninstalled soon
Ignore Board In New Posts
Member Awards
Slashout Banned Members -- Will be uninstalled soon
RSS Feed Icon
Relative Dates Language Pack -- Will be uninstalled soon

Well, also marked the ones that will be removed soon, just in case one of those are causing trobules.
Thanks for posting, i will be around looking for your answer.

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,479
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #14 on: December 27, 2011, 07:22:39 AM »
Quick Spoiler adds next code:
Code: [Select]
<div class="sp-wrap"><div class="sp-head folded clickable"> { Spoiler Title } </div><div title="" class="sp-body"> { Text }</div></div>

But you have this:
Code: [Select]
<div style="margin:20px; margin-top:5px"><div style="margin-bottom:2px" class="smallfont"><b></b> &nbsp;<i></i>: <input type="button" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; &nbsp; &nbsp; &nbsp; &nbsp;this.innerText = ''; this.value = ''; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ''; }" style="width:60px;font-size:10px;margin:0px;padding:0px;" value="" sourceindex="5"></div><div style="margin: 0px; padding: 6px; border: 1px inset;" class="alt2"><div style="display: none;"> { Text } </div></div></div>

Did you install any other spoilers before?

Offline kent[ka]

  • Semi-Newbie
  • *
  • Posts: 27
Re: Quick Spoiler
« Reply #15 on: December 28, 2011, 04:51:40 PM »
Yes i did, and removed because it was bad. What can i do to fix it? Also, does yours will read size?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,479
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #16 on: December 28, 2011, 05:53:58 PM »
You have to remove all code that added by other spoiler mod. Ask author of spoiler mod about this.

Offline kent[ka]

  • Semi-Newbie
  • *
  • Posts: 27
Re: Quick Spoiler
« Reply #17 on: December 28, 2011, 08:07:35 PM »
kk, i will see what i can do. Thanks for all the reply's But i still would like to know if it will read size, because no matter what i put inside, there is always this big frame.

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,479
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #18 on: December 28, 2011, 09:42:50 PM »
You can change width with spoiler.css:
Code: [Select]
.sp-wrap {float:left; width: 50%}

Offline ddabcd277

  • Jr. Member
  • **
  • Posts: 161
  • Gender: Male
    • Garmin GPS Club
Re: Quick Spoiler
« Reply #19 on: January 01, 2012, 08:48:16 PM »
Hello Bugo and Happy new Year,

Want to report that in the latest version of Quick Spoiler 0.99 the Fancy Box is not working. There is problem in Subs-QuickSpoiler.php. Can't figure out where but on my forum it is not working. I have your first version 0.72 and no problem with the Fancybox in it.  Hope you fix it soon. :)