The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with some php code
i know it sounds funny but im setting up a companies forum and do to formatting in their industry, they would like all the post/thread subjects (the title of the post) to appear in capitol letters. Heres the big problem, some of the titles will be combinations of numbers and letters. Is there some php code that can be added to the newthread.php file to do this? Any help would be greatly appriciated.
|
#2
|
||||
|
||||
well strtoupper($string) will make $string uppercase
|
#3
|
|||
|
|||
ok but im having trouble finding it in the newthread.php file do i look in this file or is this something that can be handles in the templates? Also, having numbers and letters mixed (exaple:GJHJ76N88) wont screw up the strtoupper function?
|
#4
|
||||
|
||||
ok i haven't tried this but see if this works, find this in newthread.php
PHP Code:
PHP Code:
|
#5
|
|||
|
|||
ok so this will turn everthing capital? thats what i want want. Im just confused reading the code, it turns everything to lower, then to upper?
|
#6
|
||||
|
||||
no the first one is just saying if you have the "stop shouting" option on, to just capitilize the first letter of everything, after that i just made it capitilize EVERYTHING...just try it, you'll see
|
#7
|
|||
|
|||
thanks for all your help ill give it a go in the morning
|
#8
|
||||
|
||||
your welcome
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|