Special signs in address of profile

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

Special signs in address of profile

Postby Young » Sun Mar 09, 2008 6:55 am

How to alter:
-http://www.forum......./user/@Admin
on
-http://www.forum......./user/aadmin

Code: Select all
that is what to alter in
   /**
   * Prepare profile url
   */
   function set_user_url( $username, $user_id = 0 ) {
      if (empty($this->seo_url['usermsg'][$username])) {
         $this->seo_url['username'][$username] = $user_id;
         if ( $this->seo_opt['profile_inj'] ) {
            if ( $this->seo_opt['profile_noids'] ) {
               $this->seo_url['user'][$user_id] = $this->seo_static['user'] . '/' . $username;
               $this->seo_url['usermsg'][$user_id] = $this->seo_static['usermsg'] . '/' . $username;
            } else {
               $username = $this->format_url( $username,  $this->seo_delim['user'] );
               $this->seo_url['user'][$user_id] = $username . $this->seo_delim['user'] . $user_id . $this->seo_ext['user'];
               $this->seo_url['usermsg'][$user_id] = $username . $this->seo_delim['usermsg'] . $user_id;
            }
         }
      }
   }


he to sign "@" be exchanged on "a"
as well as the exchange of great signs on small

I thank. I greet.
Young
 
Posts: 1
Joined: Sun Mar 09, 2008 6:43 am

Advertisement

Postby dcz » Wed Mar 12, 2008 1:56 pm

Well, as explained in the install, id removing for profile is really meant for forum only allowing alphanumeric chars for nicknames.
There is not much to do about it, we cannot set special replacement because nicknames must be unique, for example in your case, what about if both account do really exists, @admin and aadmin ?

It would be impossible to determine which profile to load with the replacement you suggest.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21411
Joined: Fri Apr 28, 2006 9:03 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 6 guests