<?php
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
$groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS);
//ADMIN REDIRECT
if ( in_array("1", $groups) ) {
header('Location: http://www.consultsports.com/modules/cjaycontent/index.php?id=5');
exit;
}
//Subscribed REDIRECT
elseif ( in_array("4", $groups) ) {
header('Location: http://www.consultsports.com/modules/cjaycontent/index.php?id=6');
exit;
}
//Registered REDIRECT
elseif ( in_array("2", $groups) ) {
header('Location: http://www.consultsports.com/modules/cjaycontent/index.php?id=7');
exit;
}
//Anonymous REDIRECT
else {
header('Location: http://www.consultsports.com/modules/cjaycontent/index.php?id=8');
exit;
}
?>
Working like a charm. At least for Admin and Anon... testing the other two now.