Crist I am trying to get the [media] tag to work in another vB script, inside a subfolder of the forum folder. I am using the following code.
Code:
//anymedia on browseimages
$inlinemedia = "[media]http://www.dragonninja.co.uk/gallery/files/1/PetesSake-YouLeftEndOfStory.mp3[/media]";
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$inlinemedia = $parser->do_parse($inlinemedia, false, false, true, false, false, false);
if ($vbulletin->options['anymediaenable'] && ($vbulletin->userinfo['permissions']['anymediapermissions'] & $vbulletin->bf_ugp_anymediapermissions['canuse']) )
{
$globaltemplates = array_merge($globaltemplates, array('anymedia'));
}
//anymedia on browseimages
When using the $inlinemedia variable on my page, it is showing the surrounding table, and the "download" link at the bottom - but the media player itself does not load. There are no error messages. I have tried putting a copy of the 'players' and 'clientscript' folder inside this subfolder, but it makes no difference. I cannot find anything in the plugins that relate to relative files - I cannot explain why it does not work. Hope you are able to help!