Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Resolved] Increasing Username character limits  (Read 2920 times)

0 Members and 1 Guest are viewing this topic.

JesseLeeStringer

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
[Resolved] Increasing Username character limits
« on: August 08, 2006, 10:42:54 am »

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
Code: [Select]
    $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.
« Last Edit: August 08, 2006, 11:28:27 am by JesseLeeStringer »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Increasing Username character limits
« Reply #1 on: August 08, 2006, 10:59:41 am »

- 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

JesseLeeStringer

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Increasing Username character limits
« Reply #2 on: August 08, 2006, 11:09:36 am »

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
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Increasing Username character limits
« Reply #3 on: August 08, 2006, 11:18:19 am »

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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

JesseLeeStringer

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Increasing Username character limits
« Reply #4 on: August 08, 2006, 11:28:04 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.