21
based on
https://xoops.org/modules/newbb/viewtopic.php?post_id=316663#forumpost31666
ok bare with me...a newbie in mysl/php
i tried something like this but its not working..other user still can access the page
if (is_object($xoopsUser)) {
$sql = "SELECT uid FROM ".$xoopsDB->prefix("users")." WHERE uid NOT IN (1) AND NOT IN (34)";
$result = $xoopsDB->query($sql);
if ($result && $xoopsDB->getRowsNum($result) > 0) {
{
redirect_header(XOOPS_URL, 5, _NOPERM);
exit();
}
}