To allow posting of videos in forums (www.racetime.com), I've been using a plug-in called AllVideos Reloaded. It's really nice, but in order to work inside of a component (Fireboard), it needs an API. I'm not much of a programmer, so I'm not sure where the API code should be inserted.
The developer of AVL has agreed to help in this conversation here:
http://forum.joomla.org/viewtopic.php?f=470&t=245658&sid=a7e65c5494e7f2271cfb4b1556d973c5&p=1252494#p1252494
API Code:
| Code: |
$output = '';
if (JPluginHelper::importPlugin('content', 'avreloaded')) {
$app = &JFactory::getApplication();
$res = $app->triggerEvent('onAvReloadedGetVideo', array($mediacode));
if (is_array($res) && (count($res) == 1)) {
$output = $res[0];
}
}
|