The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
||||
|
||||
|
Just at a quick glance, but take a look around line 387
PHP Code:
|
|
#3
|
||||
|
||||
|
*** Untested ***
Hookname: threadfpdata_presave PHP Code:
PHP Code:
PHP Code:
|
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
|||
|
|||
|
Thank you Christine for your time.
![]() Kirby your awesome, that worked perfect. :up:
|
|
#6
|
||||
|
||||
|
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. |
|
#7
|
|||
|
|||
|
Hi Christine,
The Automerged Doublepost hack had me all confused. What PITA that is, people should be able to post twice in a row. |
|
#8
|
||||
|
||||
|
Quote:
![]() People posting several times in a row are a PITA! Prevent Doubleposting is one of the best Hacks ever. |
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
||||
|
||||
|
Great that I labeled it untested
![]() Hookname: threaddata_presave PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|