vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   prevent shouting lowercasing all Instead Of Doing This (https://vborg.vbsupport.ru/showthread.php?t=91956)

Dream 07-10-2005 10:00 PM

prevent shouting lowercasing all Instead Of Doing This
 
if you have "prevent shouting" on, vb will capitalize the first letter of words. to make it go all lower case, open functions_newpost.php, find

Code:

        return iif($vbulletin->options['stopshouting'] AND $text == strtoupper($text), ucwords(vbstrtolower($text)), $text);
replace for

Code:

        return iif($vbulletin->options['stopshouting'] AND $text == strtoupper($text), vbstrtolower($text), $text);
and upload. ucwords() is bad

jesus likes pie 07-16-2005 08:06 PM

This would be great if it was a plugin....:\

Dream 07-16-2005 08:16 PM

Quote:

Originally Posted by jesus likes pie
This would be great if it was a plugin....:\

no hooks there unfortunately ;/

jesus likes pie 07-16-2005 08:36 PM

aww damn.

O.K well i already edited some files so i guess there's no harm in installing this one :)


*shudders*

ugh i should install these file editing ones once 3.5 goes gold....that way i wont lose everything that involoves files...whatever

[high]* jesus likes pie clicks install.[/high]

dwh 08-15-2005 04:59 AM

You have my vote to make this part of the standard code.

o0Hubba0o 03-14-2006 01:35 AM

Quote:

if you have "prevent shouting" on, vb will capitalize the first letter of words. to make it go all lower case, open functions_newpost.php, find
For less experienced people you might want to change that to let them know that file is in the includes folder.

I'm gOIng tO gIvE thIs a TrY cUZ I hatE thiS TyPE of TypiNg, ANd prEveNt shOutiNG doESn'T stOp IT.

EDIT: Nope, won't work unless the first and all following letters are capitol.


All times are GMT. The time now is 02:48 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01912 seconds
  • Memory Usage 1,717KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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