|
Ok, I've fixed that now. Terribly sorry, I didn't test more than 10 videos :)
Here is the solution.
You need to change this file in your Joomla install: components/com_ttvideo/ttvideoController.php
- find this function at the bottom:
// display a single video
function video() {
$cid = JRequest::getVar('cid', null, 'default'); //Read cid
if($cid === null) {
JError::raiseError(500, 'cid parameter missing from the request');
}
$videoId = (int)$cid[0];
$viewName = JRequest::getVar( 'view', 'video' );
$viewLayout = JRequest::getVar( 'layout', 'default' );
$view = & $this->getView($viewName, 'html');
if ($model = & $this->getModel('ttvideo')) $view->setModel($model, true);
$view->setLayout($viewLayout);
$view->displayVideo($videoId);
}
- delete this line:
$videoId = (int)$cid[0];
- then change this line to:
$view->displayVideo($videoId);
to
$view->displayVideo($cid);
Alternatively you can download the component again. Then extract the files and then copy the file:
site/tvideoController.php
into your Joomla directory to replace
components/com_ttvideo/ttvideoController.php
Cheers
Ok, I've fixed that now. Terribly sorry, I didn't test more than 10 videos :)
Here is the solution.
You need to change this file in your Joomla install: components/com_ttvideo/ttvideoController.php
- find this function at the bottom:
// display a single video
function video() {
$cid = JRequest::getVar('cid', null, 'default'); //Read cid
if($cid === null) {
JError::raiseError(500, 'cid parameter missing from the request');
}
$videoId = (int)$cid[0];
$viewName = JRequest::getVar( 'view', 'video' );
$viewLayout = JRequest::getVar( 'layout', 'default' );
$view = & $this->getView($viewName, 'html');
if ($model = & $this->getModel('ttvideo')) $view->setModel($model, true);
$view->setLayout($viewLayout);
$view->displayVideo($videoId);
}
- delete this line:
$videoId = (int)$cid[0];
- then change these lines:
$cid = JRequest::getVar('cid', null, 'default'); //Read cid
$view->displayVideo($videoId);
to
$cid = JRequest::getInt('cid', null, 'default'); //Read cid
$view->displayVideo($cid);
Alternatively you can download the component again. Then extract the files and then copy the file:
site/tvideoController.php
into your Joomla directory to replace
components/com_ttvideo/ttvideoController.php
Cheers |