![]() |
[disable] vB Code
This was requested a couple of days ago. Very simple but pretty useful for most boards.
With this hack you can use vB Code without having to escape it, add asterisks, spaces, etc. All you need to do is surround the vB Code with the new [disable] tag, like this: [disable][disable]Tsk tsk...[/disable][/disable] Which becomes: [disable]Tsk tsk...[/disable] And you can even nest the tags: [disable][disable][disable]Tsk tsk...[/disable][/disable][/disable] The tag name is also configured in the hack, so you can change it if you want (by default it is disable). This hack has been updated and now it is -- or at least I'd like to this it is -- perfect. :) Enjoy. |
A text version of the hack.
|
Could you please go do something unproductive for a while? You're making the rest of us look lazy. :p
|
Actually, I'm working on some very unproductive as we speak. :) There is a hint in the hack... ;)
|
yeah, usefull but your trick with the [disable][/disable] is not bad too ;)
test if it ist rekursiv: [disable][disable]Test[/disable][/disable] edit: ok, i see it isn't ^^ |
Quote:
|
i does not need to be perfect, i just wantet to test it out chen :)
but you are very fast, you have quotet my post which i have editet 2 secounds later because of disspellings.. ;) |
I like
/me installs |
thank you :)
|
:ermm:test
|
[disable]Wheeeee!!![/disable]
Wheeeee!!! Satan |
Hack updated! I know I said I won't, but today I had a great idea to fix it -- so I did. :)
Read the first post for more info. [disable] PHP Code:
|
Quote:
|
Ok, it looks like I'm going to have to be the one who's the dummy on this one. :) What does this actually do? And where would I use it? Could someone show an example in here? Please?
|
Let's say you want to explain your users how to use the [code] tag.
You tell them, use it like this: Code:
My code; So you put [disable] around it, like this: [disable] Code:
My code; |
I think I get it. Instead of taking the ending close tag and doing it in the code box, it just does it in the message without a box now so you can see both tags like I have it here right? And it only works for vb code? Is there a way to get it to work for PHP code too? :) (Am I even close on this one?)
[disable] Code:
My vb code Quote:
|
good work chen :)
|
FireFly, I have this hack installed as well as your new "Attached Images Elsewhere" hack installed but I cannot get this to disable the [ attachment ] code.
Is there a way to do this as well? Thanks! |
Nope, since [attachment] is not a real vB Code.
|
Very useful hack, thanks.
|
Chen,
What do we need to change to update this hack to work with the slashes problem we found in the other thread? :) |
Nothing, this has nothing to do with that.
|
DOHH!! I forgot which thread I was in. Sorry about that. :)
Quote:
|
Thanks for the great hack, FireFly. :banana:
|
Here you go.
Code:
In vbcode_language.js find Quote:
|
Y'know, 8 times out of 10, when I get worried because I need a hack that couldn't possibly exist (because such a hack would make my life just too darn easy!) a search of the Hacks database reveals that someone has already created it. And the person who's created the hack is almost always Chen.
You, sir, rock. A simple but extremely handy little hacklet. |
Works like a charm!!
Thankx FireFly... :) |
Still running flawlessly on 2.3.2 :)
Thanks Chen! |
I need this great Hack for VB 3.
Is this possible? MFG datainternet |
Xenon realeased this a while ago for vB3 IIRC.
|
Oh I'm really sorry.
I didn't find anything with the search and so i thought this hack wasn't release for vb 3. MFG datainternet |
All times are GMT. The time now is 04:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|