View Full Version : Capitalizing all letters in thread title
azmoon
06-07-2019, 04:14 PM
Hello,
I want all the letters be capitalized in thread titles, including the current threads and the new ones.
I have disabled "Prevent Shouting" setting in Admin CP -> vBulletin Options -> Message Posting and Editing Options, but the new threads have not been affected.
Could you help me what should I do to capitalize all thread titles letters?
MarkFL
06-07-2019, 11:57 PM
You're going to have to run a database query to convert all existing thread titles, and you're going to have to write a plugin to force all future thread titles to be all uppercase before being written to the database.
azmoon
06-08-2019, 01:22 PM
You're going to have to run a database query to convert all existing thread titles, and you're going to have to write a plugin to force all future thread titles to be all uppercase before being written to the database.
Hello,
Thanks for the reply.
Running query is easy but I should think more about the plugin.
Beside, then what do the values of Prevent Shouting option do?
I think it's default value is 3 (or at least mine was 3).
Zero disables it, then what do the other numbers do in this option?
MarkFL
06-08-2019, 03:03 PM
For the plugins you will need one hooked at "threaddata_presave" with the code:
$vbulletin->GPC['title'] = strtoupper($vbulletin->GPC['title']);
$vbulletin->GPC['subject'] = strtoupper($vbulletin->GPC['subject']);
This will still allow anyone who can administrate threads to edit the thread and give an unaltered title.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.