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 |
#72
|
||||
|
||||
|
#73
|
|||
|
|||
I am using this on vb3.7 and it works beautifully. I am just looking to make one change in the user profile. On the contact tab it shows a direct link to the user profile. Where would I go in the templates to change that and what would I replace it with to show it as www.sitename/username
Thanks!! EDIT: I figured it out!! Thanks again for a great addition to my site!! |
#74
|
||||
|
||||
Awesome! I LOVE this!
|
#75
|
||||
|
||||
Hmmm... this hack seems to interfere with me getting to phpMyAdmin. (it thinks that the link to my phpMyAdmin is a username and redirects me to the forums saying that there is no such user.
I can work around this by deleting the htacess file when I need in phpMyAdmin and uploading it again when I'm logged in, but is there a way to actually make it so that certain filenames in the root directory of your site are called correctly? |
#76
|
||||
|
||||
We were having some problems with this code, as it seemed to redirect actual directories that exist thinking that they were member user names.
The following code seems to work better. It also includes the fix for the log-in issues some users experience when site administrators use vBulletin and vBAdvanced. Code:
Options +FollowSymLinks RewriteEngine on # # Externally redirect to canonical hostname to fix vBadvanced login # problems and to prevent duplicate content problems in search engines RewriteCond %{HTTP_HOST} ^example\.com RewriteRule (.*) http://www.example.com/$1 [R=301,L] # # Internally rewrite all requests for URL-paths which do not resolve # to existing files or directories to user profile script RewriteCond $1 !^vb/member\.php$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) /vb/member.php?username=$1 [L] |
#77
|
||||
|
||||
If you actually want to rewrite the links change:
Quote:
Quote:
|
#78
|
||||
|
||||
I been trying to get this to work but it wouldn't so ..i got to looking and found my problem
here is the current code to add to htacess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ http://Example.com/Forums/member.php?username notice -- example.com/Forums.... Well that is a Capital F and that was causing it not to work for me...i changed the F to a f and it works fine on 3.7.1 thanks |
#79
|
||||
|
||||
member profiles to reflect their new profile url in contact tab
Edit the template "memberinfo_block_contactinfo" and find this code: HTML Code:
<dd><a href="$prepared[profileurl]">$prepared[profileurl]</a></dd> HTML Code:
<dd><a href="http://www.yoursite.com/$prepared[username]">http://www.yoursite.com/$prepared[username]</a></dd> HTML Code:
<br>or<dd><a href="http://www.yoursite.com/$userinfo[username]">http://www.yoursite.com/$userinfo[username]</a></dd> You will need to change yoursite.com to that of your forum. PS -the one guy was right , you do get a error report if you are watching the "who's online" section --it will show users looking at profiles that are not there so it gives a error,no emails or anything,just you will not really know what the person is looking at in the forums sometimes. |
#80
|
|||
|
|||
Quote:
|
#81
|
|||
|
|||
Here is the code you should use.
Replace This: Code:
<a href="$prepared[profileurl]">$prepared[profileurl]</a> Code:
<a href="http://YourSiteName.com/$prepared[username]">YourSiteName/$prepared[username]</a> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|