View Full Version : Thread titles in all caps (reverse anti-shouting)
Phrost
05-15-2013, 02:17 PM
I'm nowhere near proficient in PHP but I do know that there's a function (strtoupper) to output characters in all caps.
What I'm trying to do is make thread titles in all caps. I imagine it's not as simple as dropping the PHP function into a template, but how would one go about creating a bit of code to wrap around a certain piece of VB content ($threadtitle, for example)?
emath
05-15-2013, 02:42 PM
you may use showthread_poll_start hook and use the function you mentioned on $thread['title']
Phrost
05-15-2013, 02:53 PM
So drop that in a plugin, then it'll automatically convert all thread titles, or does something have to be added to the templates?
emath
05-15-2013, 03:20 PM
i dont think somethink should be changed in the templates as the thread title is now sent with capital letters to the template. try it out .
Phrost
05-15-2013, 03:41 PM
So showthread_poll_start (not post?) and:
strtoupper ($thread[title]);
?
Lynne
05-15-2013, 04:00 PM
Why not just use CSS to do it?
emath
05-15-2013, 06:17 PM
seems right, you may also use Lynne suggestion and change some CSS .
doc here : http://www.w3schools.com/cssref/pr_text_text-transform.asp
Phrost
05-15-2013, 07:16 PM
Why not just use CSS to do it?
Because that's too easy!
tbworld
05-15-2013, 11:10 PM
Because that's too easy!
Unfortunately, we all suffer from that desease! Your comment made me laugh, thanks :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.