The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom bbcode tag - handling in editor?
Hi,
I'm trying to add a tag that needs to do more than html or js (so I can't use the manager), but I bumped into a puzzler right away. I did the following: - in core/vb/api/bbcode.php, fetchTagList(), added: $tag_list['no_option']['test'] = array('callback'=> 'handle_bbcode_code', etc Basically, the same assignment as for the code tag, using the same handler function, just changing the tag name. - in core/includes/class_bbcode.php, fetch_tag_list(), the same thing. Now when I make a post that has (without the space): [c ode]Foo[/code] [test]Bar[/test] Both are properly and identically formatted. Great. However, when I then edit that post, it looks like this in the editor: [c ode]Foo[/code] Code: bar When I save that post, the test tags are lost. Is there another hook for handling the tags inside the editor that I'm missing somewhere? Thanks in advance. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|