Remplace
while ($video_arr = $xoopsDB->fetchArray($result)) {
require XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/videoloadinfo.php';
$xoopsTpl->append('video', $video);
}
By
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...