Create a new plugin under anymedia in blog_entry_start and put this in it.
PHP Code:
if ($vbulletin->options['anymediaenable'] && ($vbulletin->userinfo['permissions']['anymediapermissions'] & $vbulletin->bf_ugp_anymediapermissions['canuse']))
{
//require_once(DIR . '/includes/functions_newpost.php');
preg_match('{\[url\](.+)\[\/url\]}i', $bloginfo['pagetext'], $match);
if(isset($match))
{
include_once (DIR . '/includes/class_anymedia.php');
$anyMedia = new Anymedia($vbulletin);
$media = $anyMedia->newfetch($match[1], $options);
if ($media['type'] != 'error' && $media['type'] != 'unknown')
{
$mediatag = $vbulletin->options['anymediatag'];
$pattern = array('[url]', '[/url]');
$replace = array("[$mediatag]", "[/$mediatag]");
$bloginfo['pagetext'] = str_replace($pattern, $replace, $bloginfo['pagetext']);
}
}
}
if($vbulletin->options['anymediaimage']) {
// Img
preg_match('{\[IMG\](.+)\[\/IMG\]}i', $bloginfo['pagetext'], $m);
if(!is_null($m[1]))
{
include_once (DIR . '/includes/class_anymedia.php');
$anyMedia = new Anymedia($vbulletin);
$media = $anyMedia->newfetch($m[1], $options);
if ($media['type'] != 'error' && $media['type'] != 'unknown')
{
$mediatag = $vbulletin->options['anymediatag'];
$pattern = array('[IMG]', '[/IMG]');
$replace = array("[$mediatag]", "[/$mediatag]");
$bloginfo['pagetext'] = str_replace($pattern, $replace, $bloginfo['pagetext']);
}
}
}