PDA

View Full Version : [DISABLE] - vB Code


Xenon
01-09-2004, 10:00 PM
This hack creates a new vb-tag disable. Vb-Tags surrounded by
won't be parsed, also smilies won't be parsed as well.
It's a small hack, so i cannot say for sure if it works properly on all tags, but the basic ones :)

Version: 1.00 Gamma
Well, not more to say:

Test:)
echo 'Hello';
Thanks to Chen for the idea of this tag :)

Known Bugs:
Nested Tags: echo 'Hello';

mcncyo
01-10-2004, 12:40 PM
Where is the hack

Xenon
01-10-2004, 12:42 PM
*gg* i forgot the attachment ;)

Xenon
01-10-2004, 12:48 PM
i moved it to beta hacks for now, as it seems the php and code tags make problems.
i have to check that out before :)

Boofo
01-10-2004, 12:53 PM
Well, it's a start. Looks good so far. ;)

Xenon
01-10-2004, 12:59 PM
Uploaded Beta 2:
PHP tags are working now.
there are just problems with nested tags.

If no further bugs occur, i will move it back to full releases in a few days :)

Boofo
01-10-2004, 01:20 PM
If you use the disable tags and go to edit the message, the disable tags are gone and the code is no longer disabled. Shouldn't the tags stay even on an edit? ;)

Xenon
01-10-2004, 02:48 PM
As you can see on the first post in this thread, i already edited it and it worked perfectly.

But as i know, you are using the wysiwyg editor, it may be a bug with this editor.
i'll check it out :)

Boofo
01-10-2004, 02:50 PM
As you can see on the first post in this thread, i already edited it and it worked perfectly.

But as i know, you are using the wysiwyg editor, it may be a bug with this editor.
i'll check it out :)
Thank you, sir, that would be great! ;)

Xenon
01-10-2004, 03:16 PM
Ok, i checked throgh the function_bbcodeparse.php again, and i think i found out what was wrong :)

i classify it as Gamma now, as it works with wysiwyg as well now.
Just the nested tags don't work 100% perfect :(

btw. as wysiwyg uses JS, it's not true wysiwyg with this hack, as things are parsed in the editor won't be parsed on showthread.

Maybe i'll write a more wysiwyg version when i find the time, but it's working, at that's most important :)

Boofo
01-10-2004, 03:39 PM
Thank you, sir. That seemed to fix the disappearing tags. ;)

msimplay
02-06-2004, 01:30 PM
it seems to disable wyziwyg editor in mozilla when i use this code

Xenon
02-06-2004, 02:02 PM
my hack doesn't change vb settings, so it couldn't disable wysiwyg editors.

but as the hack is working on the php-base of the vb and the wysiwyg uses JS, there can be discrepancies between them.

Boofo
02-06-2004, 02:06 PM
It works fine for me and all I use is the WYSIWYG editor. ;)

msimplay
02-06-2004, 03:42 PM
sorry i just needed to clear cache

msimplay
02-06-2004, 03:43 PM
was wondering if someone could make a code button for the disable bbcode or added to the faq
either one would do

msimplay
02-02-2006, 08:00 AM
any chance of a 3.5.x update ?

Xenon
02-02-2006, 11:06 AM
no need, of an upgrade, as this has been included into the plain vb3.5, the tag there is called [noparse]

msimplay
02-02-2006, 12:07 PM
no need, of an upgrade, as this has been included into the plain vb3.5, the tag there is called [noparse]

Thanks for that