vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - JQuery-animated Spoiler BBCode (https://vborg.vbsupport.ru/showthread.php?t=256107)

JacquiiDesigns 12-28-2010 10:00 PM

JQuery-animated Spoiler BBCode
 
1 Attachment(s)
I've looked for a spoiler bbcode here at vB.org and did not find any to suit my need. So...

Brought to you by JacquiiDesigns.com - Here is a really nice spoiler bbcode that's animated with jquery. See a live example at BBCode Test: JPiC Forum For Writers

Directions are simple as sugar-free apple pie:
  1. Upload both "spoiler" and "images" folders to your forum root directory
  2. Add Custom BB Code via your AdminCP: AdminCP ==> Custom BB Codes ==> Add New BB Code

Input the following info in your BB Code Manager:
  • Title: Spoiler Tag

  • BB Code Tag Name: spoiler

  • Replacement:
    HTML Code:

    <link rel="stylesheet" type="text/css" href="http://your_forum_url/forum/spoiler/spoiler.css" />

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){

            $(".toggle_container").hide();

            $("h2.trigger").click(function(){
                    $(this).toggleClass("active").next().slideToggle("slow");
                    return false;
            });

    });
    </script>

    <h2 class="trigger"><a href="#">Click To Show/Hide Hidden Content</a></h2>
    <div class="toggle_container">
            <div class="block">
                    {param}
            </div>
    </div>

  • Example: [spoiler]See? This is hidden text![/spoiler]

  • Description: This creates a hide/show spoiler tag that is hidden by default. Once the bar is clicked, the hidden contents will be shown.

  • Use {option}: No

  • Button Image: images/editor/spoiler.png

---------------
---------------

See example at http://jpicforum.info/forum/recycle-...html#post35010

PLEASE NOTE:
You'll need to edit in the replacement code your_forum_url/forum/ to be your own forum url.
If your forum url is http://www.mysite.com/forum/ -- then edit your replacement code to www.mysite.com/forum/

Boofo 12-29-2010 06:49 AM

I'll give it a shot. ;)

JacquiiDesigns 12-29-2010 09:27 AM

Quote:

Originally Posted by Boofo (Post 2140556)
I'll give it a shot. ;)

((Gasp!))
I'm used to using your modifications - it's strangely awesome that you'd use something I share = Enjoy! :)

FreshFroot 12-29-2010 11:21 PM

Nice stuff Jacquii.

Like your spoiler version a lot and it usses jquery too :D

Thanks a bunch!

JacquiiDesigns 12-29-2010 11:42 PM

Quote:

Originally Posted by FreshFroot (Post 2141042)
Nice stuff Jacquii.

Like your spoiler version a lot and it usses jquery too :D

Thanks a bunch!

You're very welcome Fresh = Enjoy ;)

EddyMaxx 12-29-2010 11:43 PM

Thanks this is great.

KW802 12-30-2010 01:17 AM

Jacquii, that is quite a nice looking spoiler tag! :cool:

JacquiiDesigns 12-30-2010 09:25 AM

Yeah - I like it.
I saw some others posted here - but none had the smooth transition as I liked - so I went hunting ==> thought I'd share :)

Ya'll enjoy.

wat3v3r 01-02-2011 05:22 AM

Haha i tried this on our forums and a very strange thing happened when i installed it. Whenever someone clicked on it to view the spoiler, it would show and hide, show and hide the message for like 5-6 times on it's own and then just hide back xD

JacquiiDesigns 01-02-2011 10:26 PM

Quote:

Originally Posted by wat3v3r (Post 2142629)
Haha i tried this on our forums and a very strange thing happened when i installed it. Whenever someone clicked on it to view the spoiler, it would show and hide, show and hide the message for like 5-6 times on it's own and then just hide back xD

Click install and I may very well assist :P
Okay... Anyway - which browser did you see this issue in?

wat3v3r 01-03-2011 02:45 AM

Quote:

Originally Posted by JacquiiCooke (Post 2142962)
Click install and I may very well assist :P
Okay... Anyway - which browser did you see this issue in?

Ah i uninstalled it as my users complained they were feeling like they were in sea or something with the screen going up and down xD

I was using Opera then, but the spoiler was working okay on your Demo, but kinda refused to work on our forum :/

JacquiiDesigns 01-03-2011 05:10 AM

Quote:

Originally Posted by wat3v3r (Post 2143048)
Ah i uninstalled it as my users complained they were feeling like they were in sea or something with the screen going up and down xD

