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)

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 :(.


All times are GMT. The time now is 11:10 AM.

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.02060 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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