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
  #12  
Old 01-03-2011, 02:45 AM
wat3v3r wat3v3r is offline
 
Join Date: Jun 2008
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by wat3v3r View Post
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.
Reply With Quote
  #14  
Old 01-04-2011, 03:02 AM
Tanapangarap's Avatar
Tanapangarap Tanapangarap is offline
 
Join Date: Dec 2007
Location: California
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Neat. Thanks, Jacquii.
Reply With Quote
  #15  
Old 01-04-2011, 08:29 PM
JacquiiDesigns's Avatar
JacquiiDesigns JacquiiDesigns is offline
 
Join Date: Dec 2008
Location: Tennessee
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 01-04-2011, 08:51 PM
Mukashi's Avatar
Mukashi Mukashi is offline
 
Join Date: Jan 2004
Location: Brisbane, Australia
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 01-04-2011, 10:32 PM
JacquiiDesigns's Avatar
JacquiiDesigns JacquiiDesigns is offline
 
Join Date: Dec 2008
Location: Tennessee
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mukashi View Post
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
Reply With Quote
  #18  
Old 01-21-2011, 11:01 PM
godarmy godarmy is offline
 
Join Date: May 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by godarmy View Post
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
Reply With Quote
  #20  
Old 02-02-2011, 10:57 PM
Mr. Flowers Mr. Flowers is offline
 
Join Date: Jan 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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...
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:40 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.06544 seconds
  • Memory Usage 2,343KB
  • 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
  • (5)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
  • (3)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