3
Thanks heaps for this information, it's going to be a huge help.
To assist anyone else who's not 100% clear on what the previous post means (it took me a little while to figure it out) here's what to do.
The filename to edit is userinfo.php and that should be in the root of your XOOPS directory.
You don't quite enter the code "at the top" but it's pretty close. Here's where to put it...
Just after this code...
$xoopsOption['pagetype'] = 'user';
include 'mainfile.php';
include_once XOOPS_ROOT_PATH.'/class/module.textsanitizer.php';
include_once XOOPS_ROOT_PATH . '/modules/system/constants.php';
And just before this code...
$uid = intval($_GET['uid']);
if ($uid <= 0) {
redirect_header('index.php', 3, _US_SELECTNG);
exit();
}
So the final thing looks like...
$xoopsOption['pagetype'] = 'user';
include 'mainfile.php';
include_once XOOPS_ROOT_PATH.'/class/module.textsanitizer.php';
include_once XOOPS_ROOT_PATH . '/modules/system/constants.php';
if ( !is_object( $xoopsUser ) ) {
redirect_header( XOOPS_URL, 0, _NOPERM );
}
$uid = intval($_GET['uid']);
if ($uid <= 0) {
redirect_header('index.php', 3, _US_SELECTNG);
exit();
}
Hope this helps save someone a little time.
Regs,
Martin