vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Capitalizing all letters in thread title (https://vborg.vbsupport.ru/showthread.php?t=327305)

azmoon 06-07-2019 04:14 PM

Capitalizing all letters in thread title
 
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

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 06-08-2019 03:03 PM

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

PHP 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.


All times are GMT. The time now is 09:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01046 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete