vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Removing Admins from word limit. (https://vborg.vbsupport.ru/showthread.php?t=62099)

muse.mu 03-02-2004 08:08 AM

Removing Admins from word limit.
 
I beliueve i havent seen this yet. would it be hard to do>

Andreas 03-02-2004 08:27 AM

File functions_newpost.php FIND

PHP Code:

        // check max length
        
if (($postlength vbstrlen($post['message'])) > $vboptions['postmaxchars'] AND $vboptions['postmaxchars'] != 0

REPLACE that with
PHP Code:

        // check max length
        
if (($postlength vbstrlen($post['message'])) > $vboptions['postmaxchars'] AND $vboptions['postmaxchars'] != AND !is_member_of($bbuserinfo6)) 

This assumes that all your admins are in Usergroup ID 6. If this is not the case you could use
PHP Code:

        // check max length
        
require_once('./includes/adminfunctions.php)';
        if ((
$postlength vbstrlen($post['message'])) > $vboptions['postmaxchars'] AND $vboptions['postmaxchars'] != AND !can_administer()) 

But this adds a bit more overhead.

Boofo 03-02-2004 05:59 PM

How would you do this to exclude Admins from the minimum characters to post?

Andreas 03-02-2004 09:03 PM

The same way ;)
Just a few lines below there is an if which checks for the minimum length - change it the same way as for maximum.

Boofo 03-02-2004 11:15 PM

I tried that and it didn't work. ;)

Andreas 03-02-2004 11:23 PM

Hmm ... does work for me.
The only problem might be JavaScript.


All times are GMT. The time now is 08:24 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.00968 seconds
  • Memory Usage 1,720KB
  • 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
  • (3)bbcode_php_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