2008/10/16 23:25
antifmradio
Just can't stay away
Posts: 457
Since: 2007/8/15
2010/1/2 3:58
belia
Just popping in
Posts: 83
Since: 2007/12/18
ericktot wrote:I found the code, sarahmx try... create username.php in XOOPS rootQuote: require_once "mainfile.php"; unset($uname); if (isset($_GET['uname'])) $uname = $_GET['uname']; if (isset($uname)) { $member_handler =& xoops_gethandler('member'); $criteria = new Criteria("uname", $uname); if ($member_handler->getUserCount($criteria) == 1) { $user_list =& $member_handler->getUsers($criteria); list($user) = $user_list; header('Location: '.XOOPS_URL.'/modules/yogurt/index.php?uid=' . $user->uid()); exit (); } else { header('Location: '.XOOPS_URL.'/user.php'); exit (); } }?>In .htaccess in XOOPS rootQuote:RewriteEngine OnRewriteRule ^([A-Za-z_0-9-]+)((/)|())?$ http://yourdomain.com/username.php?uname=$1working for me =)
require_once "mainfile.php"; unset($uname); if (isset($_GET['uname'])) $uname = $_GET['uname']; if (isset($uname)) { $member_handler =& xoops_gethandler('member'); $criteria = new Criteria("uname", $uname); if ($member_handler->getUserCount($criteria) == 1) { $user_list =& $member_handler->getUsers($criteria); list($user) = $user_list; header('Location: '.XOOPS_URL.'/modules/yogurt/index.php?uid=' . $user->uid()); exit (); } else { header('Location: '.XOOPS_URL.'/user.php'); exit (); } }?>
RewriteEngine OnRewriteRule ^([A-Za-z_0-9-]+)((/)|())?$ http://yourdomain.com/username.php?uname=$1
header('Location: '.XOOPS_URL.'/modules/yogurt/index.php?uid=' . $user->uid()); exit ();
header('Location: '.XOOPS_URL.'/modules/profile/userinfo.php?uid=' . $user->uid()); exit ();
Advanced Search
318 user(s) are online (50 user(s) are browsing Support Forums)
Members: 0
Guests: 318