![]() |
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 |
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). |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|