ccBoard Forum :: Bugs
Welcome Guest   [Register]  [Login]
 Subject :"cid" bug.. 19-07-2010 05:47:04 
motimedia
Joined: 19-07-2010 11:38:24
Posts: 1
Location

TTVideo only seems to read the first digit of the "cid" and displays the wrong video. Examples:

• If the cid is "10"-"19" it will only display cid item number "1"

• If the cid is "20"-"29" it will only display cid item number "2" ETC... However in the URL it will say it's showing the correct cid, but its not.

Example: It will say it's displaying: http://mydomain.com/index.php?option=com_ttvideo&task=video&cid=10 but it is really displaying: http://mydomain.com/index.php?option=com_ttvideo&task=video&cid=1 Please Help!

IP Logged
Last Edited On: 19-07-2010 15:30:01 By mar10 for the Reason
 Subject :Re:.. 19-07-2010 15:07:36 
mar10
Joined: 18-08-2009 22:01:46
Posts: 11
Location: London
 
Hi motimedia, sorry to hear that, I'm looking into it now and will let you know once the bug is fixed.
IP Logged
 Subject :Re:.. 19-07-2010 15:22:48 
mar10
Joined: 18-08-2009 22:01:46
Posts: 11
Location: London
 
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
IP Logged
Last Edited On: 27-07-2010 16:59:28 By mar10 for the Reason
 Subject :Re:.. 08-01-2011 06:37:50 
dimitris
Joined: 08-01-2011 13:25:11
Posts: 1
Location

Hello, First of all thanks for this nice component. (TTVideo)

The problem I'm having is that when 'Search Engine Friendly URLs' is enabled, videos are not displayed. When I disable 'Search Engine Friendly URLs' everything works ok.

ie.

http://foobar.net/en/videos/2-tux?cid=1 ---> No videos found...

http://foobar.net/index.php?option=com_ttvideo&view=videolist&id=0&Itemid=2&lang=en ---> Gets displayed

 

IP Logged
Last Edited On: 08-01-2011 06:49:56 By dimitris for the Reason
 Subject :Re:.. 11-02-2011 08:45:36 
maumau
Joined: 11-02-2011 15:41:35
Posts: 1
Location
Yep I'm getting the same error, with SEF URLs enabled. So http://foobar.net/en/videos/2-tux?cid=1 ---> No videos found... If I re-write to: http://foobar.net/en/videos/1/2-tux ---> Video plays So maybe the router.php is faulty?
IP Logged
 Subject :Re:.. 24-02-2011 13:21:11 
mar10
Joined: 18-08-2009 22:01:46
Posts: 11
Location: London
 
Yes we are aware of this problem. It seems to be intermittent as some people get it while others don't. We will look at fixing this in the next release, but I can't promise that will be soon. Thanks for the feedback.
IP Logged
 Subject :Re:.. 27-02-2011 16:38:21 
hominid4
Joined: 27-02-2011 22:50:41
Posts: 2
Location

Ugh, was having this problem and just saw this. This makes the component unusable for us, too bad, really like it and what we needed. Will check back periodically to see if it's fixed. Thanks.

IP Logged
Last Edited On: 28-02-2011 10:56:02 By hominid4 for the Reason
 Subject :Re:.. 30-01-2012 03:05:07 
wowwow
Joined: 30-01-2012 07:36:13
Posts: 98
Location
While in the performance, cost-effective than the previous generation of glasses. New version of the glasses is listed, the first generation of stereoscopic glasses will gradually withdraw from the market
IP Logged
Notre magasin en ligne fournit PO WOW bon marché www.cheapwowgolds.fr
 Subject :Re:.. 03-05-2012 21:41:19 
jocvtrhythgd
Joined: 04-05-2012 02:22:07
Posts: 10
Location
Ok, I've fixed that now. Terribly sorry, I didn't test more than 10 videos :)
IP Logged
Tiffany & Co Out
Mac Cosmetics Outlet
Longchamp Le Pliage Travel
Page # 


Powered by ccBoard