vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Spoiler Tag : Show/Hide (https://vborg.vbsupport.ru/showthread.php?t=110598)

mikkitine 03-28-2008 03:09 PM

Excellent spoiler tag. The best.
Quote:

Originally Posted by Arrogant-One (Post 1447074)
With my customized skins there is already text in both 'Additional CSS definitions' windows. The windows are not blank and I am hesitant to replace that text with this new text. What should I do?

AO

You don't paste it over any of the additional CSS text. Go to the bottom, start a new line and then paste the CSS text for this spoiler.

digibluez 06-15-2008 01:57 PM

could be better ,but better than nothing. And as i do not have much time to work it out myself, it's good for start.

RACHR 06-15-2008 05:39 PM

hi, the code from you is great..

but i need a modification, i need this Spoiler field to width max 80% from the post.

i have in all threads many tables and all is 80% width.. only this spoiler field is 100%
It does not look good ;)

when i make the [spoiler]my text[/spoiler] in one of my tables, then is this click on "show" not working.

i hope you understand me and my bad english ;)

thank you very much
bye rachr

EDIT: i get the code from the top of this site!
Code:

<div>
    <div class="pre-spoiler">
    <span style="float:left; padding-top: 2px;">Spoiler</span> <input type="button" value="Show" style="width:80px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'Show';}">
    </div>
    <div>
        <div class="spoiler" style="display: none;">{param}</div>
    </div>
</div>


pab 07-11-2008 06:57 AM

Thanks, installed hav been looking for this one..

theforumist 07-16-2008 03:11 PM

o_O this beats the traditional one I see hands down. I installed it and I'm loving it.

SBoards 08-04-2008 12:54 PM

thanks... works great in 3.7.2

trulylowcarb 08-04-2008 08:11 PM

I am using it in 3.7.2. as well and LOVING IT! Thanks :)

Using it for a trivia game posted with polls. I would LOVE IT if someone could tell me how to make it so users are required to vote in the poll before they can use the SHOW button. Not being able to see the answers unless they vote will force more registrations, I think, since I don't alllow guest voting (not to mention prevent cheating by members, LOL!)

ch_racer 08-10-2008 06:13 PM

Here, take this code:

HTML Code:

<div>
    <div class="pre-spoiler">
    <span style="float:left; padding-top: 2px;">Spoiler</span> &nbsp;<input type="button" value="Show" style="width:80px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'Show';}"/>
    </div>
    <div>
        <div class="spoiler" style="display: none;">{param}</div>
    </div>
</div>

This one is valid XHTML Code.

InsaneNutter 08-13-2008 02:53 PM

Thanks, this is perfect and still works great in vBulletin 3.7.2 PL1
I was able to modify the CSS to make the colours match our forums theme perfectly :up:

whitetigergrowl 09-06-2008 05:25 PM

How do i add this to the quick reply area?

students_forum 09-22-2008 06:45 PM

this won't work on firefox 3 :s

Magnumutz 09-28-2008 10:54 AM

It DOES work on FF3.

Keesa 11-16-2008 02:59 AM

Can anyone tell me if when they use this one, it allows the smilies to show?

In the one I am using, it does not recognize smilies and just leaves the code like :smili:

dimitrisvb 04-23-2012 09:35 AM

I've got a spoiler tag button installed and I thought it was this one, eventhough I realize now that the thread is extremely outdated and the mod not supported, anymore.

Anyway, what can I do but ask here... I’ve updated to vb 4.1.12, lately, and all of the sudden the button disappeared from the editor. Any ideas as to why this happened?


All times are GMT. The time now is 01:33 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.01258 seconds
  • Memory Usage 1,748KB
  • 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)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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