Usernames Begin With Capital Letter - Needs update

All web design discussion, including Ultimate Quiz MOD support.

Moderator: CricketMX Forum Moderators

Usernames Begin With Capital Letter - Needs update

Postby Leon » Thu Dec 21, 2006 12:17 pm

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 ?
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
Leon
Know-It-All
Know-It-All
 
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am

Postby Leon » Thu Dec 21, 2006 12:18 pm

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
User avatar
Leon
Know-It-All
Know-It-All
 
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am

Postby battye » Thu Dec 21, 2006 12:51 pm

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.. home of bat's, rat's and other farmyard animals...
My articles: view all articles by battye

"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)
User avatar
battye
Site Admin
Site Admin
 
Posts: 14264
Joined: Sun Jan 11, 2004 8:26 am
Location: Victoria Falls, Zimbabwe

Postby Leon » Thu Dec 21, 2006 4:49 pm

I have it there, but it dosen't work i see the
names as lowercase in the memberlist =/
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
Leon
Know-It-All
Know-It-All
 
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am

Postby battye » Fri Dec 22, 2006 12:17 pm

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.. home of bat's, rat's and other farmyard animals...
My articles: view all articles by battye

"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)
User avatar
battye
Site Admin
Site Admin
 
Posts: 14264
Joined: Sun Jan 11, 2004 8:26 am
Location: Victoria Falls, Zimbabwe

Postby Leon » Sat Dec 23, 2006 8:13 am

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
User avatar
Leon
Know-It-All
Know-It-All
 
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am

Postby battye » Sat Dec 23, 2006 8:23 am

#
#-----[ 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.. home of bat's, rat's and other farmyard animals...
My articles: view all articles by battye

"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)
User avatar
battye
Site Admin
Site Admin
 
Posts: 14264
Joined: Sun Jan 11, 2004 8:26 am
Location: Victoria Falls, Zimbabwe

Postby Leon » Sat Dec 23, 2006 12:33 pm

That worked quite nice, thank you battye :)

And Merry Cristmas on you :)
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
Leon
Know-It-All
Know-It-All
 
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am

Postby battye » Sun Dec 24, 2006 5:12 am

Merry Christmas Leon :)
CricketMX.com.. home of bat's, rat's and other farmyard animals...
My articles: view all articles by battye

"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)
User avatar
battye
Site Admin
Site Admin
 
Posts: 14264
Joined: Sun Jan 11, 2004 8:26 am
Location: Victoria Falls, Zimbabwe

Postby Leon » Sun Dec 24, 2006 4:47 pm

battye wrote:Merry Christmas Leon :)


Thank you and Merry Christmas to you too battye :)
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
Leon
Know-It-All
Know-It-All
 
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am


Return to Web Design

Who is online

Users browsing this forum: No registered users and 1 guest

cron