1 (edited by pascal63 2006-10-21 16:55)

Topic: Can't rename username ?

(sorry for my english)

I'm administrator of a punBB forum but I can't rename the login of my users

I explain to you

I have the possibility to change (normal : i'm admin)
But when I validate
I have an errormessage (not normal)

and the user isn't rename


How can I change it ?

or what is the file who have an error    (because i did any modifications in my forum)

Re: Can't rename username ?

What error are you getting?

Re: Can't rename username ?

The name of the member don't change

and I have this error message :

Bad request. The link you followed is incorrect or outdated.

Re: Can't rename username ?

Resolved


I had this errormessage because I delete the English directory

For the other Admin : Never delete the English : copy your lang in it or change code

like this


in profile.php

find

// Make sure we got a valid language string
                        if (isset($form['language']))
                        {
                                $form['language'] = preg_replace('#[\.\\\/]#', '', $form['language']);
                                if (!file_exists(PUN_ROOT.'lang/'.$form['language'].'/common.php'))
                                                message($lang_common['Bad request']);
                        }

replace by :

 
 // Make sure we got a valid language string
            //Modif Nico because bug when you don't have lang list... :/
            if(empty($form['language']))
                $form['language'] = 'YOURLANGUAGE';
            $form['language'] = preg_replace('#[\.\\\/]#', '', $form['language']);
            if (!file_exists(PUN_ROOT.'lang/'.$form['language'].'/common.php'))
                message($lang_common['Bad request']);

//  choose your language  //



thanks Nico and his post http://www.punbb.fr/forums/viewtopic.ph … 511#p10511

Re: Can't rename username ?

Err, there's no bug in the code as given hmm
And you can delete the English directory without bugs hmm

Re: Can't rename username ?

Smartys wrote:

And you can delete the English directory without bugs hmm

Yes, you can delete it.

Re: Can't rename username ?

So... did you resolve the issue? hmm

Re: Can't rename username ?

post #4 of this topic

pascal63 wrote:

Resolved

Thanks for all