Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Jan 2006, 02:17
xlguy's Avatar
xlguy xlguy is offline
 
Join Date: Feb 2004
Lightbulb Auto capitalizing first letter of topic title?

I want my board to automatically capitalize topic titles. For example if a user starts a new thread with the title "hello this is me" the software will automatically convert it to "Hello this is me", i.e. a capital 'H'.

I came up with a solution myself, which is to edit the newthread.php file.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Is this ok? I'm not really up to date on how 3.5 works, but this solution seems to work for me. My questions are a) is there a neater/better way to do this? b) will I create any problems using that solution? and c) what is this difference betwen =& and plain old =?

Thanks
__________________
xlguy

Last edited by xlguy; 04 Mar 2006 at 01:34.
Reply With Quote
  #2  
Old 23 Jan 2006, 02:26
calorie calorie is offline
 
Join Date: May 2003
No file edit needed. Make a plugin that hooks to 'newthread_post_start' with the following content:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #3  
Old 23 Jan 2006, 19:51
xlguy's Avatar
xlguy xlguy is offline
 
Join Date: Feb 2004
Great suggestion, thanks a lot calorie.

For those of you who see this thread and implement the idea (which I personally feel would be a 'neat' option in vB options) don't forget to enable the plugin system otherwise it won't work - obvious I know but it's off by default.
Reply With Quote
  #4  
Old 24 Jan 2006, 01:11
rlamego rlamego is offline
 
Join Date: Nov 2004
You can also do this with CSS
Reply With Quote
  #5  
Old 24 Jan 2006, 01:43
LBSources LBSources is offline
 
Join Date: Nov 2005
Real name: Lenny
can anyone share the right way to do this? or is the OP's way just fine? id appreciate it..

Lenny
__________________
.....
LBSources

Learn About The Bronx, New York!
Reply With Quote
  #6  
Old 24 Jan 2006, 06:33
SnickersTK SnickersTK is offline
 
Join Date: Apr 2005
Real name: Casper
Originally Posted by calorie
No file edit needed. Make a plugin that hooks to 'newthread_post_start' with the following content:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
doesn't work. (Running 3.5.2)

Any other suggestions people?
Reply With Quote
  #7  
Old 25 Jan 2006, 09:37
SnickersTK SnickersTK is offline
 
Join Date: Apr 2005
Real name: Casper
people?
Reply With Quote
  #8  
Old 25 Jan 2006, 11:52
criscokid criscokid is offline
 
Join Date: Nov 2003
Originally Posted by calorie
No file edit needed. Make a plugin that hooks to 'newthread_post_start' with the following content:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Please can you explain the steps taken to do this. I'm new to creating vB Plugins.
Reply With Quote
  #9  
Old 25 Jan 2006, 11:56
calorie calorie is offline
 
Join Date: May 2003
http://www.vbulletin.com/docs/html/add_plugin
Reply With Quote
  #10  
Old 25 Jan 2006, 16:25
Guest210212002
Guest
 
This definitely works, thanks Calorie.

Here's the plugin.
Attached Files
File Type: xml calorie_capitalize.xml (335 Bytes, 54 views)

Last edited by Guest210212002; 25 Jan 2006 at 16:27. Reason: Automerged Doublepost
Reply With Quote
  #11  
Old 03 Nov 2007, 13:31
SBlueman SBlueman is offline
 
Join Date: Jan 2006
This plugin still work for 3.6.8. If you want it to capitalize each word in the title, simply download the plugin above and change "ucfirst" to "ucwords":

<?xml version="1.0" encoding="ISO-8859-1"?>

<plugins>
<plugin active="1" product="vbulletin">
<title>Auto Capitalize The First Letter Of Every Thread Title</title>
<hookname>newthread_post_start</hookname>
<phpcode><![CDATA[$vbulletin->GPC['subject'] = ucwords($vbulletin->GPC['subject']);]]></phpcode>
</plugin>
</plugins>
Is there a way to make it so you can choose which forum(s) to activate this in?

Last edited by SBlueman; 03 Nov 2007 at 13:38.
Reply With Quote
  #12  
Old 16 Feb 2011, 12:16
webmastersitesi webmastersitesi is offline
 
Join Date: Oct 2007
is there any plugin which is UTF-8 and capitilize each title entered and it's for 3.8.6
__________________
webmaster forum |webmaster forum
seo
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Posting Features Auto-Capitalize First Letter of Each Word In Thread Title ZomgStuff vBulletin 3.6 Add-ons 37 18 Sep 2014 06:39
Capitalize First Letter in Thread Title TWTCommish vBulletin 2.x Full Releases 21 15 May 2004 08:44



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:16.

Layout Options | Width: Wide Color: