vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [disable] vB Code (https://vborg.vbsupport.ru/showthread.php?t=39096)

Admin 05-26-2002 10:00 PM

[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.

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 [disable][/disable] is not bad too ;)


test if it ist rekursiv: [disable][disable]Test[/disable][/disable]

edit: ok, i see it isn't ^^

Admin 05-27-2002 12:47 PM

Quote:

Originally posted by Xenon
test if it ist rekursiv: [disable][diasble]Test[/disable][/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

[disable]Wheeeee!!![/disable]

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.

[disable]
PHP Code:

<?=$hello?>

[/disable]

Admin 06-11-2002 01:36 PM

Quote:

Originally posted by Xenon
test if it ist rekursiv: [disable][disable]Test[/disable][/disable]

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:
Code:

My code;
But alas -- it's parsed. :)

So you put [disable] around it, like this:
[disable]
Code:

My code;
[/disable]

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?)

[disable]
Code:

My vb code
[/disable]

Quote:

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:
Code:

My code;
But alas -- it's parsed. :)

So you put [disable] around it, like this:
[disable]
Code:

My code;
[/disable]


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.

N9ne 07-15-2002 08:37 AM

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. :)

Quote:

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.

Code:

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')">
--------

Quote:

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.


kira 10-14-2002 10:15 PM

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


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
  • Page Generation 0.01189 seconds
  • Memory Usage 1,772KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete