Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
JQuery-animated Spoiler BBCode Details »»
JQuery-animated Spoiler BBCode
Version: 1.00, by JacquiiDesigns JacquiiDesigns is offline
Developer Last Online: Nov 2019 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.8.x Rating:
Released: 12-28-2010 Last Update: Never Installs: 43
Re-useable Code Additional Files  
No support by the author.

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/

Download Now

File Type: zip jquery_spoiler_bbcode.zip (171.4 KB, 657 views)

Screenshots

File Type: png screencap.png (157.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-04-2011, 12:11 AM
ViciousCode ViciousCode is offline
 
Join Date: Oct 2008
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the script should go in the headerinclude template instead of the bbcode
Reply With Quote
  #23  
Old 02-04-2011, 03:35 PM
snowlion snowlion is offline
 
Join Date: Mar 2005
Location: STY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It didn't work with IE.
Reply With Quote
  #24  
Old 02-05-2011, 01:29 AM
JacquiiDesigns's Avatar
JacquiiDesigns JacquiiDesigns is offline
 
Join Date: Dec 2008
Location: Tennessee
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ViciousCode View Post
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 View Post
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?
Reply With Quote
  #25  
Old 02-05-2011, 02:02 AM
snowlion snowlion is offline
 
Join Date: Mar 2005
Location: STY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
I will ask though - which version of IE did the code not work for you in?
Internet Explorer 8 and 9 beta.
Reply With Quote
  #26  
Old 02-05-2011, 06:42 PM
JacquiiDesigns's Avatar
JacquiiDesigns JacquiiDesigns is offline
 
Join Date: Dec 2008
Location: Tennessee
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snowlion View Post
Yes, and you didn't use it this time


Internet Explorer 8 and 9 beta.
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
Reply With Quote
  #27  
Old 02-05-2011, 07:32 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JacquiiCooke View Post
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.
Reply With Quote
  #28  
Old 02-06-2011, 04:44 AM
JacquiiDesigns's Avatar
JacquiiDesigns JacquiiDesigns is offline
 
Join Date: Dec 2008
Location: Tennessee
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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
Reply With Quote
  #29  
Old 02-06-2011, 12:27 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JacquiiCooke View Post
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.
Reply With Quote
  #30  
Old 02-07-2011, 02:19 AM
JacquiiDesigns's Avatar
JacquiiDesigns JacquiiDesigns is offline
 
Join Date: Dec 2008
Location: Tennessee
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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.
Reply With Quote
  #31  
Old 11-15-2011, 11:58 PM
JacquiiDesigns's Avatar
JacquiiDesigns JacquiiDesigns is offline
 
Join Date: Dec 2008
Location: Tennessee
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dimoks View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:35 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.05796 seconds
  • Memory Usage 2,351KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete