User ID method:
- Code: Select all
http://www.yoursite.com/memberlist.php?mode=viewprofile&u=user
UserName Method:
- Code: Select all
http://www.yoursite.com/memberlist.php?mode=viewprofile&un=user
Of course in the url you replace the domain with your personal one and replace user with the actual username or id.
Here is a good example of this actually being implimented:
- Code: Select all
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
<strong><a href="{ROOT_PATH}/memberlist.php?mode=viewprofile&un={S_USERNAME}">{S_USERNAME}</a></strong>
<!-- ENDIF -->
In this particular example you are using the variable {ROOT_PATH} which will automatically fill in the path to the root of your forum. Another Variable you are using is {S_USERNAME} which is simply the username of the user who you are logged in as.
The great thing about this trick is that you are not adding anything. This way everything is already included so you dont have to have any extra code pass through the preproccessor.