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
Cool Spoiler Tag[jQuery] Details »»
Cool Spoiler Tag[jQuery]
Version: 6.1, by Xtrigit Xtrigit is offline
Developer Last Online: Apr 2011 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.x Rating:
Released: 05-31-2010 Last Update: Never Installs: 4
Template Edits
 
No support by the author.

Hey, everyone!

Follow the instructions below to implement a nice spoiler tag.

Files to edit:
Main CSS
SHOWTHREAD

1 Style Manager >> All style options>> Main CSS
Scroll all the way down and find:
PHP Code:
/* Header and Navbar CSS */ 
Paste ABOVE:
PHP Code:
/* Spoiler */
#slidingDiv {
    
displaynone;
    
height:150px;
    
background-color#d0e0f0;
    
padding:20px;
    
margin-top:10px;
    
border-bottom:5px solid #FF5B00;

______________________________________
2. SHOWTHREAD
Find:
PHP Code:
<body onload="$onload"
In the next line, paste:
PHP Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
<
script type="text/javascript"
//<![CDATA[
function showSlidingDiv(){
$(
"#slidingDiv").animate({"width""toggle"}, { duration1000 });
}
//]]>
 
 
</script
________________________________________________

3. Add Custom BBCode
Title:
Quote:
Spoiler
BB Code Tag Name:
Quote:
spoiler
Replacement:
PHP Code:
<a href="#" onClick="showSlidingDiv(); return false;"><span style="font-family:Comic sans ms;color:#0099ff;font-size:14px;">Spoiler</span></a><br />
    <
div id="slidingDiv">{param}<a href="#" onClick="showSlidingDiv(); return false;">hide</a
Example:
Quote:
[spoiler]hide this text[/spoiler]
4. Save... Done... Enjoy!

P.S. Feel free to customize the font, color, size etc =]

Mark As Installed if you use this Mod

Screenshots

File Type: png 1.png (6.4 KB, 0 views)
File Type: png 2.png (8.9 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 06-01-2010, 06:50 AM
Xtrigit's Avatar
Xtrigit Xtrigit is offline
 
Join Date: Jan 2010
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved
Reply With Quote
  #3  
Old 06-01-2010, 04:04 PM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=243699" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=243699</a>

Posted twice?
Reply With Quote
  #4  
Old 06-07-2010, 03:04 AM
Xtrigit's Avatar
Xtrigit Xtrigit is offline
 
Join Date: Jan 2010
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My browser refreshed the page, I had opera refresh/reload pages every 1 minutes and forgot to disable it. =]
Reply With Quote
  #5  
Old 06-10-2010, 10:11 AM
funmasti's Avatar
funmasti funmasti is offline
 
Join Date: Aug 2009
Location: World Wide Web
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks mate, can u generate a XML file for it? so that users can easily install the mod
Reply With Quote
  #6  
Old 11-07-2013, 07:22 AM
Randhal007 Randhal007 is offline
 
Join Date: Sep 2012
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can't with multiple spoiler
Reply With Quote
  #7  
Old 11-08-2013, 12:56 PM
Mr.samy's Avatar
Mr.samy Mr.samy is offline
 
Join Date: Feb 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very good to use google ajax library in code to cut more time page load ..
I give it try .... thanks
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 02:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10187 seconds
  • Memory Usage 2,293KB
  • Queries Executed 21 (?)
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
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (2)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete