Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Most elegant Spoiler-Tag [BB-Code] Details »»
Most elegant Spoiler-Tag [BB-Code]
Version: 1.00, by Grazu Grazu is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.x.x Rating:
Released: 02-22-2012 Last Update: Never Installs: 58
Re-useable Code Translations  
No support by the author.

This mod is automatically compatible with vB3.6.x, vB3.7.x, vB3.8.x and vB4.x.x



Demo: http://Uniquecrew.net/Spoiler.php
Demo-Mirror: http://hrkleZ.bplaced.net/Files/Spoiler.html (as you can see in the source, images are base64 encoded in the Demo-Mirror)


Installation Instructions:
  1. Open your AdminCP Custom BB Codes => Add New BB Code
  2. Title: Spoiler
  3. BB Code Tag Name: Spoiler
  4. Replacement:
    HTML Code:
    <div style="padding: 0px 5px 0px 5px;  border: 1px solid #DF7401; margin-left: 20px; width: 40%"><div align="center" style="text-transform: none; border-bottom: none; display: block; padding: 3px 0px 3px 0px;">
    <span onClick="var spoiler = this.parentNode.parentNode.getElementsByTagName('div')[2];
      if (spoiler.style.display != ''){
        this.parentNode.parentNode.style.width = '80%'
        this.parentNode.style.borderBottom = '1px solid #CCCCCC';
        spoiler.style.display = '';
        this.getElementsByTagName('a')[0].innerHTML = '->Close Spoiler<-';
      }else{
        this.parentNode.parentNode.style.width = '40%'
        this.parentNode.style.borderBottom = 'none';
        spoiler.style.display = 'none';
        this.getElementsByTagName('a')[0].innerHTML = '->Open Spoiler<-';
      }" />
    <a rel="nofollow" href="#" onClick="return false;" style="text-decoration: none;"><b style="font-size: 0.8em;">->Spoiler ?ffnen<-</b></a>
    </span>
    </div>
    <div class="quotecontent">
    <div align="center" style="display: none; padding: 5px 0px 5px 0px;"><br> {param}</div>
    </div>
    </div><br />
  5. Example: [SPOILER]Hidden Text Here[/SPOILER]
  6. Description: The [SPOILER]-Tag allows you to hidden or hide your text.
  7. Use {option}: No
  8. Button Image (Optional) => Upload this Picture on you Server and enter the exact Address of it (/images/ is recommended).
  9. Remove Tag If Empty: Yes
  10. Disable BB Code Within This BB Code: No
  11. Disable Smilies Within This BB Code: No
  12. Disable Word Wrapping Within This BB Code: No
  13. Disable Automatic Link Parsing Within This BB Code: No
After you finished, you can compare your Settings with this Screenshot.


I hope you like it! (:

This mod is automatically compatible with vB3.6.x, vB3.7.x, vB3.8.x and vB4.x.x

Screenshots

File Type: jpg Settings.jpg (67.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
iiioroh

Comments
  #22  
Old 11-30-2014, 06:05 AM
donisgh donisgh is offline
 
Join Date: Aug 2013
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot... this thread help me
Reply With Quote
  #23  
Old 12-14-2014, 11:19 PM
fayax fayax is offline
 
Join Date: Dec 2009
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Definitely most elegant. Thank you!
Reply With Quote
  #24  
Old 12-17-2014, 01:06 PM
Feindbild Feindbild is offline
 
Join Date: Jan 2013
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why exactly are you using a fraud/hacking board to demonstrate your spoiler?
Reply With Quote
  #25  
Old 06-03-2015, 05:23 PM
jkotlowski jkotlowski is offline
 
Join Date: May 2015
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to allow users to define the text that appears on the spoiler tag?

[spoiler=text to appear instead of open spoiler]text to be inside tag[/spoiler]

Something like that?
Reply With Quote
  #26  
Old 05-04-2016, 04:13 PM
Scans007 Scans007 is offline
 
Join Date: Jul 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bumping an old thread - works great for me. Just one question - where do I reference the button image in the code to have it show up?
Reply With Quote
  #27  
Old 05-04-2016, 04:41 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Scans007 View Post
Bumping an old thread - works great for me. Just one question - where do I reference the button image in the code to have it show up?
When you define/edit the BBCode, you enter the URL of the image here:

Attached Images
File Type: png bbcodebutton.png (9.7 KB, 0 views)
Reply With Quote
  #28  
Old 04-05-2017, 07:42 AM
Flipfloptrader Flipfloptrader is offline
 
Join Date: Jan 2011
Location: Gold Coast
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it me or is this in German? Spoiler offnen?

Am I missing something?
Reply With Quote
  #29  
Old 04-05-2017, 07:44 AM
Flipfloptrader Flipfloptrader is offline
 
Join Date: Jan 2011
Location: Gold Coast
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ignore, just replaced offnen and schließen to open and close.

Works fine on 4.2.4
Reply With Quote
Reply

Thread Tools

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 05:35 AM.


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.05883 seconds
  • Memory Usage 2,302KB
  • Queries Executed 24 (?)
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
  • (1)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
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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