voter
04-04-2008, 09:52 AM
I am thinking to replace- deploy bbcodes in specific forums BEFORE BB_PARSER from class_bbcode.php starts to translate them to html.
Especialy I want that all [ url ] tags/codes in forumid=24 be interpreted/translated as of they are [hide][ url ]
In worst case I will hardcode Database and replace all [ url ] strings of posts written in that specific forum, like I presented here
http://www.vbulletin.com/forum/showthread.php?p=1533977#post1533977
But I agree with Jef, that it is a bit ugly to make such a hard changes instead of catching the translation process with a plugin.
Could anybody help me with php code for such a plugin?
I start something, but I am not sure.
if ($forumid == 24) {
if (stristr($message,'[url]')){
$hideurl = str_replace('text/plain','text/html',$hideurl);}
}
?????
:confused:
Which Hook one need to use to stay before BB Parser?
Especialy I want that all [ url ] tags/codes in forumid=24 be interpreted/translated as of they are [hide][ url ]
In worst case I will hardcode Database and replace all [ url ] strings of posts written in that specific forum, like I presented here
http://www.vbulletin.com/forum/showthread.php?p=1533977#post1533977
But I agree with Jef, that it is a bit ugly to make such a hard changes instead of catching the translation process with a plugin.
Could anybody help me with php code for such a plugin?
I start something, but I am not sure.
if ($forumid == 24) {
if (stristr($message,'[url]')){
$hideurl = str_replace('text/plain','text/html',$hideurl);}
}
?????
:confused:
Which Hook one need to use to stay before BB Parser?