cclaerhout
08-06-2009, 10:07 PM
Request description:
This message deals about my hack Advanced BB Codes (www.vbulletin.org/forum/showthread.php?t=220257). 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 (http://www.gargi.org/showthread.php?t=1769), 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
This message deals about my hack Advanced BB Codes (www.vbulletin.org/forum/showthread.php?t=220257). 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 (http://www.gargi.org/showthread.php?t=1769), 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