vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   User MOD Rewrite (https://vborg.vbsupport.ru/showthread.php?t=81914)

altsounds 05-24-2005 01:52 AM

Quote:

Originally Posted by nexialys
a little modif here, so everyone is happy...:

ifyou want your users to be located also by their userid instead of just their username, change the last line with:
Code:

RewriteRule (^[-_A-Za-z\ ]*$) member.php?username=$1
RewriteRule (^[-_0-9\ ]*$) member.php?userid=$1


Nexialys thanks again for making sure everyone is happy. I appreciate that. Follow Nexialysis' mod of this hack if you want to do it by userid too.

Lionel 05-24-2005 02:03 AM

I have the guestbook/homepage hack installed, the modified version that displays it on a separate page; so what I did was a htaccess from root to display members webpage and another one at forum root to display the profile.

I learn something today and I started to change all my directory links to reflect the trailing slash.

ericgtr 05-24-2005 02:11 AM

altsounds, nice mod! I also really dig your site, it looks like you are using jamroom? I wrote up a little something so your vb members can add their jamroom album to under their avatar in the postbit, here's the link to it on the jamroom site http://www.jamroom.net/phpBB2/viewtopic.php?t=2910

altsounds 05-24-2005 01:02 PM

Eric cool MOD, I will be using this for sure.

Boofo 05-25-2005 01:27 PM

Will they still get the appropriate error message if they are now allowed to view profiles, like Guests, or will this bypass that?

altsounds 05-26-2005 06:10 PM

Quote:

Originally Posted by Boofo
Will they still get the appropriate error message if they are now allowed to view profiles, like Guests, or will this bypass that?

Haven't tested this but you should still get the same message regardless of whether or not you are a guest or a registered visitor. Basically letting you know that the member doesn't exist.

T3MEDIA 05-26-2005 06:48 PM

They get the error I just wish this worked more smoothly. A lot of links come up dead after doing this.


isnt there a wildcard version to this that makes your site a subdomain?

username.yoursite.com
?

altsounds 05-27-2005 05:20 PM

As discussed earlier, if your directory links have a trailing / you should have no problem, you should be putting / into links that are directories anyway.

Hope that helped?

Lizard King 05-27-2005 08:09 PM

Working pretty good thanks :)

Jolten 05-28-2005 12:20 AM

This is sort of overkill. There are two ways to access user profiles built in, ID and username.

the parameter for id is member.php?u=Userid
the parameter for username is member.php?getinfo&username=username

You do not need to mod rewrite it.


All times are GMT. The time now is 03:11 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
  • Page Generation 0.01810 seconds
  • Memory Usage 1,735KB
  • 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)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete