Username:
Password:
Remember me:
Register

Back to forum: Announcements


Search forums via Google


1 Users appreciate this thread.

New BBCode tag! (spoiler) and nochar!
 >  >>
Started by SomeLuigi
(2012-05-17 18:00:45)
SomeLuigi (2012-05-17 18:00:45)
I have just added a new BBCode tag to everything (as it defaults to allowed)


What the heck is a spoiler?, you say.

Press this > show
Well, now you know!


How to use it?

I added two different layouts.


First, we have a spoiler tag that matches nicely with other forums, like MinecraftForums and reddit.

The syntax is very simple, just this:

[spoiler]Hello. This should be hidden in a spoiler[/spoiler]

Next you can use a 3DSPlaza-specific version and name the spoiler. To do this, it is very simple.

[spoiler=This is a spoiler title!]This should be spoiled![/spoiler]
Do not use an icon in a spoiler title! It is buggy!

Now you are thinking "FAKE! You just typed it and it had no effect!"

Well, here I bring in a new 'feature' to accompany BBCode.

You can use &nochar; to replace it with nothing, BUT AFTER THE BBCODE IS PARSED. That makes it extremely special, as you can stop a BBCode from running with it.

To do this, you do something simple like this:

[&nochar;spoiler=This spoiler is blocked by nochar]Blah blah[/spoiler]

and now the BBCode will not run. You can also do this to block a nochar:

&nochar&nochar;;

Getting complicated huh? Well, there aren't really any reasons to block nochar unless you are, like me, telling others about it.

Next up, I added [forum]... to jump to a forum thread ID of course!

Our first simple version is this:
[forum]15972[/forum]
That would display this:
Forum thread: 15972

Again, we have the chance to put our own text for use.

[forum=My lovely little forum thread]15972[/forum]
Which displays this:
My lovely little forum thread

For people who use CSS in their profile:
.forum_link will reference to these types of links.


What is that number? It is the thread ID. You can find it at the bottom of a thread!

Next, because it annoys me when everyone links to one version, I added URLBASE.

&urlbase;
will result in this:
pc.3dsplaza.com/

Why is this useful?
Well, imagine this:

[link]http://pc.3dsplaza.com/chat/[/link]
That's stupid right? I'm on a 3DS, I don't want to click a PC link!

Well, what about if we did this?

[link]http://&urlbase;chat/[/link]

That will put a link up for ALL VERSIONS, depending on which the viewer is on!




So, feedback on these four (useful?) updates is appreciated, so leave your comments below.


This post has been edited one or more times, the last time was:
2012-05-17 20:46:37

SomeLuigi is changing in 2015.
CoolApps (2012-05-17 18:07:11)
Just a test show
Amazing code!

Newer account: NodePoint
DaftPunk (2012-05-17 18:08:16)
DONT TOUCH IT show
I said don't touch it u moron

Robdeprop (2012-05-17 18:33:33)
I love the originality you added to it
10 Years 3DSPlaza!
SynTM (2012-05-17 19:47:37)
Cool..

Spoiler: show
Spoiler .3.

Ron1212 (2012-05-17 21:39:39)
Spoiler: show
THIS IS AWSHUM!!!

Yo yo yo RON1212 IN THE HOUSE KSKDVICHSJSJEJSJSJKS REKT
pikarceus (2012-05-17 22:19:21)
Spoiler: show


This post has been edited one or more times, the last time was:
2012-05-17 22:19:47

BioMan8 (2012-05-17 22:36:48)
Invalid nesting error at tag #spoiler (phase "spoiler=(.+)") when parsing
[spoiler]Hello, select something?[spoiler=I liek Favicons!][/spoiler]
### end of error report. extra information that may or may not be useful to developers: *IBV*spoiler*OCTTWO*1*OCT*1*CCT*0*END OF EXTRA INFO*
[/spoiler]
SPCOxion (2012-05-18 23:45:25)
Invalid nesting error at tag #spoiler (phase "spoiler=(.+)") when parsing
[spoiler]Keep going.[spoiler]Go back.[/spoiler]
### end of error report. extra information that may or may not be useful to developers: *IBV*spoiler*OCTTWO*1*OCT*0*CCT*0*END OF EXTRA INFO*
[/spoiler]
Green_plesioth (2012-05-19 01:55:49)
*sings TROLOLOLOLOL show

manster hanter scrubs
(.~Ab~.) (2012-05-19 07:54:43)
Testing icon show
LOLOLLOOLOLOLOLLLLOOOLLLOOOOLOLOL0L

(.~Ab~.) (2012-05-19 07:56:32)
And that's what happens when you use icons.
Smashsonic123 (2012-05-19 18:31:23)
Thanks for making this.
Look at my Signature.
Nintendo Network ID: RoweeR
[bold]Shrek needs to be in Smash bros and FNaF.[/bold]
NINTENDO64 (2012-05-19 20:22:18)
Spoiler: show
This is a regular spoiler

This is a 3DS Plaza spoiler! show
You just clicked show...

"If today were the last day of my life, would I want to do what I am about to do today?"
-Steve Jobs

DBS
 >  >>

Log in to submit a comment

This topic's ID: 15972

Back to forum: Announcements




Total registered users: 8321
New registered users today: 7
Newest registered user: ElegantVulpes

©  Copyright 2026 3DSPlaza. All Rights Reserved