11
sorry went shoppin as ran out of coffee and stuff..
ok instead of the hack above
edit userinfo.php
find on line 65 (or thereabouts)
$member_handler =& xoops_gethandler('member');
$thisUser =& $member_handler->getUser($uid);
add right after
if (!$xoopsUser->getVar('posts') >= 5) {
redirect_header("index.php", 2, 'You need a minimum of 5 posts to view member profiles');
exit();
}
so it looks like this after editing:
$member_handler =& xoops_gethandler('member');
$thisUser =& $member_handler->getUser($uid);
if (!$xoopsUser->getVar('posts') >= 5) {
redirect_header("index.php", 2, 'You need a minimum of 5 posts to view member profiles');
exit();
}
if (!is_object($thisUser) || !$thisUser->isActive() ) {
redirect_header("index.php",3,_US_SELECTNG);
exit();
}