1
   

mod_rewrite for user profiles?

 
 
weeble
 
Reply Thu 30 Jun, 2005 10:45 am
Is there anyway I could change the users's profile address from

..../phpBB/profile.php?mode=viewprofile&u=180834

to
.../phpBB/profiles/weeble?

Thanks
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 618 • Replies: 2
No top replies

 
Craven de Kere
 
  1  
Reply Wed 6 Jul, 2005 12:13 am
Yes, I don't have time to do it for you but here are the basic steps.

1) phpBB does not use the username to query the profile infomation, it uses the member id.

You will need to write queries that accept a username.

2) Links to member profiles throughout phpbb use member ids. This is a problem that can't easily be solved with a closing find/replace function as each find/replace would need an additional query to match the replace (username) to the find (id).

So you need to modify this in various places in phpbb.

3) Lastly, you just need to use mod_rewrite to pass the /foo to your query that selects a user record based on username.

If you try it post code and I may be able to help you, but I don't have time to write it for you.
0 Replies
 
weeble
 
  1  
Reply Wed 6 Jul, 2005 04:19 pm
Well if anyone is interested, I am willing to pay.
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » mod_rewrite for user profiles?
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 01/18/2025 at 11:12:17