vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   need a genera html code for a spoiler I can make myself in my admincp (https://vborg.vbsupport.ru/showthread.php?t=282552)

Dark Lycan 05-07-2012 05:01 AM

need a genera html code for a spoiler I can make myself in my admincp
 
well the title says it all, so can someone provide me with the html code I need to make my own spoiler?

Amaury 05-07-2012 05:13 AM

Quote:

Originally Posted by Dark Lycan (Post 2326946)
well the title says it all, so can someone provide me with the html code I need to make my own spoiler?

All we really need, actually, is an icon. The one we have works, the button's just blank on the toolbar.

Dark Lycan 05-07-2012 05:31 AM

Quote:

Originally Posted by Amaury25 (Post 2326949)
All we really need, actually, is an icon. The one we have works, the button's just blank on the toolbar.

Yes but I want to create one so we have 2 cus khv has 2 different spoilers amaury, that way members and staff have 2 different choices to choose from like khv.=/

BirdOPrey5 05-07-2012 11:22 AM

Assuming you mean a BB Code...

Here is code for a simple spoiler.... based off of code that was here as re-usable at one time but was since deleted by the author it seems:

Code:

<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
<strong>Spoiler</strong>:
<input type="button" value="Show" style="width:45px;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.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 5px; border: 1px inset;">
<div style="display: none;">
{param}
</div></div></div>


Dark Lycan 05-08-2012 09:41 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2327025)
Assuming you mean a BB Code...

Here is code for a simple spoiler.... based off of code that was here as re-usable at one time but was since deleted by the author it seems:

Code:

<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
<strong>Spoiler</strong>:
<input type="button" value="Show" style="width:45px;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.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 5px; border: 1px inset;">
<div style="display: none;">
{param}
</div></div></div>



yes thats what a meant, ty so much bird your awesome.^_^


All times are GMT. The time now is 08:16 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.01028 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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