35
Quote:
bprado wrote:
Hi, i have XOOPS 2.3.3 i put this hack, and is not working!!!
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();
Can someone help me??? I need to put the yogurt instand of the normal profile of Xoops!
Here is what I did not sure if it will work for you?
I have Yogurt 3.3 On XOOPS 2.3.3
I copied the profile/userinfo.php into the root of the yogurt mod.
In the Main XOOPS root you'll find a file call userinfo.php
you'll need to change the header location here This is right at the start of that file
//$xoopsOption['pagetype'] = 'user'; include 'mainfile.php'; $module_handler = xoops_gethandler('module'); $profile_module = $module_handler->getByDirname('profile'); if ($profile_module && $profile_module->getVar('isactive')) { header("Location:".XOOPS_URL."/modules/yogurt/index.php?uid=".$uid); exit(); }
if you just change the xoops/userinfo.php with out copying the profile/userinfo.php to yogurt root it will give an error like the page doesn't exist