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
  #32  
Old 02-20-2008, 11:49 PM
jeepcircle jeepcircle is offline
 
Join Date: Jan 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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
Reply With Quote
  #34  
Old 02-21-2008, 12:29 AM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you add this info on the 'Welcome Email'??? for them not to forget their URLs?
Reply With Quote
  #35  
Old 02-21-2008, 08:48 AM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #36  
Old 02-23-2008, 02:52 PM
Jongo Jongo is offline
 
Join Date: May 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an awesome addition to my board, the members love it.

Thanks ever so much for uploading it!
Reply With Quote
  #37  
Old 03-04-2008, 03:21 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by TCE Killa View Post
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.

There is no way it could mess with anything in vB

Especially not the WOL

Take a screen shot of the WOL page
Reply With Quote
  #39  
Old 03-06-2008, 02:23 AM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
add below:
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 -->
edit:
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.
Reply With Quote
  #40  
Old 03-07-2008, 10:50 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll get a screenshot tomorrow, but I hope you can help, thanks man.
Reply With Quote
  #41  
Old 03-09-2008, 10:15 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
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 11:34 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.08801 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (1)bbcode_html
  • (2)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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