Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Spoiler-Modification v. 1.0.0 Details »»
Spoiler-Modification v. 1.0.0
Version: 1.00, by Bernd Glasstett Bernd Glasstett is offline
Developer Last Online: Feb 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-16-2004 Last Update: Never Installs: 27
 
No support by the author.

Spoiler-Modification v 1.0.0
This hack was developed by one of our users, TheSmallOne for use on www.comicforum.de The hack adds a spoiler-tag to the vbCode and displays the entered text between the tags as a button, displaying only "Show Spoiler". Once clicked, the spoiler is displayed. Very useful to hide postings on movie- or comicbook-forums, in which secrets about a story are revealed - in order to keep it up to every user, whether he would like to read it or not.

Features:
  • own image on editor
  • button with javascript
Templates to be changed: 1 (headinclude)
New phrases to be added: 2 (showspoiler, showspoilerwithtitle)
New custom BB Codes to be added: 2

PS: This hack was deleted on vbulletin.org. I am eager to see, if it is allowed here. If not, please tell me, where to post it - and don't just delete it.

Show Your Support

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

Comments
  #22  
Old 07-12-2004, 10:40 PM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works great, but in the JS Code is a little Error. It is not really an Error, but you did not make the Closing JS-Tag correctly.

The Code must see like this:

Code:
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
function showSpoiler(block) {
// by The Small One
block.nextSibling.nextSibling.style.display ="block";
block.parentNode.removeChild(block);
}
// -->
</script>
The JavaScript Comment to Hide the Ending HTML-Comment must be placed just before the Ending HTML-Script Tag.

If a Browser without JavaScript visits your Site he displays the Code of the Function inside the Forum.
Reply With Quote
  #23  
Old 07-22-2004, 05:11 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um...Very nice work..
Although...I can't quite find a use for it though....
Reply With Quote
  #24  
Old 09-26-2004, 02:18 PM
Quelyn's Avatar
Quelyn Quelyn is offline
 
Join Date: Apr 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome, very very neat. The only thing I don't like is that it drops the spoiler onto it's own line and doesn't keep the button with the rest of the paragraph. Other than that it's awesome.
Reply With Quote
  #25  
Old 09-27-2004, 04:51 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning people that using an input tag in a bbcode an enabling options is a BAD idea, as this allows javascript insertion and the copying of cookies. As someone who has been hacked with a similar spoiler mod, I'm just letting others know that such bbcode mods are not safe, especially if they allow variables in an input tag to be inserted by users.
Reply With Quote
  #26  
Old 10-27-2004, 11:36 PM
gwhooooey gwhooooey is offline
 
Join Date: Feb 2003
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When posting a spoiler in the first post, the text in the spoiler shows up on the thread preview from forum display. Anyway to make it so it doesn't do this?
Reply With Quote
  #27  
Old 11-07-2004, 08:53 AM
Michael2's Avatar
Michael2 Michael2 is offline
 
Join Date: Nov 2001
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's really cool. I'd add it but I think my members would abuse it. Thanks for sharing though!
Reply With Quote
  #28  
Old 03-10-2005, 08:15 PM
TwinsForMe TwinsForMe is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me clicks install

ETA: How do I get the button to appear on the quick reply box?
Reply With Quote
  #29  
Old 03-10-2005, 09:12 PM
weaver weaver is offline
 
Join Date: Mar 2004
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...
Reply With Quote
  #30  
Old 03-27-2005, 12:38 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a good hack and I've been using it for the last year, but unfortunately the spoiler content still appears in thread preview. Does anyone know how I can prevent this?
Reply With Quote
  #31  
Old 05-01-2005, 03:08 AM
Morpherex's Avatar
Morpherex Morpherex is offline
 
Join Date: Nov 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wouldn't mind having this updated a little bit, to do some fixes .
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:47 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.08247 seconds
  • Memory Usage 2,298KB
  • Queries Executed 25 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete