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)
-   -   Add-On Releases - Cool Spoiler Tag[jQuery] (https://vborg.vbsupport.ru/showthread.php?t=243700)

Xtrigit 05-31-2010 10:00 PM

Cool Spoiler Tag[jQuery]
 
1 Attachment(s)
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

Xtrigit 06-01-2010 06:50 AM

Reserved

ChopSuey 06-01-2010 04:04 PM

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

Posted twice?

Xtrigit 06-07-2010 03:04 AM

My browser refreshed the page, I had opera refresh/reload pages every 1 minutes and forgot to disable it. =]

funmasti 06-10-2010 10:11 AM

thanks mate, can u generate a XML file for it? so that users can easily install the mod

Randhal007 11-07-2013 07:22 AM

can't with multiple spoiler :D

Mr.samy 11-08-2013 12:56 PM

very good to use google ajax library in code to cut more time page load ..
I give it try .... thanks


All times are GMT. The time now is 05:39 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.01109 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete