vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Spoiler-Modification v. 1.0.0 (https://vborg.vbsupport.ru/showthread.php?t=88660)

Bernd Glasstett 03-16-2004 10:00 PM

Spoiler-Modification v. 1.0.0
 
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.

Blue Moose Aaron 03-18-2004 01:12 PM

Why was it deleted?

This is a great edit by the way. I added it to my forum. http://www.thekryptonian.com/showthread.php?t=3033

Thanks!

Bernd Glasstett 03-18-2004 02:06 PM

I don't know, but discussion was going on, if this was a template-mod or a hack. Seems as if the moderators saw it as a template-mod :)

Blue Moose Aaron 03-18-2004 02:15 PM

It is more of a template mod, but that's no reason to up and delete it. Whatever though... again, great hack.

imported_Prank 03-21-2004 07:18 AM

cool - will be adding this, thanks!

Christian

Zachery 03-21-2004 11:17 AM

Thread moved here :) nice work

Mr. Brian 03-22-2004 08:16 AM

Thanks for sharing.. job welldone!

ryancooper 03-22-2004 10:32 PM

Awesome! Installign tonight! Thanks!!

PlenoJure 03-25-2004 04:09 AM

Installed & working well :)

dookie 04-11-2004 05:57 AM

Thank you, works fine. :)

daFish 04-12-2004 05:03 PM

This is a very nice hack, but i think it didnt work with firefox.
Can anyone confirm this?

Schwarze Katze 04-28-2004 07:07 PM

Nope. I just tried it. Works.

ryancooper 05-14-2004 01:00 AM

Quote:

New phrases to be added: 2 (showspoiler, showspoilerwithtitle)
What 2 phrases? they are not in the instructions. I can;t seem to get it to work see here: http://talkdisney.com/forums/showthr...423#post241423

What could i have missed??

Thanks!

imported_Synicide 05-14-2004 07:01 PM

This is great guys. :D I really love it.

Viol8or 05-15-2004 10:42 AM

Nice work, simple clean and good ... THANKS a lot, was looking for this!

marcel-ea 06-28-2004 01:46 AM

A small question.

He write 2 Pharses must be added.
Where are this Pharses`? I donĀ“t see in the install.

thx

Cover Zero 06-28-2004 07:18 PM

I've been using this hack for a while also. Great stuff.

marcel-ea 06-29-2004 07:54 AM

super can you say me where are the pharses?

chrisvonc 06-30-2004 12:32 AM

AdminCP > Languages & Phrases > Phrase Manager
:)

marcel-ea 06-30-2004 06:38 PM

oh my good :D no i search this pharses of this hack
is not in the file not in post!

Quote:

New phrases to be added: 2 (showspoiler, showspoilerwithtitle)
oki but what for content?

Hoffi 07-12-2004 10:40 PM

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.

jugo 07-22-2004 05:11 PM

Um...Very nice work..
Although...I can't quite find a use for it though....

Quelyn 09-26-2004 02:18 PM

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.

Erwin 09-27-2004 04:51 AM

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.

gwhooooey 10-27-2004 11:36 PM

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?

Michael2 11-07-2004 08:53 AM

That's really cool. I'd add it but I think my members would abuse it. Thanks for sharing though!

TwinsForMe 03-10-2005 08:15 PM

/me clicks install

ETA: How do I get the button to appear on the quick reply box?

weaver 03-10-2005 09:12 PM

...

zetetic 03-27-2005 12:38 PM

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?

Morpherex 05-01-2005 03:08 AM

I wouldn't mind having this updated a little bit, to do some fixes :(.

FilmoreSlim 08-15-2005 09:14 AM

Yeah I like this better then the other various spoiler mods ... some people just don't realize they need to "highlight" the text to reveal the text. With this it's pretty obvious! Thanks ;)

Omega Prime 09-11-2005 05:12 PM

For whatever reason, this doesn't seem to work with 3.5, even when it used to work fine for me with 3.0.7 :(

Colejo 09-30-2005 06:52 PM

Quote:

Originally Posted by Omega Prime
For whatever reason, this doesn't seem to work with 3.5, even when it used to work fine for me with 3.0.7 :(

It works for me. I just had to edit the new headinclude template.

PamelaE 10-14-2005 05:29 PM

Does this def work on 3.5? I really need to implement this.

http://www.soapchat.net

Borgs8472 11-11-2005 03:00 PM

This is compatible with 3.5

Alviker 12-30-2005 01:27 PM

Run really in vB 3.5.x? :( :( In my vB 3.5.1 not run :( :( Sorry for my bad english ^^U. The button "Show Spoiler" appears, but when I click on this, not appear the Spoiler :( :(

http://foros.ffultimate.com

Help please. I like this hack :( Very thanks.

Atte. Alviker

Cal813 01-23-2006 02:58 AM

works for me on 3.5.3 however I wanted to know if there is a way to have a hide button as well? like comicforum has??

DjTaz 01-25-2006 05:09 PM

Brilliant - thanks :D

Borgs8472 01-30-2006 05:49 PM

I like to use {option} rather than "Show Spoiler about {option}", it allows for lots more uses.

Aislinn 03-01-2006 12:58 AM

So cool, thanks a ton!


All times are GMT. The time now is 04:48 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.01331 seconds
  • Memory Usage 1,782KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete