Log in

View Full Version : members urls


VaaKo
12-12-2005, 07:55 PM
I was wondering if someone can create a hack that will allow members to have their own url names

so instead of
www.oneforum.org/member.php?u=2505

he can have something like
www.oneforum.org/doncorleone

is it possible?

Cyricx
12-12-2005, 08:41 PM
I think Amykhar did something like this in her Userpage hack.

Do a search for "Custom Userpage" or do a member search for Amykhar and look at her released hacks.

Andreas
12-12-2005, 09:41 PM
mod_rewrite is your friend

VaaKo
12-12-2005, 10:46 PM
mod_rewrite is your friend

how is this possible with mod_rewrite?

and the custom users page, does it allow users to have their own urls?

Inferno Dragon
12-14-2005, 02:37 PM
yes I am also interested in making my profile pages like: www.domain.com/username.html

StGaensler
12-14-2005, 08:00 PM
Place this rewrite rule in an .htaccess-file in the forum root:
RewriteEngine On
RewriteRule ^([^/]+)\.html$ member.php?username=$1
This has only one disadvantage: you can't place any html-file in the forum-root, because the url would be rewritten by this expression.

@Don Corleone
Take this:
RewriteEngine on
RewriteRule ^([^/.]+)$ member.php?username=$1

Depending on your configuration it could be that you need following line before the rewrite rules:Options FollowSymLinks

VaaKo
01-11-2006, 01:45 PM
and how could the members select their names?

StGaensler
01-11-2006, 02:08 PM
The names are the nicknames of the members registered on your board.
My page would be: http://example.net/StGaensler
This ceases to function, if a member has a "/" or a "." in his name - I excluded this because the forum wouldn't work anymore if I hadn't done this.