vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [DISABLE] - vB Code (https://vborg.vbsupport.ru/showthread.php?t=60006)

Xenon 01-09-2004 10:00 PM

[DISABLE] - vB Code
 
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:

[disable]Test:)[/disable]
[disable]
PHP Code:

echo 'Hello'

[/disable]
Thanks to Chen for the idea of this tag :)

Known Bugs:
Nested Tags: [disable]
PHP Code:

[disable]echo 'Hello';[/disable

[/disable]

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

Quote:

Originally Posted by Xenon
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

[QUOTE=Xenon]no need, of an upgrade, as this has been included into the plain vb3.5, the tag there is called [noparse][/QUOTE]

Thanks for that


All times are GMT. The time now is 08:47 AM.

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.01020 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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