![]() |
MySpace type User Profile Link
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 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. |
Extra little things you can do with this:
Find in navbar template: HTML Code:
<!-- breadcrumb, login, pm info --> HTML Code:
<if condition="$show['member']"> My Url: Example.com/UserName Note: this will only be view able to members. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In Register template find: HTML Code:
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px"> HTML Code:
<BR><strong>Your user name will also be your permanent link to your profile and can not be changed.<BR>Example: http://Example.com/YourUserName</strong><BR><BR> Which will add a small note during registration letting soon to be new members know that there user name will also be used as part of the link to there profile. Hope that this info is useful to you and remember to click install if you use this mod. |
Any ScreenShot Please
|
how are you going to have a screen shot for a link???
the closest your are going to get to a screen shot is look at my signature on here and you will see that it says my profile link and then once you click on the it will redirect you to my profile but my site is closed right now while we are updating alot of things but its a link you ready dont need a screen shot just upload the .httaccess to your public_html after you put replace the link with your forum link like it says and then just go to that domain /yourusersname |
also if your user name has a space make sure you type the space in the url when you try to go to it or else it will say some dumb stuff
|
Quote:
|
What is the difference with this and this: https://vborg.vbsupport.ru/showthread.php?t=165986
Thanks ;) |
Quote:
That other one will not allow usernames with special characters, only numbers and letters. |
Quote:
|
Quote:
Quote:
Does this also change the url noted in the profile to reflect the new url? |
I have one site, but with multiple url's pointing to it:
mymainurl.com mysecondurl.com I want to display mymainurl.com/forum/member.php?=member.php?username=ExampleUserName as mysecondurl.com/username Is this possible? |
Bulletproof?
|
what if i want the same thing but for admincp...and put their ip so when then log on with their id it must match the ip for them to log on to admin cp or mod cp can u kindly help
|
Quote:
the link that you enter http://example.com/username is not even a real link it just redirects you to http://example.com/forums/member.php?=username which would be the profile of the members name you entered after http://Example.com/ also please make sure you click install if you are using this Quote:
just add the .httaccess file in the other domain you have and set it to go to the domain you want it to Quote:
Quote:
i dont know you would have to ask someone else im not sure that would most likely need a totaly diffrent mod |
**Updated** Added info the my reserved post.
|
Well, actually it sends me to the Profile Page of the User... BUT!
still looks the same! Why? |
ya its supoesed to
this is just so that members do not have to remember the whole link do you think that a member wants to go to his friend and be like: Hey man check out my profile the link is http://www.iogames.com/chat/member.php?username=coder no i dont think they want to try to remember that whole thing when all they have to do is remember a much smaller link which would be your site link and then there username see the point of this? |
Thanks alot for this Stillfallin, I've been looking for this for awhile. Marked installed :)
Btw, are you online on COD4 PS3? If so, get back to me through PM. Thanks. |
nope i dont have a ps3 yet i should have one here probally next month
|
Quote:
|
Quote:
https://vborg.vbsupport.ru/showpost....36&postcount=2 then they should be able to figure it out but ya hope you like it |
Quote:
Quote:
mymainurl.com/forum/member.php?u=1 and mysecondurl.com/forum/member.php?u=1 It is the same page. How do I set this in .htaccess? |
Does this work in 3.7B5? I tried but no go and was not sure if I was doing something wrong.
|
i dont know i dont have 3.7
im would imagine it would though |
If you want this to show up in your welcome box instead of by your navbar... Then in your navbar template, find:
PHP Code:
PHP Code:
See screenshot in what I mean. |
Is there a way to allow this only for people in certain usergroups?
|
not realy i dont know why you would want to do that though
but im sure you could hide that link to user groups that way they dont know it is there for them but doing that would just not be cool |
thanks for your post :D
|
MiahBeSmokin420; do you have a solution to my question above?
|
Quote:
just add the httaccess file to both domains and then just point them to where your foums are installed i guess but from the way you said that there it looks like you have 2 diffrent forums on 2 diffrent domains cause i dont see how you can have the same forum with 2 domains without having one of the domains redirect to the other so honestly idk man |
Quote:
|
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
|
Can you add this info on the 'Welcome Email'??? for them not to forget their URLs?
|
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 |
This is an awesome addition to my board, the members love it.
Thanks ever so much for uploading it! |
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. |
Quote:
There is no way it could mess with anything in vB Especially not the WOL Take a screen shot of the WOL page |
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 --> 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. |
I'll get a screenshot tomorrow, but I hope you can help, thanks man.
|
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:
|
All times are GMT. The time now is 06:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|