The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
MySpace type User Profile Link Details »» | |||||||||||||||||||||||||
Tested with vb 3.6.7 and 3.6.8
Tested on IE7 and FF2 Ok lets say your site is: http://Example.com/Forums/ And the path to members profiles is even longer: http://Example.com/Forums/member.php...xampleUserName Well lets give your members a smaller and easy link to remember. How about: http://Example.com/Username Oh ya thats alot better huh? Ok well this is how you do it. Add this to the .htaccess in root of example.com HTML Code:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ http://Example.com/Forums/member.php?username=$1 [R] http://Example.com/Forums/ With the link to your forums. All members and guests will be able to go to: http://Example.com/ThereUserName And automatically be forwarded to the profile of the user name they entered after the site link. Thats it just one easy .htaccess file edit and your done. NOTE: Want to use a diffrent domain like: http://ExampleTwo.com/UserName Just add the .htaccess file to that domain instead just make sure that whats in red below links to your site RewriteRule ^(.*)$ http://Example.com/Forums/member.php?username=$1 Enjoy and click install if you use this mod. Also Some Credit to Eikinskjaldi for pointing me in the right way to get this working. Show Your Support
|
Comments |
#52
|
|||
|
|||
Quote:
I am new with the whole .htaccess files. I'm sorry, but why be rude about it?! |
#53
|
||||
|
||||
When I install this i cant access my cpanel or admin/modcp. It tries to redirect me to a userprofile.
|
#54
|
|||
|
|||
sounds weird idk what to say
|
#55
|
|||
|
|||
I have upgraded to 3.7 RC1 and it works!
Template edits will have to change for those areas you'd like to add it to. (Remember to replace yourdomain.com with the respective domain name.) open memberinfo_block contact info (for the link under contact info within the profile page) find: Code:
<a href="$prepared[profileurl]">$prepared[profileurl]</a> Code:
<a href="http://YourDomain.com/$bbuserinfo[username]">YourDomain.com/$bbuserinfo[username]</a> open navbar template (This will place it within the welcome block, below private messages) find: Code:
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if> Code:
<if condition="$show['member']">Your Profile URL: <a href="http://YourDomain.com/$bbuserinfo[username]">YourDomain.com/$bbuserinfo[username]</a> </if> |
#56
|
|||
|
|||
Thanks for this!
Can anyone tell me how would I change the text in the .htaccess code if I wanted the URL to be something like: http://example.com/users/USERNAME ? Would the last line be: Code:
RewriteRule ^users/?(.*)$ http://Example.com/Forums/member.php?username=$1 [R] |
#57
|
|||
|
|||
i think if you wanted to do that you would just create a folder in called users and then just add the httacces file in there
but i havent tried that and dont plan on it so i dont know should work though |
#58
|
||||
|
||||
is there a way to stop it from redirecting picture links?? Half of them dont show anymore
|
#59
|
|||
|
|||
i dont know what you mean
are you saying that you got something like this a directory called http://yourdomain.com/pictures and its redirecting as if it were a member? if so just add a / at the end http://yourdomain.com/pictures/ if thats now what you mean then please explain a lil more cause ya i dont know what you mean |
#60
|
||||
|
||||
I just changed some file access permissions. for the pictures.
Now for the problem, when you go to this link HTML Code:
http://www.indie2industry.com/vbdigishop.php?do=product&productid=13 HTML Code:
http://www.indie2industry.com/forum/vbdigishop.php?do=product&productid=13&title=producer-agreement-bundle HTML Code:
http://indie2industry.com/forum/member.php?username=vbdigishop.php "This user has not registered and therefore does not have a profile to view." I'll give you a login via pm so you can actually see the problem.. It does this in VARIOUS other areas also, but when I remove the redirect mod, everythings back to normal, except for the Redirect URL, lol |
#61
|
||||
|
||||
i think i see the problem
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|