![]() |
Thread title first character uppercase
I like to see the thread title always start with an uppercase. I was able to figure out how to do this in newthread.php
In v3.5.0 beta 4 I added to line 133 this code... Code:
$newpost['title'] = strtoupper($newpost['title']{0}).substr($newpost['title'], 1); Can someone who understands editpost.php better take a look and see where I can add code to make edited thread titles always start with an uppercase character. Thank you. :) |
Just at a quick glance, but take a look around line 387
PHP Code:
|
*** Untested ***
Hookname: threadfpdata_presave PHP Code:
PHP Code:
PHP Code:
|
Hi Andy,
You may want to remove the code edits and try Kirby's suggestions. If what he is thinking will work, then it will be 2 less files that you have to fiddle with on upgrades. Personally, I can't wait until I have a handle on the new plugin system. I am still in find-code-modify-code mode. :p |
Thank you Christine for your time. :)
Kirby your awesome, that worked perfect. :) :up: |
Andy,
No problem. Don't know why you deleted your post, but don't forget to take out the code edits you made. That would be a Christine move. Heh. |
Hi Christine,
The Automerged Doublepost hack had me all confused. What PITA that is, people should be able to post twice in a row. |
Quote:
People posting several times in a row are a PITA! Prevent Doubleposting is one of the best Hacks ever. |
Quote:
|
Great that I labeled it untested :D
Hookname: threaddata_presave PHP Code:
|
All times are GMT. The time now is 05:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|