vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   bbcode in [code] (https://vborg.vbsupport.ru/showthread.php?t=275287)

januszmk6 12-09-2011 08:17 PM

bbcode in [code]
 
Hello.
I would be greatfull if you could tell me, how can I turn off parse any bbcode in [ CODE ] tag? Is this possible without adding tag [ noparse ] in [ CODE ] ?
Thanks in advance

kh99 12-09-2011 09:00 PM

You can create a plugin using hook location bbcode_fetch_tags and this code:

Code:

$tag_list['no_option']['code']['stop_parse'] = true;

Then if you want it to work for existing posts you can rebuild the post cache (Maintenance -> Update Counters).

januszmk6 12-09-2011 10:09 PM

Thanks, I already tried with stop_parse, but then I didn't rebuild the post cache.
But I have one more question. If I copy into editor link as link, not text, then I get tags [ url ] in code. Is possible to turn this off? I am using standard editor, not wysiwyg.

Edit:
I added $tag_list['no_option']['code']['url'] = false; and now it's working ok :)


All times are GMT. The time now is 11:30 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.01050 seconds
  • Memory Usage 1,707KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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