Welcome Guest ( Log In | Register)



2 Pages V   1 2 >  
Reply to this topicStart new topic
> New Custom Bbcode Called [hide], use this tag to hide your spoiler or a punch line
BuffaloHELP
post Aug 15 2006, 06:06 AM
Post #1


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,434
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



I made this custom bbcode called HIDE to hide part of your post. The usage goes like this:

CODE
[hide=option]Just insert what you want to hide.[/hide]


Here is an example of above bbcode. Please use your forum login name as the option. This will make the code work smoothly with multiple usage.
[hide=buffalohelp]Just insert what you want to hide.[/hide]

If you want to use more than one HIDE code in a single post, you MUST use it like this:
CODE
[hide=yourname1]Insert the hidden text one.[/hide]
[hide=yourname2]Insert the hiddent text two.[/hide]

This will show as
[hide=buffalohelp1]Insert the hidden text one.[/hide]
[hide=buffalohelp2]Insert the hidden text two.[/hide]

You'll note that yourname1 and yourname2 were used. If you were to use the same option field with the same variable, only one will open and the other will not. And the reason I've made it to use your forum name is to differentiate among all HIDE codes in a topic per page. This is crucial.

If you do not use distinguishable option values this is what will happen:
CODE
[hide=name]Inserting code[/hide]
[hide=name]Inserting second code[/hide]

This will show as
[hide=name]Inserting code[/hide]
[hide=name]Inserting second code[/hide]

As you can see, the second hide code does not show and it triggers the first one.

For the full list of available BBcodes for Trap17 board, please visit http://www.trap17.com/forums/index.php?act...mp;type=bbcodes

A word of caution: Words within the HIDE bbcode will still earn you hosting credits. Members using HIDE to post and paste articles to gain hosting credits against Trap17 forum rules will be warned immediately without exception. The earned hosting credits will also be reversed.

Thanks guys and enjoy using smile.gif

PS there's a possibility that your browser security can block the proper function of this code. When you see a security block message "blocked active content" either allow Trap17 as your trusted site or allow this script to run. That is up to you.
Go to the top of the page
 
+Quote Post
Dooga
post Aug 15 2006, 08:16 AM
Post #2


Moderator
Group Icon

Group: [MODERATOR]
Posts: 1,327
Joined: 26-December 04
From: Canada
Member No.: 2,940



This feature is really interesting, it might be useful with large articles or tutorials, and a person can write a summary and "click here to show" the rest or something.
Go to the top of the page
 
+Quote Post
electriic ink
post Aug 15 2006, 08:59 AM
Post #3


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,205
Joined: 11-February 05
From: Heaven
Member No.: 3,709



Hey trap17 now has a spoiler (they are called spoilers, right huh.gif). Better use would be something like this:

QUOTE
Did you read the latest Harry Potter book. Who would've guess that [hide=hp]Thingy[/hide] died? Now discuss!
Go to the top of the page
 
+Quote Post
Plenoptic
post Aug 15 2006, 10:16 AM
Post #4


Trap Double Mocha Member
***************

Group: [HOSTED]
Posts: 2,220
Joined: 5-November 05
From: That one place over there...
Member No.: 13,830



QUOTE(electriic ink @ Aug 15 2006, 04:59 AM) *

Hey trap17 now has a spoiler (they are called spoilers, right huh.gif). Better use would be something like this:


Ya now we can hide the part of who dies and what not or whatever if people don't want to know. People can use the hide for quotes and what not as well like talk about an article and say to view the article go here http://articlelink.com or just have it in quotes.

[hide=Plenoptic]
QUOTE
here's the article
[/hide]

So I guess BBCodes are just like other scripts made into something simpler? Anyway that's cool, good job Buffalo.

This post has been edited by Plenoptic: Aug 15 2006, 10:16 AM
Go to the top of the page
 
+Quote Post
Panzer
post Aug 15 2006, 08:19 PM
Post #5


Super Member
*********

Group: Members
Posts: 309
Joined: 3-July 06
From: Middle Earth
Member No.: 26,018



Great thanks for this, now we can talk about LOST!
Go to the top of the page
 
+Quote Post
MaineFishing45
post Aug 15 2006, 09:57 PM
Post #6


Super Member
*********

Group: Members
Posts: 275
Joined: 17-February 06
From: Wellesley, MA
Member No.: 18,774



Well nice work Buffalo, I prefer the other modification that shows the image saying there is hidden content in the post, but otherwise looks nice and I can see where is might come in handy.
Go to the top of the page
 
+Quote Post
TypoMage
post Aug 16 2006, 01:30 AM
Post #7


Master of All Typos
*********

Group: Members
Posts: 621
Joined: 30-July 06
From: Earth, Usa, Maine, Waterford,
Member No.: 27,507
Spam Patrol



So what does this do? What is it for? I am not reallyunderstanding what it does exactly? So if someone could just explain to me what this does. I know that is hides text but why would we want to do that???!?!?
Go to the top of the page
 
+Quote Post
Plenoptic
post Aug 16 2006, 02:08 AM
Post #8


Trap Double Mocha Member
***************

Group: [HOSTED]
Posts: 2,220
Joined: 5-November 05
From: That one place over there...
Member No.: 13,830



Typo there are many reasons why people would use this. You could have a riddle and hide the answer and after someone guesses they can click to show the answer, or like I said before instead of showing a huge article they can hide it there and people can click if they want to read it (of course still in quotes) or if there is a spoiler to a book that would give it away people can hide it from those who just want to read the other information or they could use it for some content that younger users should not read like Albus' Joke that you replied to earlier.
Go to the top of the page
 
+Quote Post
BooZker
post Aug 16 2006, 10:09 AM
Post #9


Mad Scientist of 2006
*********

Group: [HOSTED]
Posts: 750
Joined: 27-April 06
From: Washington State in the USA
Member No.: 22,661
T17 GFX Crew



Wow this is perfect for so many things. I will have to use this. You should put the HIDE tags in the main reply box next to to the Quote and Code buttons. I think people would use this more too.