vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Capitalize First Letter in Thread Title (https://vborg.vbsupport.ru/showthread.php?t=41975)

TWTCommish 08-05-2002 10:00 PM

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. :)

afterlab 08-06-2002 12:12 PM

Thanks, TWTCommish. I was in a need for something like this, i'm glad to see you releasing it. Thanks again. :D

Chris M 08-06-2002 12:16 PM

Great!:)

Satan

Marshalus 08-06-2002 07:11 PM

Quote:

Originally posted by hellsatan
Great!:)

Satan

He is the Great Satan! ;)

Nice hack.

TWTCommish 08-06-2002 07:15 PM

As opposed to the Pretty Good Satan? :D

zachb 08-06-2002 07:24 PM

Nice, this comes in handy! :)

CeleronXL 08-07-2002 01:14 AM

Just sucks if you type in "vBulletin."

TWTCommish 08-07-2002 01:17 AM

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.

memobug 08-13-2002 11:56 PM

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

;)

TWTCommish 08-14-2002 12:00 AM

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. :)

Gutspiller 01-15-2003 04:20 AM

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

Kriek 04-21-2003 11:56 PM

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.

TWTCommish 04-22-2003 12:00 AM

Quote:

01-15-03 at 01:20 AM Gutspiller said this in Post #11
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

I've got no idea what you're talking about. This hack is completely incapable of "blocking" the creation of any thread in any way.

NanoEntity 04-22-2003 12:03 PM

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.

Kriek 04-22-2003 03:08 PM

Quote:

Today at 08:03 AM NanoEntity said this in Post #14
there is better way to do it, using CSS, simple, effective
Yes, as a matter of fact this is what I've been using on my personal site for ages, but I neveer thought of using it for thread titles ;)

Code:

text-transform: none
Defines normal text, with lower case letters and capital letters

text-transform: capitalize
capitalize Each word in a text starts with a capital letter

text-transform: uppercase
Defines only capital letters

text-transform: lowercase
Defines no capital letters, only lower case letters


Bison 04-22-2003 04:30 PM

Wondered how I forgot this one! ;)

gmarik 05-24-2003 11:53 AM

Quote:

04-22-03 at 05:03 PM NanoEntity said this in Post #14
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.

Your link does not works. Can you fix it?

TWTCommish 05-24-2003 08:27 PM

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.

gmarik 05-25-2003 07:39 AM

TWTCommish - only NN 3 does not supports CSS, so we just will ignore them. Still, what is the CSS solution for that, Nano?

TWTCommish 05-25-2003 03:12 PM

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?

gmarik 05-25-2003 03:59 PM

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)

Envy-UK 05-15-2004 07:44 AM

<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
  • Page Generation 0.01211 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete