The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Automatically making Thread Titles in "Title Case"
As you see in the title of the thread, I want to create a mod that automatically changes thread titles to "Title Case".
In PHP I know I can do it with: ucfirst($foo) thats the simple part, how would one go about doing that in vB? I like everything a bit clean and uniform, unfortunately there are people that aren't as anal as I am and don't follow the forum rules... so I figured I'd force them! Any thoughts? |
#2
|
||||
|
||||
It won't be as easy as you'd like. You will have to write a plugin to take the input and before it is saved, you convert it to Title Case. That may be easy.... but then you need to consider all the other times a user may change the title and make sure that all those times the title is converted to Title Case (like anytime the title is edited (quick edit, or advanced it) and both in the thread or in the forums by a mod or whenever).
Look at the hook "newthread_post_start" and you can probably use that. The new post is built just after that. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|