vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Code Please - View Topic
Topic Rating: *****
Printable View
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Code Please (6th Jun 08 at 2:44am UTC)
Resolved
I'm wondering if this would be possible.

Ok say i'm starting an new thread . And i made the topic title like this : "THE RED BOAT" , is it possible to have a code which will make it this : "The Red Boat", or if it was this : "The red boat" it will make it this : "The Red Boat" . But it will work only for topic titles .

Image
click here We have 15 Different Skins/Templates for your vForum
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Code Please (6th Jun 08 at 3:19am UTC)
So you mean auto-capitalization? I'll do this in a moment. {Smile}

rroll.to— Shorten a link, rickroll your friends.
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Code Please (6th Jun 08 at 5:33am UTC)
Ok thanks Marc {Grin} .

Image
click here We have 15 Different Skins/Templates for your vForum
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Code Please (6th Jun 08 at 8:46pm UTC)
Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /*
  4. Auto-Capitalize Post Titles by Marc
  5. Copyright 2008
  6. Do not repost
  7. */
  8.  
  9. var a = get('a','tag');
  10. for(t=0;t<a.length;t++){
  11.     if(a[t].href.match(/\/view_topic\/page\/(\d+)\/(.+?)\//)){
  12.         a[t].innerHTML = a[t].innerHTML.substring(0,1).toUpperCase() + a[t].innerHTML.substring(1,a[t].innerHTML.length).toLowerCase();
  13.     }
  14. }
  15. //-->
  16. </script>
 


Board/Global Footers. {Smile}

rroll.to— Shorten a link, rickroll your friends.
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Code Please (6th Jun 08 at 9:07pm UTC)
Thank you Marc {Grin} , its working fine . Nice work {Smile} .

Image
click here We have 15 Different Skins/Templates for your vForum
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Code Please (6th Jun 08 at 10:01pm UTC)
No worries. {Smile} Smiley

rroll.to— Shorten a link, rickroll your friends.
 Printable View

All times are GMT+0 :: The current time is 3:37am
Page generated in 0.6278 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums