Menu

#99 xoops 2.3 installation gide

open
nobody
None
5
2008-12-25
2008-12-25
Anonymous
No

original description
---------------
Hack to make the yogurt userpage as the main userpage of your site:

Open userinfo.php in the root of your site, search at the very beggining of the file for

$uid = intval($_GET['uid']);
if ($uid <= 0) {
redirect_header('index.php', 3, _US_SELECTNG);
exit();
}

Add after this the following lines:

header("Location:".XOOPS_URL."/modules/yogurt/index.php?uid=".$uid);
exit();
-------------------

aren't we supposed to paste the code in modules/profile/userinfo.php ? and not in root/userinfo.php ?

Discussion


Log in to post a comment.