| Re: Bug : Grant access to Xoopstube |
| by alain01 on 2013/1/4 8:20:33 Yet that : For singlevideo.php, for "other videos from : X" Replace le="color: #000000"><?php while ($arr = $xoopsDB->fetchArray($result)) { $videouid['title'] = $xtubemyts->htmlSpecialCharsStrip($arr['title']); $videouid['lid'] = $arr['lid']; $videouid['cid'] = $arr['cid']; $videouid['published'] = xoopstube_time(formatTimestamp($arr['published'], $xoopsModuleConfig['dateformat'])); $xoopsTpl->append('video_uid', $videouid); } by le="color: #000000"><?php while ($arr = $xoopsDB->fetchArray($result)) { if (xtube_checkgroups($arr['cid']) == true) { $videouid['title'] = $xtubemyts->htmlSpecialCharsStrip($arr['title']); $videouid['lid'] = $arr['lid']; $videouid['cid'] = $arr['cid']; $videouid['published'] = xoopstube_time(formatTimestamp($arr['published'], $xoopsModuleConfig['dateformat'])); $xoopsTpl->append('video_uid', $videouid); } } |
| Re: Bug : Grant access to Xoopstube |
| by Mamba on 2013/1/4 3:53:21 Quote: It's ok with this code. Yes, that works! Thanks! |
| Re: Bug : Grant access to Xoopstube |
| by alain01 on 2013/1/3 23:21:34 In the modules/xoopstube/viewcat.php file Remplace le="color: #000000"><?php while ($video_arr = $xoopsDB->fetchArray($result)) { require XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/videoloadinfo.php'; $xoopsTpl->append('video', $video); } By le="color: #000000"><?php while ($video_arr = $xoopsDB->fetchArray($result)) { if (xtube_checkgroups($video_arr['cid']) == true) { require XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/videoloadinfo.php'; $xoopsTpl->append('video', $video); } } It's ok with this code. Nikita said that for multi page, there is a trouble, and that is complex to fix it... |
| Re: Bug : Grant access to Xoopstube |
| by alain01 on 2013/1/3 15:19:17 Hoooo ! True, permission solved in index page but not in : - /xoopstube/viewcat.php?selectdate=xxxxxxx - /xoopstube/viewcat.php?list= |
| Re: Bug : Grant access to Xoopstube |
| by Mamba on 2013/1/3 14:44:24 First, I am very happy to see the contributions to bug fixing! This is great! On this particular bug, I am not sure, I understand the fix? In my case, I don't see a difference - it still lists all the days, and I can click on the link for a particular day, and see the thumb of the video. In both cases, when I click on the video thumb, it checks permissions, and if I don't have it, it creates an error message. [EDIT] OK, I see it now - it is related to the main page. I was thinking that it is related to the "Latest Listings" link: xoopstube/newlist.php?newvideoshowdays=7 which still needs to be fixed. But on the front page, I don't see a difference with or without the fix. It still shows only categories the user is entitled to see, but when I click on a particular letter, it still shows the video thumbnail. |