![]() |
Capitalize the first letter of each sentence.
In the title.
Anyone knows how to? |
Edit newthread.php and change the following line
$newpost['title'] = $_POST['subject']; to $newpost['title']=strtoupper($_POST['subject']{0}).substr($_POST['subject'], 1); |
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... |
: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? |
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.. |
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? |
Quote:
You think it might have problems or something? |
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...
|
Quote:
Well thanks anyway, ill just use the one Andy wrote and apply onto the message. |
Link?
If you add this after the require of global.php in newreply.php and newthread.php, it should work: PHP Code:
|
Quote:
but there are some things... 1. it doesnt capitalize the first letter like i used to according to what Andy wrote which i have modded to the message... 2.it does capitalize when you go down a line... here look at this post: http://forum.ex-zone.com/showpost.php?p=581&postcount=7 |
Ah, I forgot other punctuation marks...
PHP Code:
you WANT it to capitalize on new lines too? |
Quote:
It works great just the next line thing... |
works great ! Thanks a lot !!!
but i am having trouble with links posting,after . it puts the extension with capital letter,and the link doesn`t work |
All times are GMT. The time now is 03:45 PM. |
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:
|