The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Capitalise First Letter of Post/Sentence
I've seen the various "capitalise" mods around the forum, but none work for me.
Hope someone can tell me how to do this. I would like to capitalise the first letter of every post on my forum, and also capitalise the first letter of each sentence. To avoid capitalising in URLs, I want the system to only capitalise after a "FULL STOP+ SPACE", so in other words ". " So links containing .com won't appear as .Com because the Full stop doesn't have a Space after it. Hope you get what I mean. Thanks, |
#2
|
||||
|
||||
Code:
$sentences = explode('. ', $post['message']); foreach ($sentences AS $sentence) { $post .= ucfirst($sentence).'. '; } $post['message'] = $post; You have the function, now just got to make it into a plugin and find the right place to put it in the code. Good luck... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|