vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   mod_rewrite 3.5 for members (https://vborg.vbsupport.ru/showthread.php?t=101488)

croportal 11-24-2005 09:40 PM

mod_rewrite 3.5 for members
 
how can i change link for members

i dont want to have this http://www.croportal.net/forum/member.php?u=4808

i want to have this http://www.croportal.net/forum/member/michele

no one know that

Nakor 11-29-2005 10:49 AM

Create a .htaccess file in your forum directory and put the following in it;

Code:

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^member/(.*)$    member.php?username=$1


croportal 11-29-2005 10:50 AM

only this i do, and that is it

it doesnt working i have copy paste that in my forum directory in .htacces and users are still in php?u=786

this is how look my .htacees

Quote:

RewriteEngine On
RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.html$ forumdisplay.php?f=$1 [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ showthread.php?t=$1&page=$5&pp=10 [L]

Options +FollowSymLinks
RewriteRule ^$ index.php
RewriteRule (^[-_A-Za-z0-9\ ]*$) userpage.php?do=main&username=$1

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^member/(.*)$ member.php?username=$1

and doesnt working

Nakor 12-01-2005 09:43 AM

You also need to update the template files to link to the new address.
Just do a mass replace of your template files and replace all member.php?u=id with member/username. This would require you to go through each template file and make the change, make sure you are careful when doing it and replace all the right variables.

If you are not confident with the workings of vBulletin I wouldn't recommend doing this without someone helping.

croportal 12-01-2005 04:04 PM

I DONT know that, i will not useb because i dont want blow up something


All times are GMT. The time now is 02:58 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.01153 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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