| Re: username as uid ? (Yogurt Social Network) |
| by belia on 2010/1/2 3:58:19 Quote:
i changed the line..cause im using the profile module le="color: #000000"><?php header('Location: '.XOOPS_URL.'/modules/yogurt/index.php?uid=' . $user->uid()); exit (); to le="color: #000000"><?php header('Location: '.XOOPS_URL.'/modules/profile/userinfo.php?uid=' . $user->uid()); exit (); this is working type http://yourdomain.com/username.php?uname=belia and it redirects to my profile info but the url in address bar change to the normal one http://mydomain.com/modules/profile/userinfo.php?uid=82 and not stay as http://yourdomain.com/username.php?uname=belia i found a XOOPS site http://www.redhotchilipeppers.lt/rhcp/ take a look at this the username of the user is zygimantas and uid is 1384 http://www.redhotchilipeppers.lt/rhcp/profile/1384/zygimantas the original url is http://www.redhotchilipeppers.lt/rhcp/profile/userinfo.php?uid=1384 the site seems manage to to do this username in url for profile anyone know how to do somelike in the site above ? |
| Re: username as uid ? |
| by antifmradio on 2008/10/16 23:25:35 bump see here for working code https://xoops.org/modules/newbb/viewtopic.php?post_id=287355#forumpost287355 |
| Re: username as uid ? |
| by antifmradio on 2008/7/27 19:48:32 sory to say but you guys are getting this all wrong the code above that some of you are having trouble with is called a REWRITE RULE this will take a URL that you goto and REWRITE it on the browser to something else if that something ELSE doesnt exist in your domain, then it wont work most of you are actually trying to use REDIRECT Rule i posted this in another thread for everyone to use Look for REDIRECT RULE |
| Re: username as uid ? |
| by sarahmx on 2008/7/27 8:55:35 will try again this later
|
| Re: username as uid ? (Yogurt Social Network) |
| by ericktot on 2008/5/17 1:08:01 I found the code, sarahmx try... create username.php in XOOPS root Quote:
In .htaccess in XOOPS root Quote:
working for me =) |