vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Spoiler BBcode (https://vborg.vbsupport.ru/showthread.php?t=145145)

JordanT 04-18-2007 01:35 AM

Spoiler BBcode
 
We have a TV show/movie forum. However, some users have not seen some tv shows or movies and don't want to see what happens in the episode or movie. So, is there a bbcode that allows the poster to enclose certain text but it's not viewable until the viewer clicks something. For example, lets say the post says this:

Poster:
In episode 2 of lost this is what happened: [spoiler]Jack dies[/spoiler]

The viewer of this would see:
In episode 2 of lost this is what happened: Click to see the spoiler

Anyone know of this?

Thanks!
Jordan

Kungfu 04-18-2007 03:36 AM

well one thing you can do is something like

<span id="postidmaybe?" style="display:none" onclick="showspolier(this)">Spoiler text goes here</span>

Then using javascript you can make a function called showspolier

and set the display to display: block

http://www.scriptygoddess.com/archiv...de-javascript/

heres an example of that.

Basically you just want to open it. So you dont need the close script. Only thing is this will always be hidden until you click it unless you get into cookies or saving info to a database.

Besides that you can get a reply to view this thread hack. Im pretty sure there is one.

Dismounted 04-18-2007 06:23 AM

There's a hack for this. Search is your friend.

JordanT 04-18-2007 09:12 PM

Quote:

Originally Posted by Dismounted (Post 1230239)
There's a hack for this. Search is your friend.

I did do a search under 3.6 mods for spoiler before I made this thread which showed up nothing that I wanted.

Sjakie 04-18-2007 09:34 PM

Look and you will find...
http://www.ncode.nl/vbulletinplugins/

JordanT 04-18-2007 09:36 PM

Thanks!


All times are GMT. The time now is 11:42 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.01000 seconds
  • Memory Usage 1,719KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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