The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Capitalize the first letter of each sentence.
In the title.
Anyone knows how to? |
#2
|
|||
|
|||
Edit newthread.php and change the following line
$newpost['title'] = $_POST['subject']; to $newpost['title']=strtoupper($_POST['subject']{0}).substr($_POST['subject'], 1); |
#3
|
|||
|
|||
Quote:
But this wont do what i need as well. It willl only capitalize the 1st letter and not the letter at the start of a new sentence... |
#4
|
|||
|
|||
:surprised: EACH sentence? (in the title?) so every time it finds a .(period) in a post it's supposed to strtoupper the next character regardless of whether or not it's a sentence?
How many sentences do you put in your titles? |
#5
|
|||
|
|||
Quote:
you both didnt get me right.... sorry my bad.. when i ment "in the title" i ment the question is in the title of the thread. i want to apply this on the message itself.. |
#6
|
|||
|
|||
Oh, you mean your question is in the title... confusing~
So you want to capitalize the letter after a period regardless of why the period is used? |
#7
|
|||
|
|||
Quote:
You think it might have problems or something? |
#8
|
|||
|
|||
Well I just don't see the use/need for it. Also it could cause a little oddity in links with dots (among other things I suppose) -- not that it'd do actual harm in most cases...
|
#9
|
|||
|
|||
Quote:
Well thanks anyway, ill just use the one Andy wrote and apply onto the message. |
#10
|
|||
|
|||
Link?
If you add this after the require of global.php in newreply.php and newthread.php, it should work: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|