vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Exempt Administrators from Shouting Prevention (https://vborg.vbsupport.ru/showthread.php?t=118689)

Kirk Y 06-14-2006 10:00 PM

Exempt Administrators from Shouting Prevention
 
Exempt Administrators from SHOUTING Prevention

What does this do?
If you've enabled shouting prevention on your forum's but for whatever reason needed to post a message in all caps or atleast more caps than what you've outlined in the AdminCP as "shouting" -- then this hack is for you.

Details:
Just 1 quick Code Modificiation -- also I should add, that while I didn't look too deeply to see if this were possible with a plugin, I'll keep looking and if I find a way to 'pluginize' this hack, I'll do so.

Instructions:


1. Download the TXT File outlining the file edit -- or if you're too lazy to download, just read below.
PLEASE! BACKUP YOUR FUNCTIONS_NEWPOST.PHP FILE -- I AM NOT RESPONSIBLE FOR ANY "UH-OHs" THAT YOU MIGHT MAKE WHILE DOING THIS HACK.
Now, with that said, on to the instructions!
--------------------------------------------------------------------


Step 1: Find in includes/functions_newpost.php around line 640.
PHP Code:

// ###################### Start stopshouting #######################
function fetch_no_shouting_text($text)
{
// stops $text being all UPPER CASE
global $vbulletin;
return 
iif($vbulletin->options['stopshouting'] AND vbstrlen($text) >= $vbulletin->options['stopshouting'] AND $text == strtoupper($text), ucwords(vbstrtolower($text)), $text);


Step 2: Replace this with:
PHP Code:

// ###################### Start stopshouting #######################
function fetch_no_shouting_text($text)
{
// stops $text being all UPPER CASE
global $vbulletin;
return 
iif($vbulletin->options['stopshouting'] AND !is_member_of($vbulletin->userinfo6) AND vbstrlen($text) >= $vbulletin->options['stopshouting'] AND $text == strtoupper($text), ucwords(vbstrtolower($text)), $text);


Step 3: Upload your new file and shout to your heart's desire.

bashy 06-15-2006 06:52 PM

Cheers m8, installed :)

Snake 06-15-2006 06:59 PM

Thank you! :)


All times are GMT. The time now is 06:16 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.00943 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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