vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=327305

Capitalizing all letters in thread title
by azmoon
07 Jun 2019 18:14

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 08 Jun 2019 01:57

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 08 Jun 2019 15:22

Quote:

Originally Posted by MarkFL (Post 2599476)
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 08 Jun 2019 17:03

For the plugins you will need one hooked at "threaddata_presave" with the code:


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

This will still allow anyone who can administrate threads to edit the thread and give an unaltered title.


All times are GMT. The time now is 19:44.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.