<tr> <td class="head">Website</td> <td class="even"><a href="http://www.effigyparanormal.com" rel="external">www.effigyparanormal.com</a></td> </tr>
<p class="even"> <img src="images/url.gif" /> <span class="yogurt-profileinfo-label">Website:</span><span class="yogurt-profileinfo-value"><a href="www.effigyparanormal.com" target="_blank">www.effigyparanormal.com</a></span></p>
header("location: ./modules/yogurt/index.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING']) ); exit();
Angela78 wrote:
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
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!
//$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 $isUser==1 }>
content for members of your site
<{else}>
content for non members <{ /if }>