PDA

View Full Version : [DISABLE] - vB Code


Xenon
10 Jan 2004, 14:34
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:)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Thanks to Chen for the idea of this tag :)

Known Bugs:
Nested Tags:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

mcncyo
10 Jan 2004, 14:40
Where is the hack

Xenon
10 Jan 2004, 14:42
*gg* i forgot the attachment ;)

Xenon
10 Jan 2004, 14:48
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
10 Jan 2004, 14:53
Well, it's a start. Looks good so far. ;)

Xenon
10 Jan 2004, 14:59
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
10 Jan 2004, 15:20
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
10 Jan 2004, 16:48
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
10 Jan 2004, 16:50
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
10 Jan 2004, 17:16
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
10 Jan 2004, 17:39
Thank you, sir. That seemed to fix the disappearing tags. ;)

msimplay
06 Feb 2004, 15:30
it seems to disable wyziwyg editor in mozilla when i use this code

Xenon
06 Feb 2004, 16:02
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
06 Feb 2004, 16:06
It works fine for me and all I use is the WYSIWYG editor. ;)

msimplay
06 Feb 2004, 17:42
sorry i just needed to clear cache

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

msimplay
02 Feb 2006, 10:00
any chance of a 3.5.x update ?

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

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

Thanks for that