Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MySpace type User Profile Link Details »»
MySpace type User Profile Link
Version: 1.00, by MiahBeSmokin420 MiahBeSmokin420 is offline
Developer Last Online: Aug 2009 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.x Rating:
Released: 02-11-2008 Last Update: 02-11-2008 Installs: 26
Additional Files  
No support by the author.

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]
Replace this:

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-12-2008, 09:02 AM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Extra little things you can do with this:

Find in navbar template:

HTML Code:
<!-- breadcrumb, login, pm info -->
Directly Above or if you have a top nav bar then add above that:

HTML Code:
 <if condition="$show['member']">
<b>My Url: <a href="http://Example.com/$bbuserinfo[username]">Example.com/$bbuserinfo[username]</a>
</b></if>
Which will add:

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">
                <strong>$vbphrase[username]</strong>:<br />
Add above:

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>
Changing Example.com to the domain you are going to use to shorten profile links with.

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.
Reply With Quote
  #3  
Old 02-12-2008, 11:45 AM
sheryjutt's Avatar
sheryjutt sheryjutt is offline
 
Join Date: Dec 2007
Location: iTALY( In Heaven )
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ScreenShot Please
Reply With Quote
  #4  
Old 02-12-2008, 11:50 AM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 02-12-2008, 11:51 AM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 02-12-2008, 01:47 PM
Gryphon's Avatar
Gryphon Gryphon is offline
 
Join Date: Oct 2001
Location: Seattle, WA
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sheryjutt View Post
Any ScreenShot Please
Reply With Quote
  #7  
Old 02-12-2008, 04:52 PM
CallieJo's Avatar
CallieJo CallieJo is offline
 
Join Date: May 2004
Location: Snowville
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the difference with this and this: https://vborg.vbsupport.ru/showthread.php?t=165986
Thanks
Reply With Quote
  #8  
Old 02-12-2008, 04:53 PM
Gryphon's Avatar
Gryphon Gryphon is offline
 
Join Date: Oct 2001
Location: Seattle, WA
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CallieJo2 View Post
What is the difference with this and this: https://vborg.vbsupport.ru/showthread.php?t=165986
Thanks
Different author

That other one will not allow usernames with special characters, only numbers and letters.
Reply With Quote
  #9  
Old 02-12-2008, 06:46 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gryphon View Post
Different author

That other one will not allow usernames with special characters, only numbers and letters.
bingo
Reply With Quote
  #10  
Old 02-12-2008, 07:10 PM
CallieJo's Avatar
CallieJo CallieJo is offline
 
Join Date: May 2004
Location: Snowville
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gryphon View Post
Different author

That other one will not allow usernames with special characters, only numbers and letters.
I see...very clever

Quote:
Originally Posted by MiahBeSmokin420 View Post
bingo
Good work!

Does this also change the url noted in the profile to reflect the new url?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04911 seconds
  • Memory Usage 2,307KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete