![]() |
Capitalize First Letter in Thread Title
The subject describes it rather well: this hack will automatically capitalize the first letter for all new thread titles. Simple, yet effective. Enjoy. :)
|
Thanks, TWTCommish. I was in a need for something like this, i'm glad to see you releasing it. Thanks again. :D
|
Great!:)
Satan |
Quote:
Nice hack. |
As opposed to the Pretty Good Satan? :D
|
Nice, this comes in handy! :)
|
Just sucks if you type in "vBulletin."
|
Hehe. Yep. For most boards, though, that sorta thing isn't an issue, thankfully. If you like your threads capitalized properly, you're definitely gonna spend more time editing them without this, than with it.
|
Is this the thread where we rewrite native php functions?
ucfirst ? Make a string's first character uppercase ucwords -- Uppercase the first character of each word in a string ;) |
I forgot about that function. I haven't used it in ages. It doesn't matter, though: the hack works in an almost identical fashion and is no harder/easier to install. :)
|
There's a bug in this hack.
If you try to create a thread called test with the contents of the word test and then you try and create a thread called Test and the contents of test it never creates the 2nd thread. big bug. Found it when I first tested it. I uninstalled it as well. :p |
You can (at least on my board) create a thread with the exact same title as another thread, unless of course you have some sort of modification preventing this action.
|
Quote:
|
there is better way to do it, using CSS, simple, effective...
demo at http://nekio.com/gallery/v_showentry...5&entryid=1260 Look at the comment I posted, and my Username, my name 1st letter capitilized. |
Quote:
Code:
text-transform: none |
Wondered how I forgot this one! ;)
|
Quote:
|
I don't see the CSS solution as being "better" at all. It's certainly no quicker than the hack, which is remarkably simple. What's more, using a server-side solution allows even the very few who do not support CSS to benefit from its effects.
|
TWTCommish - only NN 3 does not supports CSS, so we just will ignore them. Still, what is the CSS solution for that, Nano?
|
Right. Over 99% of all surfers DO support it...but a small handful don't, and the CSS solution doesn't save any time, programmer-wise or processor-wise, over the server-side solution. So why use it?
|
Because it's easier for the designer.
It saves years of hardcoding HTML. Just a few lines of .CSS that can be used all over and ... when you think, it's time to change - nothing is more easier than that. Get the point? :o) |
<font face="arial">Will this work for vB3? Or can it be ported over?</font>
|
All times are GMT. The time now is 04:47 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:
|