View Full Version : Force the first character in the thread title to be uppercase
I would like to be able to force the first character in the thread title to be uppercase?
Tekton
01-15-2005, 02:55 AM
// ### newthread.php ###
Find:
$newpost['title'] = $_POST['subject'];
change to:
$newpost['title']=strtoupper($_POST['subject']{0}).substr($_POST['subject'], 1);
That works perfect! I'll let you know if there are any issues or problems.
I used...
$newpost['title']=strtoupper($_POST['subject']{0}).substr($_POST['subject'], 1);
BTW it would help others that the php file to edit is the "newthread.php" file.
Thank you! :)
Tekton
01-15-2005, 03:23 AM
d'oh~
Yes, newthread.php. Got that people?!? *shakes fist*
*edits* You're welcome, hope it works fully. :)
Tevhid
09-08-2007, 08:52 AM
A better solution to this would be: ucfirst($your_string_here['something']);
Much easier.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.