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 |
#32
|
|||
|
|||
It would be cool if you had a "premium member" group (or something of the like) where they could have there own address like that. Just a thought
|
#33
|
|||
|
|||
ya that would be cool but unfortunately there is now way that i know of to make a htaccess file have user group permissions seeing as how it is controlled by the server and not vb
|
#34
|
||||
|
||||
Can you add this info on the 'Welcome Email'??? for them not to forget their URLs?
|
#35
|
|||
|
|||
dont quote me on this but im almost positive what you would add to the the welcome email is:
Your profile url: http://yourdomain.com/$username that should do it but i would send a test email to your seld before you make that a permant change to the welcome email |
#36
|
|||
|
|||
This is an awesome addition to my board, the members love it.
Thanks ever so much for uploading it! |
#37
|
|||
|
|||
Their is an error with this though, it effects the currently active users/who's online list.
It keeps saying everyone is viewing an error message and looking at a user profile, but no one is infact doing that. I got rid of it from the .htaccess and it is fine again, any way to fix this? Thanks. |
#38
|
|||
|
|||
Quote:
There is no way it could mess with anything in vB Especially not the WOL Take a screen shot of the WOL page |
#39
|
|||
|
|||
Thanks. Nice and simple.
For those of you who want to place a link in your userCP do the following edit in the UserCP_Shell: find: Code:
$navbar Code:
<!-- table for MySpace profile link --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" align="center">My URL</td> </tr> <tr> <td class="$navclass[signature]" nowrap="nowrap" align="center"> <b><a href="http://YourDomain.com/$bbuserinfo[username]">YourDomain.com.com/$bbuserinfo[username]</a> </b></td> </tr> </table> <br> <!-- / table for MySpace profile link --> For those of you still using the default vBulletin style replace "$navclass[signature]" with "info" or any other predefined class. Otherwise you will get an error. |
#40
|
|||
|
|||
I'll get a screenshot tomorrow, but I hope you can help, thanks man.
|
#41
|
|||
|
|||
Heres a screenshot of the problem, and like I'm saying, when I remove the code from .htaccess or whatever it is, it works fine again:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|