Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Oct 2005, 03:51
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Creating a Hide/Show (Spoiler) Feature

As shown in this person's signature:

http://boards1.wizards.com/showpost....00&postcount=1

How does one make it look exactly like that?
Reply With Quote
  #2  
Old 06 Oct 2005, 04:22
Blindchild02's Avatar
Blindchild02 Blindchild02 is offline
 
Join Date: Apr 2002
yeah thats pretty nice.
Reply With Quote
  #3  
Old 06 Oct 2005, 22:52
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Bump.

Come on. Will no one even attempt this?
Reply With Quote
  #4  
Old 06 Oct 2005, 23:39
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Real name: Andy
I may look in to this one later if nobody else does..
Reply With Quote
  #5  
Old 06 Oct 2005, 23:55
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Just view the source .........


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #6  
Old 07 Oct 2005, 00:19
Funchiestz Funchiestz is offline
 
Join Date: Oct 2005
can u teach me how to implement that one in my 3.5 ?
Reply With Quote
  #7  
Old 07 Oct 2005, 00:40
utw-Mephisto utw-Mephisto is offline
 
Join Date: Feb 2005
gimme 5 minutes ... can be done by bbcode ...one sec

Go to your BBCode Manager :

with these settings :



As replacement code you can use the one Paul posted instead of HIDDEN TEXT HERE, you use {param}.

Preview should be then :



Of course you can use anything, you don't have to call it spoiler2

and since bbcode can be used in signatures, you'll get that result

Last edited by utw-Mephisto; 07 Oct 2005 at 00:48. Reason: Automerged Doublepost
Reply With Quote
  #8  
Old 07 Oct 2005, 00:51
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Real name: Chris Murphy, BSc
Very nice spoiler code

Chris
Reply With Quote
  #9  
Old 07 Oct 2005, 00:58
utw-Mephisto utw-Mephisto is offline
 
Join Date: Feb 2005
Another spoiler code would be



And when you mouseover :



Settings :


Last edited by utw-Mephisto; 07 Oct 2005 at 00:59. Reason: Automerged Doublepost
Reply With Quote
  #10  
Old 07 Oct 2005, 03:10
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Real name: Jack
There's a spoiler hack just released: http://www.vbulletin.org/forum/showt...threadid=97728

At least its something
Reply With Quote
  #11  
Old 14 Oct 2005, 20:10
PamelaE PamelaE is offline
 
Join Date: Feb 2005
I have to say the hide/show button is much more sophisticated than the usual outdated highlighted text approach.

I think its great. Thanks for shareing this, I have just implemented it.

Thanks
Reply With Quote
  #12  
Old 08 Jan 2006, 19:18
Alviker Alviker is offline
 
Join Date: Nov 2005
Originally Posted by Paul M
Just view the source .........


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Don't run in my vB 3.5.1!!! Help please!!! How Can I add totally this BBCode??? Sorry for my bad english . Help please. Very thanks.

Atte. Alviker
__________________
By Alviker
Reply With Quote
  #13  
Old 20 Jan 2006, 19:31
simalert's Avatar
simalert simalert is offline
 
Join Date: Jan 2006
Originally Posted by Alviker
Don't run in my vB 3.5.1!!! Help please!!! How Can I add totally this BBCode??? Sorry for my bad english . Help please. Very thanks.

Atte. Alviker
It works great for me, I have the following

TITLE : Hide

TAG : hide

REPLACEMENT :

<div style="margin:5px 20px 20px 20px">

<div class="smallfont" style="margin-bottom:2px"><b>{option}:</b>

<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: 6px; border: 1px inset;">

<div style="display: none;">

{param}

</div>

</div>

</div>


Example : [hide=Spoiler]Simalert.com is the best[/hide]

Description : Allows you to hide text until someone presses the button.

Ideal for large code or spoilers.

USE OPTION : Yes



I added {option} in there so you can specify the title.

To use this you type [hide=TITLE HERE] TEXT HERE [/hide]

It works great on my 3.5.3 board (still getting ready to switch to it from PHPBB)
Reply With Quote
  #14  
Old 16 Feb 2006, 19:21
Cutulus Cutulus is offline
 
Join Date: Feb 2006
Right now your current code has it say --> {option}:
When they use the script tags. What if I wanted to do [script=$$] How would you change the code to show $$?
Reply With Quote
  #15  
Old 23 Feb 2006, 19:16
yumyumcat's Avatar
yumyumcat yumyumcat is offline
 
Join Date: Jan 2006
What if you want to just use this in posts and not your signature?

How do you install it? Help! I really would love this for my Board
Thanks in advance.

I just installed this, made a button for my Board and thought I had it figured out, but it's not working ~

Someone out there that can advise?

Last edited by yumyumcat; 23 Feb 2006 at 22:40. Reason: Automerged Doublepost
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spoiler Tag : Show/Hide ElForro vBulletin 3.5 Template Modifications 93 23 Apr 2012 11:35
BB Code Enhancements Spoiler BB Code with Show/Hide Button Deadly Stream Modification Graveyard 22 22 Mar 2010 01:06



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:48.

Layout Options | Width: Wide Color: