View Full Version : [disable] vB Code
Admin
05-26-2002, 10:00 PM
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 tag, like this:
Tsk tsk...
Which becomes:
Tsk tsk...
And you can even nest the tags:
[disable]Tsk tsk...
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.
Admin
05-27-2002, 11:48 AM
A text version of the hack.
Sparkz
05-27-2002, 11:54 AM
Could you please go do something unproductive for a while? You're making the rest of us look lazy. :p
Admin
05-27-2002, 11:57 AM
Actually, I'm working on some very unproductive as we speak. :) There is a hint in the hack... ;)
Xenon
05-27-2002, 12:47 PM
yeah, usefull but your trick with the is not bad too ;)
test if it ist rekursiv: Test
edit: ok, i see it isn't ^^
Admin
05-27-2002, 12:47 PM
Originally posted by Xenon
test if it ist rekursiv: [diasble]Test[/disable]
I told you it's far from perfect.
Xenon
05-27-2002, 12:50 PM
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.. ;)
ForKmaN
05-27-2002, 01:50 PM
I like
/me installs
heretic
05-27-2002, 02:04 PM
thank you :)
LouChipher
05-28-2002, 08:44 AM
:ermm:test
Chris M
06-11-2002, 12:55 PM
Wheeeee!!!
Wheeeee!!!
Satan
Admin
06-11-2002, 01:35 PM
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.
<?=$hello?>
Admin
06-11-2002, 01:36 PM
Originally posted by Xenon
test if it ist rekursiv: Test
edit: ok, i see it isn't ^^
Say what?! ;) :D
Boofo
06-11-2002, 02:11 PM
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?
Admin
06-11-2002, 02:20 PM
Let's say you want to explain your users how to use the [code] tag.
You tell them, use it like this:
My code;
But alas -- it's parsed. :)
So you put around it, like this:
[disable]My code;
Boofo
06-11-2002, 02:36 PM
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?)
My vb code
Originally posted by FireFly
Let's say you want to explain your users how to use the [code] tag.
You tell them, use it like this:
My code;
But alas -- it's parsed. :)
So you put around it, like this:
[disable]My code;
Xenon
06-11-2002, 02:38 PM
good work chen :)
Stealthy
07-15-2002, 04:46 AM
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!
Admin
07-15-2002, 06:36 AM
Nope, since [attachment] is not a real vB Code.
Very useful hack, thanks.
Boofo
07-16-2002, 08:49 PM
Chen,
What do we need to change to update this hack to work with the slashes problem we found in the other thread? :)
Admin
07-17-2002, 12:59 PM
Nothing, this has nothing to do with that.
Boofo
07-17-2002, 01:24 PM
DOHH!! I forgot which thread I was in. Sorry about that. :)
Originally posted by FireFly
Nothing, this has nothing to do with that.
afterlab
07-29-2002, 02:19 PM
Thanks for the great hack, FireFly. :banana:
Boofo
07-29-2002, 02:32 PM
Here you go.
In vbcode_language.js find
----------
php_text = "Insert text with PHP syntax highlighting";
----------
After that add
----------
disable_text = "Insert DISABLE vBcode tag into your message";
----------
In vbcode_buttons template find
----------
<input type="button" class="bginput" value="PHP" title="PHP CODE" onclick="vbcode(this.form,'PHP','')" onmouseover="stat('php')">
----------
After that add
----------
<input type="button" class="bginput" value="DISABLE" title="DISABLE VBCODE" onclick="vbcode(this.form,'DISABLE','')" onmouseover="stat('disable')">
--------
Originally posted by afterlab
Very useful hack, but how can I go about adding a button along with the others up top (when posting and private messaging) to use this "disable" code.
Thanks for the great hack, FireFly.
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.
Kars10
03-19-2003, 06:26 PM
Works like a charm!!
Thankx FireFly... :)
Oblivion Knight
08-17-2003, 08:11 AM
Still running flawlessly on 2.3.2 :)
Thanks Chen!
datainternet
03-24-2004, 02:42 PM
I need this great Hack for VB 3.
Is this possible?
MFG datainternet
NTLDR
03-24-2004, 03:14 PM
Xenon realeased this a while ago for vB3 IIRC.
datainternet
03-24-2004, 03:30 PM
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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.