I was using Opera then, but the spoiler was working okay on your Demo, but kinda refused to work on our forum :/

Your users need a life vest. Nothing wrong with sea water :P

I use Opera about 99% of the time - the 1% is when I'm testing my site for cross-browser compatibility. So it's not an issue with opera. There may have been a javascript conflict - but I really cannot say without seeing it on your forum.

Tanapangarap 01-04-2011 03:02 AM

Neat. Thanks, Jacquii.

JacquiiDesigns 01-04-2011 08:29 PM

You're welcome Kevin = Enjoy!
I think I shall post this on TAZ too - may be of use to some members there.
Glad to see you here at the .org :)

Mukashi 01-04-2011 08:51 PM

Out of interest, any idea if this would work on vB4? The spoiler tag I've been using on my forum since 2004 has broken on our 4.1.1 beta test forum.

JacquiiDesigns 01-04-2011 10:32 PM

Quote:

Originally Posted by Mukashi (Post 2144112)
Out of interest, any idea if this would work on vB4? The spoiler tag I've been using on my forum since 2004 has broken on our 4.1.1 beta test forum.

In theory - it sure should. A bbcode is a bbcode.
Don't quote me on that though - I'm not very familiar with vB 4 - but yes - it should work.
Let us know if it does ;)

godarmy 01-21-2011 11:01 PM

it will be nice...if u add another icon to as alternatif...or PSD off the h2_trigger_a.gif...so it can be edited....

JacquiiDesigns 01-22-2011 07:30 PM

Quote:

Originally Posted by godarmy (Post 2152633)
it will be nice...if u add another icon to as alternatif...or PSD off the h2_trigger_a.gif...so it can be edited....

I only shared the code and graphics I made for my own site.
You are free to create your own images. It's not too difficult.
I'll be happy to create a custom bar for you as a paid request .
PM me if interested :) Otherwise = Enjoy the spoiler code ;)

Mr. Flowers 02-02-2011 10:57 PM

I've installed this and I am also experiencing a flash open and close of the button.
www.streetfighter4forums.com

Edit: So removed /forum from the url and now it opens, closes and then opens for good. If I close it does the same thing. Close, open then permanent close.

M forum doesn't have /forum in the url. It has /board for the home page and /showthread for threads.

JacquiiDesigns 02-03-2011 07:55 AM

See the original post:

Quote:

PLEASE NOTE:
You'll need to edit in the replacement code your_forum_url/forum/ to be your own forum url.
If your forum url is http://www.mysite.com/forum/ -- then edit your replacement code to www.mysite.com/forum/

But it looks like you've decided to go with another spoiler code from the looks of this. IDK...

ViciousCode 02-04-2011 12:11 AM

the script should go in the headerinclude template instead of the bbcode

snowlion 02-04-2011 03:35 PM

It didn't work with IE.

JacquiiDesigns 02-05-2011 01:29 AM

Quote:

Originally Posted by ViciousCode (Post 2158483)
the script should go in the headerinclude template instead of the bbcode

That's another way to do it yes. But not the only way obviously.
And the placement of the javascript should not have any effect on how the bbcode functions.
I posted it this way in consideration of those who may not be very familiar with template edits. :)

Quote:

Originally Posted by snowlion (Post 2158734)
It didn't work with IE.

IE sux and it's not on my supported list of browsers.
I didn't test the code in IE, as I don't use it personally except for checking cross-browser compatibility issues. It does seem to work just fine for me in Opera, Firefox, Chrome, Safari and a host of other browsers - so perhaps IE is at fault...?
I will ask though - which version of IE did the code not work for you in?

snowlion 02-05-2011 02:02 AM

Quote:

I didn't test the code in IE, as I don't use it personally except for checking cross-browser compatibility issues.
Yes, and you didn't use it this time :D

Quote:

I will ask though - which version of IE did the code not work for you in?
Internet Explorer 8 and 9 beta. :D

JacquiiDesigns 02-05-2011 06:42 PM

Quote:

Originally Posted by snowlion (Post 2158928)
Yes, and you didn't use it this time :D


Internet Explorer 8 and 9 beta. :D

LOL - that would be correct.
Anyway - IDK of a fix for IE and I'm not going to search for one either.
If you find a way to make this bbcode compatible in IE - then by all means share the fix :)

Boofo 02-05-2011 07:32 PM

Quote:

