The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[BBCODE] How to play with {param} (%1$s) and {option} (%2$s) in php ?
Request description:
This message deals about my hack Advanced BB Codes. The fellow one imports some custom BB code tags in vBulletin BB Code Manager. So these BB Codes are of course using {param} (%1$s) and {option} %2$s". I would like to know how check in php and modify the value of %1$s and %2$s. Exemple: Let's take the example of BIMGX, a resizing picture BBCODE with the option for user to set the width. I would like to control the inserted value (with regex for example) and to modify it if it's too high. To do that I need to catch %1$s and %2$s values per BBCODE. Where and how can I call the variables ? Things I know I know $tag_list variable and might play with it in "bbcode_fetch_tags" hook of class_bbcode.php, but I don't see how. Thanks to this tutorial, I know how to rewrite my hack to make what I want. But I would prefer to keep the BB Codes in BB Code manager. So that's why I'm asking for your help C?dric |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|