Page 1 of 1

Usernames Begin With Capital Letter - Needs update

Posted: Thu Dec 21, 2006 12:17 pm
by Leon
Usernames Begin With Capital Letter - Needs an update


#
#-----[ OPEN ]------------------------------------------
#
functions_post.php

#
#-----[ FIND ]------------------------------------------
#
global $userdata, $user_ip;


#
#-----[ AFTER, ADD ]------------------------------------------
#
$post_subject = ucfirst($post_subject);


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


I can find the code:
global $userdata, $user_ip;
At 3 places in that file, where should i put it ?
At one place or at all 3 places ?

Posted: Thu Dec 21, 2006 12:18 pm
by Leon

Code: Select all

Edited

Posted: Thu Dec 21, 2006 12:51 pm
by battye
I would do it to this area:

Code: Select all

//
// Post a new topic/reply/poll or edit existing post/poll
//
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, $post_username, $post_subject, $post_message, $poll_title, &$poll_options, &$poll_length, $post_icon = 0)
{
   global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
   global $userdata, $user_ip;
:)

Posted: Thu Dec 21, 2006 4:49 pm
by Leon
I have it there, but it dosen't work i see the
names as lowercase in the memberlist =/

Posted: Fri Dec 22, 2006 12:17 pm
by battye
That file only changes the username, from memory, for Guests posting. There should be an edit to usercp_register.php as well, which will change the usernames for those registering :)

Posted: Sat Dec 23, 2006 8:13 am
by Leon
And what kind of change is that in that file then ?

Posted: Sat Dec 23, 2006 8:23 am
by battye
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
#
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "',

#
#-----[ IN-LINE FIND ]------------------------------------------
#
$username

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
ucfirst($username)

Posted: Sat Dec 23, 2006 12:33 pm
by Leon
That worked quite nice, thank you battye :)

And Merry Cristmas on you :)

Posted: Sun Dec 24, 2006 5:12 am
by battye
Merry Christmas Leon :)

Posted: Sun Dec 24, 2006 4:47 pm
by Leon
battye wrote:Merry Christmas Leon :)
Thank you and Merry Christmas to you too battye :)