Originally Posted by JacquiiCooke (Post 2159128)
IDK of a fix for IE and I'm not going to search for one either.
If you find a way to make this bbcode compatible in IE - then by all means share the fix :)

You might want to re-think that position, Jacquii. There are a lot of IE8 users out there that would miss something this nice by not being able to use it. Just my 3.5 cents worth. ;)

JacquiiDesigns 02-06-2011 04:44 AM

Quote:

Originally Posted by Boofo (Post 2159144)
You might want to re-think that position, Jacquii. There are a lot of IE8 users out there that would miss something this nice by not being able to use it. Just my 3.5 cents worth. ;)

I could re-think it yes - but it wouldn't do a bit of good, as I have no idea why IE is having issue parsing the code when it works just fine in all other browsers. I also advise my site users that Opera, Chrome, Firefox and Safari are excellent and preferred alternatives to IE. It's up to them whether they continue to use what I and a lot of other folks see as a subpar browser :P

But you can certainly feel free to sort the issue with IE - I'm sure we'll all appreciate it ;)

Boofo 02-06-2011 12:27 PM

Quote:

Originally Posted by JacquiiCooke (Post 2159256)
I could re-think it yes - but it wouldn't do a bit of good, as I have no idea why IE is having issue parsing the code when it works just fine in all other browsers. I also advise my site users that Opera, Chrome, Firefox and Safari are excellent and preferred alternatives to IE. It's up to them whether they continue to use what I and a lot of other folks see as a subpar browser :P

But you can certainly feel free to sort the issue with IE - I'm sure we'll all appreciate it ;)

I completely agree with your feelings on IE, as I use Opera myself. But a lot of people out there do use IE so we are stuck with that until they wise up. ;)

I will see what I can find for a fix for the IE problem, if there is one to be found.

JacquiiDesigns 02-07-2011 02:19 AM

Quote:

Originally Posted by Boofo (Post 2159365)
But a lot of people out there do use IE so we are stuck with that until they wise up. ;)

I will see what I can find for a fix for the IE problem, if there is one to be found.

I refuse to be stuck - seems the story of my life actually and where the bulk of my animosity springs from....

If you find a fix for the IE UGH though - I'm sure I will not be the only one appreciative of your efforts ;)

Jacquii.

JacquiiDesigns 11-15-2011 11:58 PM

Quote:

Originally Posted by Dimoks (Post 2268242)
This spoiler don't working after edit text in post
vb 3.8.7

yes it does = follow instructions to the letter and you should have no issues with it...except for the IE issue, which has been reported in previous post.

J.

lowlight 12-13-2011 03:38 AM

Is there a way to add the spoiler tags to the quick edit bar?

BadaTurkiye 12-16-2011 11:46 AM

does not work when we add more than one spoiler. spoiler turns on and off.

Deimos 03-28-2012 03:41 PM

Quote:

Originally Posted by BadaTurkiye (Post 2278294)
does not work when we add more than one spoiler. spoiler turns on and off.

Yea I get the same on my forum.

Hall of Famer 03-31-2012 04:47 PM

Umm the spoiler tag works, but not the css. I am getting this from the forum...


https://vborg.vbsupport.ru/external/2012/03/1.jpg

JacquiiDesigns 03-31-2012 05:28 PM

Quote:

Originally Posted by Hall of Famer (Post 2315442)
Umm the spoiler tag works, but not the css. I am getting this from the forum...


https://vborg.vbsupport.ru/external/2012/03/1.jpg

Make sure you upload images to the correct folder.

Hall of Famer 04-06-2012 01:23 AM

I made sure the files are upload to the forum root directories, it just doest work.

JacquiiDesigns 04-06-2012 02:51 PM

Indeed it does work - what's your forum url and link to a test thread with spoiler?
I'd only tested with one spoiler, so apologies to those of you with multiple spoiler issues.

J.

bigs15 01-08-2013 07:56 PM

when i click preview it working fine.But after i post thread it shows like this
http://img19.imageshack.us/img19/7879/62750301.jpg

Uploaded with ImageShack.us

Thanku

dizzynation 01-11-2013 10:14 AM

how do we use the magic wand in the images folder?

JacquiiDesigns 01-11-2013 07:06 PM

Quote:

Originally Posted by dizzynation (Post 2396195)
how do we use the magic wand in the images folder?

I have absolutely no idea what you're talking about.

J.


All times are GMT. The time now is 06:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01422 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete