vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin.org Site Feedback (https://vborg.vbsupport.ru/forumdisplay.php?f=7)
-   -   SQL BBCode (https://vborg.vbsupport.ru/showthread.php?t=168734)

Opserty 06-18-2008 11:03 AM

Just in case, class_bbcode_alt.php has an array of tags to ignore when parsing for the WYSIWYG editor you could maybe add SQL to the array somehow. Might not work, but I saw it yesterday so just thought I'd mention it :D

Lizard King 06-18-2008 11:25 AM

Quote:

Originally Posted by Opserty (Post 1552495)
Just in case, class_bbcode_alt.php has an array of tags to ignore when parsing for the WYSIWYG editor you could maybe add SQL to the array somehow. Might not work, but I saw it yesterday so just thought I'd mention it :D

You saved me a lot of headache :) Thanks for the tip ;)

Boofo 06-18-2008 12:06 PM

I think the SQL tags were were written by Xenon a long time back. I have no idea who has updated it here since then.

Paul M 06-18-2008 03:00 PM

Quote:

Originally Posted by Opserty (Post 1552495)
Just in case, class_bbcode_alt.php has an array of tags to ignore when parsing for the WYSIWYG editor you could maybe add SQL to the array somehow. Might not work, but I saw it yesterday so just thought I'd mention it :D

Thanks. I'll have a look at that in the next few days, if its that simple then it will get fixed.

Dismounted 06-19-2008 06:43 AM

I've just had a look, and this might work (looked in 3.7 files though). Create a plugin at bbcode_create. Add this PHP:
PHP Code:

if ($this->is_wysiwyg() AND (isset($this->tag_list['no_option']['sql']) OR isset($this->tag_list['option']['sql'])))
{
    unset(
$this->tag_list['no_option']['sql'], $this->tag_list['option']['sql']);




All times are GMT. The time now is 03:53 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.00994 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_php_printable
  • (2)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
  • (5)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