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.
this hack is very usefule thank you. it will work PERFECTLY when vBSpace comes out. where the users can have a http://www.yoursite.com/username. awesome!
edit: one of my members noticed something after i installed. i have vba cmps installed on my forum so i put the .htaccess file in the root directory, edited hangout.php to forums/index.php and members.php to forums/members.php so users can have www.mysite.com/username. but when one of my members was playing around with it he noticed that if you do so it goes to the user's profile but then all of the images that are comming from image.php are comming up broken. does anyone know how to get around this?
this hack is very usefule thank you. it will work PERFECTLY when vBSpace comes out. where the users can have a http://www.yoursite.com/username. awesome!
edit: one of my members noticed something after i installed. i have vba cmps installed on my forum so i put the .htaccess file in the root directory, edited hangout.php to forums/index.php and members.php to forums/members.php so users can have www.mysite.com/username. but when one of my members was playing around with it he noticed that if you do so it goes to the user's profile but then all of the images that are comming from image.php are comming up broken. does anyone know how to get around this?
how about if the link site.com/usernamewhatever doesn't return a match username it will then check if there is a folder with the name usernamewhatever ?
I did notice a problem though. If a user has a "." in their name, it will not work. I'm pretty sure this is an obvious error..
Would there happen to be a fix for this at all?
Yes, it is recommended tha you run another hack on here for no Special Characters in usernames. Add that hack to stop your users being allowed to add special characters to their usernames. This is pretty much an essential addon hack needed to get the full functionality of this and so you get no 404 erros. I will see if I can find it and post the link here. If anyone finds it b4 me feel free to post it here.
This would not be due to the hack. MODrewrite does nothign to your code it meerly takes a string and based on the criteria (or lack thereof) returns a users profile or appropriate error message.
Other than that I'm not sure why this may have happened and as I said above this hack does not change your vbulletin setup or configuration at all.
Quote:
Originally Posted by loftyasianz
this hack is very usefule thank you. it will work PERFECTLY when vBSpace comes out. where the users can have a http://www.yoursite.com/username. awesome!
edit: one of my members noticed something after i installed. i have vba cmps installed on my forum so i put the .htaccess file in the root directory, edited hangout.php to forums/index.php and members.php to forums/members.php so users can have www.mysite.com/username. but when one of my members was playing around with it he noticed that if you do so it goes to the user's profile but then all of the images that are comming from image.php are comming up broken. does anyone know how to get around this?