The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with creating a plugin that processes bbcode
I would like to create a plugin that works when bbcodes are being processed and disallows certain content between the bbcodes. I have done some minor vbulletin modifications but nothing that deals with the bbcode system. Can someone point me at a way to get started on this?
|
#2
|
|||
|
|||
Well, you want to look at includes/class_bbcode.php. One thing you might do is look at using using hook location bbcode_fetch_tags to modify the data for each tag, maybe substitute your own function to handle a bbcode. Otherwise you could use hook bbcode_parse_complete but then I guess you're just working on the entire post. Of course you can always edit the file if there aren't hooks in the palces you need.
The function that's called to do the work is parse(), but it might save a bit of time to look at build_parse_array() and parse_array() (if you follow it though you'll eventually end up there). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|