MyBB Community Forums

Full Version: Short user links? (Better description inside)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay, the question might sound weird, but here's what I actually want to do, I want to make it so, that when I type the users name right after the forum name in the URL box in my browser, it displays their profile, this is done on vBulletin like I showed below, for example:

The problem is, there is no ?username= thing in member.php, how would I add that, and how would I make it translate the username to id? or whatever?

This
http://yourforum.com/Katrin
would go to:
http://yourforum.com/member.php?username=Katrin

And so for any other user on the forum.

So I could use this htaccess code which was made for vBulletin:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^$ index.php
RewriteRule (^[-_A-Za-z0-9\ ]*$) member.php?&username=$1
MyBB is like this right now (if you have SEO urls on). It links to http://yourforum.com/user-1.html
You'll need a modification for this. Currently, at best you can do something like this:
http://community.mybboard.net/memberlist.php?username=Katrin
however, not a display user profile directly from the URL.

(BTW, there are issues with the way you're doing things - what happens if someone decides to sign up using the name "showthread.php" ?)
Awesome, that will do, and it shouldn't really be an issue since it'll be just used in a few places or to quickly find users.