Lots of stuff to check out and cool hacks, so instead of double-posting it here, check it out at the home of piCal.
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1;
$modversion['sub'][1]['url'] = "submit.php";
global $xoopsUser;
if(! empty($xoopsUser)) {
$group = $xoopsUser->getGroups();
if (in_array(1, $group) || in_array(4, $group) || in_array(5, $group)) {
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1;
$modversion['sub'][1]['url'] = "submit.php";
}
}
for ($i=0; $i<count($usersid); $i++) {
//echo $usersid[$i];
if ($usersid[$i]==$uid) {
return true;
}
}
return false;
for ($i=0; $i<count($usersid); $i++) {
//echo $usersid[$i];
// HACK: CODE ADDED
if ($uid == null) {
return false;
}
// END HACK
if ($usersid[$i]==$uid) {
return true;
}
}
return false;
<{if $xoops_isadmin == true}>
•
<a href="<{$xoops_url}>/admin.php">Admin Panela>
<{/if}>
•
<a href="<{$xoops_url}>/user.php"><{$xoops_uname}> Accounta>