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 ?
Usernames Begin With Capital Letter - Needs update
Moderator: CricketMX Forum Moderators
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Volunteer Forum Community
Code: Select all
Edited
Last edited by Leon on Sun Dec 24, 2006 4:48 pm, edited 1 time in total.
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Volunteer Forum Community
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;
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
I have it there, but it dosen't work i see the
names as lowercase in the memberlist =/
names as lowercase in the memberlist =/
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Volunteer Forum Community
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
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
And what kind of change is that in that file then ?
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Volunteer Forum Community
#
#-----[ 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)
#-----[ 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)
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
That worked quite nice, thank you battye
And Merry Cristmas on you
And Merry Cristmas on you
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Volunteer Forum Community
Merry Christmas Leon
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Thank you and Merry Christmas to you too battyebattye wrote:Merry Christmas Leon
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Volunteer Forum Community