[Resolved] Increasing Username character limits [Resolved] Increasing Username character limits
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Resolved] Increasing Username character limits

Started by JesseLeeStringer, August 08, 2006, 10:42:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JesseLeeStringer

Hi all.

I've recently been rushed into creating users via their email address instead of the usual usernames (simply speaking our visitors are computer illiterate)
I've recently signed them up via their email addresses and until recently became aware that there is a 25 character limit per username.

I've altered the following code to allow 40 characters instead of the usual 25
usermgr.php
    $form_data = array(
        array('input', 'user_name', $lang_usermgr_php['name'], 40),
        array('password', 'user_password', $lang_usermgr_php['password'], 25),
        array('yesno', 'user_active', $lang_usermgr_php['user_active']),
        array('group_list', 'user_group', $lang_usermgr_php['user_group']),
        array('input', 'user_email', $lang_usermgr_php['user_email'], 255),
        array('input', 'user_profile1', $CONFIG['user_profile1_name'], 255),
        array('input', 'user_profile2', $CONFIG['user_profile2_name'], 255),
        array('input', 'user_profile3', $CONFIG['user_profile3_name'], 255),
        array('input', 'user_profile4', $CONFIG['user_profile4_name'], 255),
        array('input', 'user_profile5', $CONFIG['user_profile5_name'], 255),
        array('textarea', 'user_profile6', $CONFIG['user_profile6_name'], 255)
        );


For the time being I am looking for the work around, I've searched the board and found a (coded) tutorial which I seek to implement after rush hour however need this asap. Appreiciate your time.

Sami

- there is a mod for 1.3.x here
You need to change the lenght of user_name culomn of  xxx_users table of the database to 40 too
‍I don't answer to PM with support question
Please post your issue to related board

JesseLeeStringer

thanks for the quick response bmossavari
That thread posted is the one I expect to implement very soon.
I could not find anything that relates to 25 characters nor anything that I'm familular with (SQL I'm not)
My apologies for my apparent slackness however I've only recently became familular with PHP coding

Sami

open up that table under phpmyadmin and click on change icon (its a pen)  of user_name and change the Length/Values  from 25 to 40
‍I don't answer to PM with support question
Please post your issue to related board

JesseLeeStringer

Appreciate Laymans Terms.
I found the SQL table within PHPMyAdmin  :-*
I didn't realise that it was a SQL 'issue' I suppose
I've been editing the coppermine script for a long while so SQL went right out the door

Appreciate the response bmossavari.
Any user queries based on this thread I'll be greatful to help with.

JesseLeeStringer