[Bb-trac] Re: [bbPress] #711: Generic profile links

bbPress bb-trac at lists.bbpress.org
Sat Sep 15 15:13:42 GMT 2007


#711: Generic profile links
-------------------------+--------------------------------------------------
 Reporter:  fel64        |        Owner:  sambauers        
     Type:  enhancement  |       Status:  new              
 Priority:  normal       |    Milestone:  0.8.3 & XML-RPC  
Component:  Back-end     |      Version:  1.0-alpha (trunk)
 Severity:  normal       |   Resolution:                   
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------
Comment (by sambauers):

 To be clear, this patch simply makes calls to profile.php without a
 username or id go to the logged in users profile. Works with the main
 page, the edit page and the favorites page.

 So if I'm logged into the bbPress forum as SamBauers, the following
 happens:

 http://bbpress.org/forums/profile -->
 http://bbpress.org/forums/profile/SamBauers
 http://bbpress.org/forums/profile/ -->
 http://bbpress.org/forums/profile/SamBauers
 http://bbpress.org/forums/profile//edit -->
 http://bbpress.org/forums/profile/SamBauers/edit
 http://bbpress.org/forums/profile//favorites -->
 http://bbpress.org/forums/profile/SamBauers/favorites

 Of course, the second two aren't pretty, so we could choose some character
 to use from outside of the allowed username characters, perhaps...

 http://bbpress.org/forums/profile -->
 http://bbpress.org/forums/profile/SamBauers
 http://bbpress.org/forums/profile/ -->
 http://bbpress.org/forums/profile/SamBauers
 http://bbpress.org/forums/profile/* -->
 http://bbpress.org/forums/profile/SamBauers
 http://bbpress.org/forums/profile/*/edit -->
 http://bbpress.org/forums/profile/SamBauers/edit
 http://bbpress.org/forums/profile/*/favorites -->
 http://bbpress.org/forums/profile/SamBauers/favorites

 Or we could reserve the username "my" or similar (not very i18n friendly
 though - but the URIs aren't generally)

 http://bbpress.org/forums/profile -->
 http://bbpress.org/forums/profile/SamBauers
 http://bbpress.org/forums/profile/ -->
 http://bbpress.org/forums/profile/SamBauers
 http://bbpress.org/forums/profile/my -->
 http://bbpress.org/forums/profile/SamBauers
 http://bbpress.org/forums/profile/my/edit -->
 http://bbpress.org/forums/profile/SamBauers/edit
 http://bbpress.org/forums/profile/my/favorites -->
 http://bbpress.org/forums/profile/SamBauers/favorites

 All these options are pretty easy, the first two work using the supplied
 patch.

 I also failed to mention that the previous patch only worked with "Options
 +MultiViews", I'll attach a patch which changes the standard mod_rewrite
 rules to accept the first two URI formats as well. The "my" option will
 require further changes.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/711#comment:2>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list