phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
username in viewprofile mod_rewrite

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
emma1989



Joined: 17 Sep 2007
Posts: 22

username in viewprofile mod_rewritePosted: Mon Sep 17, 2007 9:03 pm    Post subject: username in viewprofile mod_rewrite

Hey Guys!

I'm new here, though Im a member at phpbb.com Smile

The mod is all working great on my 2.0.22 installation! Very Happy

I was wondering how I would need to go about this...

I want the user's name in the url.. I know you can already access profiles like this..

http://www.example.com/profile.php?mode=viewprofile&u=emma1989 as opposed to http://www.example.com/profile.php?mode=viewprofile&u=324

So, in the mod, how would I go about making it so its http://www.example.com/emma1989.html and not www.example.com/member325.htm eliminating the need for having the userID in the url Smile

Any specific files I need to edit?

Thanks, so much guys! Great site, and great mod Cool

xx
Back to top
emielvenlo
PR0
PR0


Joined: 21 Jan 2007
Posts: 79

username in viewprofile mod_rewritePosted: Mon Sep 17, 2007 9:14 pm    Post subject: Re: username in viewprofile mod_rewrite

I dont think it is possible to lose the userid but i think its possible to make a url like: http://www.example.com/325/emma1989.html

We'll wait for dcz, he can tell if it is possible
Back to top
Visit poster's website
emma1989



Joined: 17 Sep 2007
Posts: 22

username in viewprofile mod_rewritePosted: Mon Sep 17, 2007 10:23 pm    Post subject: Re: username in viewprofile mod_rewrite

cool Smile
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

username in viewprofile mod_rewritePosted: Tue Sep 18, 2007 11:27 am    Post subject: Re: username in viewprofile mod_rewrite

And welcome Very Happy

I knew this feature would be asked, since phpBB3 profiles are a lot more interesting than the phpBB2 ones, they could be worth showing up a bit more. But this implies that you allow guest to see them, which can cause other problems (spam mainly).
As well, title injection will only fully work for latin characters, so the URL won't necessarily be exactly the user name. For example bob and b(o)b would end up the same in URLs : bob, which is why we won't be able to get rid of the user ID.

Then, the problem with user name injection is that phpBB is using them in many places. So it could imply quite some code changes for not this much. I'll take a look at it, and may release an add on to do so.
Can be useful for some, but not necessarily worth it for most, an add on could be great though.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
emma1989



Joined: 17 Sep 2007
Posts: 22

username in viewprofile mod_rewritePosted: Tue Sep 18, 2007 1:39 pm    Post subject: Re: username in viewprofile mod_rewrite

Quote:
I knew this feature would be asked, since phpBB3 profiles are a lot more interesting than the phpBB2 ones, they could be worth showing up a bit more. But this implies that you allow guest to see them, which can cause other problems (spam mainly).

You can get around that Smile And im happy to do so Very Happy


Quote:
As well, title injection will only fully work for latin characters, so the URL won't necessarily be exactly the user name. For example bob and b(o)b would end up the same in URLs : bob, which is why we won't be able to get rid of the user ID.


You could add the user ID with the user name, or add form validation to register page to prevent invalid characters for a URL.

Quote:
Then, the problem with user name injection is that phpBB is using them in many places. So it could imply quite some code changes for not this much. I'll take a look at it, and may release an add on to do so.
Can be useful for some, but not necessarily worth it for most, an add on could be great though.


Great! I'm sure it could just be a matter for htaccess and minimizing code changes Smile I will expect the add on soon... thanks so much! Very Happy

xx
Back to top
coyote
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2007
Posts: 72

username in viewprofile mod_rewritePosted: Tue Sep 18, 2007 3:08 pm    Post subject: Re: username in viewprofile mod_rewrite

This is a great thread and I am subscribing to it. It was going to be my next question. Very Happy
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

username in viewprofile mod_rewritePosted: Thu Sep 20, 2007 8:13 am    Post subject: Re: username in viewprofile mod_rewrite

emma1989 wrote:

Great! I'm sure it could just be a matter for htaccess and minimizing code changes Smile


Not exactly. To inject the nickname in the profile URL, we need to know it. And phpBB really is using profiles everywhere.

I'll look at it, but it could end up to imply quite some code change, we'll see.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
emma1989



Joined: 17 Sep 2007
Posts: 22

username in viewprofile mod_rewritePosted: Thu Sep 20, 2007 1:44 pm    Post subject: Re: username in viewprofile mod_rewrite

Thanks! Smile I will keep checking this topic Cool xx
Back to top
emma1989



Joined: 17 Sep 2007
Posts: 22

username in viewprofile mod_rewritePosted: Sat Sep 29, 2007 9:37 pm    Post subject: Re: username in viewprofile mod_rewrite

this could be a development - in profile, press "view all posts by this user" - the username, not user id of the user is used in the url! Smile
Back to top
emma1989



Joined: 17 Sep 2007
Posts: 22

username in viewprofile mod_rewritePosted: Wed Oct 03, 2007 9:00 pm    Post subject: Re: username in viewprofile mod_rewrite

Its quite easy to do a quick mod_rewrite to get the username , though the setbacks discussed mean it would only be good on a new forum in which username validation on registration was used not allowing certain characters in usernames Smile I did it, and I dont think dcz taking up a lot of time on the mod would benefit many people Smile
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

username in viewprofile mod_rewritePosted: Sat Oct 06, 2007 8:27 am    Post subject: Re: username in viewprofile mod_rewrite

Time will come Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: