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


All times are GMT. The time now is 08:28 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.01032 seconds
  • Memory Usage 1,729KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete