Site in read-only mode

This site is now read-only following the release of MyBB 1.8 and the new mods site.

If you are looking for MyBB 1.8 mods please click here to visit the new mods site.

You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.

Write Review

Reviews

Better Caps Subject Titles - 1.0 by FBI

You have made three variables to do that?

// temporary define original subject to processed string
$titleSubject = &$post['subject'];

// start lowering all title letters
$lowercaseTitle = strtolower($titleSubject);

// begin change capital lettters on first word
$ucTitleSubject = ucwords($lowercaseTitle);

// finally, change subject to better capitalization
$post['subject'] = $ucTitleSubject;


------

Don't you think this does the same thing? In a single line:

$post['subject'] = ucwords(strtolower($post['subject']));

Written By: effone, 14th August 2013

Write Review