![]() |
MySpace Style Profile Links PLUS
MySpace Style Profile Links PLUS
Only tested on a linux server and will only work if you can use .htaccess files (Rewrite Conditions) on your server. What this will do: It gives your members a simple and easy link to remember and give to there friends to get to there profile. Also changes the profile link in members profiles contact us tab from the long ugly link to the new short sexy link. Also Adds a nicely placed User Profile link to the top of the navbar with profile editing links. DEMO: This link: http://StillFallin.com/StillFallin Will take you to this link: http://stillfallinentertainment.com/...me=StillFallin Screen Shots Attached vB 3.6.x Version: https://vborg.vbsupport.ru/showthread.php?t=170293 (Step 1) File Edits Open your Favorite FTP software Go to the root of your domain you wish to use as a jump point Example: /public_html/ Find and open your .htaccess file Note if you do not have one then create one Add in the .htaccess file: Code:
<MySpace Style Profile Link> RewriteRule ^(.*)$ http://Example.com/Forums/member.php?username=$1 [R] Just replace: Code:
Example.com/Forums/ Save, close, and upload back to the server unless you did live edits on the server in that case just close and save. NOTE: If you have more then one domain you can add the .htaccess file to other domains as well. For Example: My forums are on MyLongDomain.com But i added the .htaccess file to MyShortDomain.com Now go to: Code:
http://Example.com/User Name If there are spaces in your user name you must enter the spaces in the link as well Same goes with other characters like if you have ---User Name--- You Would Enter: Code:
http://Example.com/---User Name--- If that works correctly then move on to Step 2 (Step 2) Template Edites Go to your vB Forums Admin cP > Style Manager > Navigation / Breadcrumb Templates Open navbar Before: Code:
<!-- breadcrumb, login, pm info --> Code:
Edit: Code:
<font color="#FF0000"> Edit 2 times: Code:
Example.com Save and Close Go to your vB Forums Admin cP > Style Manager > Member Info Templates Open memberinfo_block_contactinfo Find: Code:
<a href="$prepared[profileurl]">$prepared[profileurl]</a> Code:
Code:
Example.com Save and Close To get a Sexier looking error page for when a member dose not exist you can do the following edit. Search in Phases for: Code:
This user has not registered and therefore does not have a profile to view. Code:
<center>This user has not registered and therefore does not have a profile to view. <BR><a href="memberlist.php" style="text-decoration: none;">Click Here</a> to view the Full Members List.</center> NOW CLICK INSTALLED |
Change Log:
ADDED - Sexier Looking No Member Error |
Will this only redirect the URL's or EVERYTHING (like pics, files, etc.)
I had a rewrite script before, I would enter something like www.mysite.com/images/logo.gif and it would say that "this profile doesn't exist". Will this do the same?? |
no this will only redirect things that have no ending
Example of things that will get redirected http://Example.com/redirected http://Example.com/redirected/ Example of things that would not get redirected http://Example.com/file.extention http://Example.com/folder/file.extention so basically anything that dose not have a file extension will be redirected its also kinda a security feature in a way cause now you don't have to worry about any folders that don't have a index in them cause if someone tried to browse a folder and don't add a file extension then they will be redirected and it will say that member dose not exist error or what not if you are still unclear of how it works just ask and ill try to explain it some more See Here is a test: http://stillfallin.com/close.gif << That will show the image but if you type it wrong like lets say http://stillfallin.com/close.GIF << That will not show the image and will get redirected and you will see the no member error To get a Sexier looking error page for when a member dose not exist you can do the following edit. Search in Phases for: Code:
This user has not registered and therefore does not have a profile to view. Code:
<center>This user has not registered and therefore does not have a profile to view. <BR><a href="memberlist.php" style="text-decoration: none;">Click Here</a> to view the Full Members List.</center> |
cool & installed.
|
I did this a long time ago to my forums. :)
|
Works like a charm :D
Thanks! |
Quote:
the reason i ask is cause there is another version besides mine that dose not work too well with spaces and symboles Quote:
|
no sir......
This one does it too.. Here's an image link directly from my server. http://www.indie2industry.com/images/keithmurray.jpg |
This will rewrite all 404 files to member.php?username=w00t!
suggestion: rewrite forum/members/username instead of forum/username;) suggestion2: replace all forum member.php?u=userid links to rewrited one |
Quote:
this is very case sensitive so check for capital letters in your files that could be your problem if not then maybe it wont work with your server who knows that or maybe if you got leech protection turned on check your settings for that idk what to tell you works well on all of my servers and a few of my friends servers even works on my pc when i set it up for a local test server Quote:
username=w00t! i dont know about that as far as suggestion 1 i didnt know that there was a members folder unless your talking about creating one and adding the htaccess file in there after you create it but then that would just defeat the whole purpose of a shorter link cause its just making it longer and its also no longer a myspace style link after you do that and for suggestion 2 that just dont make any since or maybe im just too sober to understand that but it dont make any since |
actually, the link to the pic I posted worked... Then I tried the URL rewrite, and lost 20% of my site's images.. removed it from my .htaccess and my pics came back.
I'll figure it out I guess |
Quote:
works fine with my server and lots of other peoples servers so good luck |
I had to uninstall this, does not work with vBSEO, as I get a error message.
This is what vBSEO does, no numbers or funny characters when viewing profiles http://www.fragmasters.co.uk/forum/members/fragmaster/ |
Quote:
for example http://forum/blablabla will be rewrited to http://forum/member.php?username=blablabla if blablabla file dosent exist Quote:
|
Quote:
|
well im done giving giving support for this
my vb license expires here next week so im just going to call it quits now i cant afford to get a new license right now and donations on my site are not going to well so im just going to close shop now sorry but thats to all who liked this |
thanks, with a few modifications it's working great also for me :)
|
Cool stuff. Installed. :D
|
Does this mean this post is going to get locked unless someone else takes over?
|
there is noting to realy take over
there is nothing realy that can be supported for this its pretty basic stuff and there is not realy any way to upgrade it so there should be no need for any assistance for this |
please delete
|
does this support vbseo 3.10
example http://www.fragmasters.co.uk/forum/members/fragmaster/ (under vbsep) |
Quote:
|
Somehow this stopped displaying the table background images in one of my sub-directories. I had to turn off rewrite engine in that directory to solve the problem.
|
do they have some thing that does this for 3.8?
|
Does this work on 3.8?
|
All times are GMT. The time now is 08:39 PM. |
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:
|