vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   userid/username maping (https://vborg.vbsupport.ru/showthread.php?t=102174)

mindcry 12-04-2005 01:33 AM

userid/username maping
 
Is there anyway to have the userids mapped to the usernames maybe have something like domain.com/username to show the a users profile. Even if it was a subfolder like domain.com/user/username something along those lines. I tried searching but I havent seen it on the site.

ConqSoft 12-04-2005 01:45 AM

Something like this?

http://www.fireblades.org/forums/members/conqsoft.html

;)

SuperFly 12-04-2005 02:20 AM

how did you do that?

Adrian Schneider 12-04-2005 02:33 AM

mod_rewrite
http://wwww.site.com/forums/members/$1 to http://www.site.com/forums/member.php?username=$1

(pseudo code)

SuperFly 12-04-2005 02:53 AM

Sorry but i do not understand

ConqSoft 12-04-2005 02:54 AM

I use a commercial product that does it, plus a lot of other things. You should be able to do it with a .htaccess with code similar to the above.

SuperFly 12-04-2005 02:58 AM

any idea? i entered it and it gave me a server cant post error

Marco van Herwaarden 12-04-2005 06:50 AM

Search for mod_rewrite and you will probably find a few posts about this.

mindcry 12-04-2005 01:26 PM

yeah thanks guys I did this last night. mod_rewrite pointed me in the right searching direction. I added this to my .htaccess RewriteRule ^members/(.*)$ member.php?username=$1 and it works great. In the MEMBERINFO template I had to add a / before everything so that it would point back to the root


All times are GMT. The time now is 03:41 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
  • Page Generation 0.00947 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete