vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - Custom Spoiler Code (https://vborg.vbsupport.ru/showthread.php?t=223262)

theFM 09-14-2009 10:00 PM

Custom Spoiler Code
 
1 Attachment(s)
I have a spoiler Feature at my site that allows for a custom button title to be initially seen ( great if you wnat to hint what is hidden inside)l

I don't see anything exactly the same here...although some are simular... & have seen many requests for other spoiler ideas, so.... I thought I might share. Please be kind as this is my first shared hack.

It's real easy. Just log into the AdminCP=>Custom BBCodes=>Add New BB Code

Then do this:

Title:
Spoiler Tag
BB Code Tag Name: Spoiler tag

Replacement:
Code:

<div class="spoiler"><script>
function showHide(what){
a=what.getElementsByTagName("div")[0];
if(a.style.display=='none'){
a.style.display='block';
}else{
a.style.display='none';
}}
</script>
<input type="button" onclick="showHide(this.parentNode)" value="Spoiler"><b><small>( Click to show/hide )</small></b><div style="display:none">{param}</div></div>

Example: [spoiler]Hidden Text Here[/spoiler]

description: Makes a spoiler BBcode , just as any ordinary bbcode

use {option}: Click No

..leave the rest at "No"

click "save" button & that is it!
The code will then be: [spoiler]Hidden Text Here[/spoiler]

Then Put

Code:

<style>
.spoiler div{
border:ridge;
border-bottom-color:#999999;
border-top-color:#999999;
border-left-color:#999999;
border-right-color:#999999;
border-bottom-width:thin;
border-top-width:thin;
border-left-width:thin;
border-right-width:thin;
}
</style>

In Your Main Template Editing Page in Your Extra CSS Coloumn

And you can see a different spoiler code being added.

Click on Install if Have Installed It , please tell me what should i do if it is not working correctly is in demo what i just did it in my forum is working now , so just added it here

Regards to ChopSuey for the demo

https://vborg.vbsupport.ru/external/2009/09/25.jpg
https://vborg.vbsupport.ru/external/2009/09/26.jpg

Robert Waanders 09-16-2009 12:51 PM

demo, screenshot?

bigtime 09-16-2009 03:02 PM

would like to see a demo/screenshot too.

students_forum 09-16-2009 03:14 PM

Quote:

Originally Posted by bigtime (Post 1885777)
would like to see a demo/screenshot too.

ditto ..

ChopSuey 09-17-2009 01:00 AM

1 Attachment(s)
Heres screenshots :)

lm3a.net 12-11-2009 09:58 AM

The screenshot is small !!

willy888 02-01-2010 07:58 AM

GREAT bbcode man
Works fine

majidgbox 02-14-2010 03:31 AM

delete it.........!


All times are GMT. The time now is 03:13 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.01099 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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