Version: 1.00, by altsounds
Developer Last Online: Dec 2014
Version: 3.0.7
Rating:
Released: 05-22-2005
Last Update: Never
Installs: 24
No support by the author.
This is a pretty simple hack but is designed so that you can access members profiles quickly and / or your members can have an easy link to pass around for their user profile.
STEP 1:
If you don't have one already create a file named .htaccess in your forums root directory.
STEP 2:
Paste the following code within that file:
## Altsounds.com Member re-write Hack Version1
## All music fans should check out altsounds.com for lots of free music to listen to!!
# turn the Apache MOD_REWRITE engine on
RewriteEngine On
# this first rule will catch the "blank" entry into the
# Forums directory, taking the user to the main forum page - change as appropriate
RewriteRule ^$ hangout.php
# this next entry will catch everything else and pass
# it to the member.php engine for processing in
# the "member" section
RewriteRule (^[-_A-Za-z0-9\ ]*$) member.php?&username=$1
That's it! My main forum page is hangout.php. So you should change that within the code above to whatever your forum main page is (usually index.php).
Now all your members links to their profile is {link to forum}/{username} or {link to forum}/{userid} e.g. in my websites case http://hangout.altsounds.com/altsounds or will take you directly to the username "altsounds" user profile. If no profile is available (i.e. a member is not registered) you will get the appropriate error message.
Simple but cool. Hope you all enjoy.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I have the guestbook/homepage hack installed, the modified version that displays it on a separate page; so what I did was a htaccess from root to display members webpage and another one at forum root to display the profile.
I learn something today and I started to change all my directory links to reflect the trailing slash.
altsounds, nice mod! I also really dig your site, it looks like you are using jamroom? I wrote up a little something so your vb members can add their jamroom album to under their avatar in the postbit, here's the link to it on the jamroom site http://www.jamroom.net/phpBB2/viewtopic.php?t=2910
Will they still get the appropriate error message if they are now allowed to view profiles, like Guests, or will this bypass that?
Haven't tested this but you should still get the same message regardless of whether or not you are a guest or a registered visitor. Basically letting you know that the member doesn't exist.
As discussed earlier, if your directory links have a trailing / you should have no problem, you should be putting / into links that are directories anyway.