vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Admin/Mods exempt from character limit.... (https://vborg.vbsupport.ru/showthread.php?t=53719)

drives fast 06-02-2003 03:48 AM

Admin/Mods exempt from character limit....
 
does anyone know how to make admin/mods exempt from the character limit when starting new threads and replying to threads?

I need the team members to be able to post large posts but everyone else not be able to

thanks in advance for any help offered

Boofo 06-02-2003 04:17 AM

Yes, that is fairly easy to do. Give me a few minutes and I will try to get something together for you.

WEForums 06-02-2003 04:21 AM

In newreply.php and newthread.php find:

Code:

$message = stripsession($message);

  if

(strlen($message)>$postmaxchars and $postmaxchars!=0) {

REPLACE it with:

Code:

$message = stripsession($message);

  if

(strlen($message)>$postmaxchars and $postmaxchars!=0 and $bbuserinfo[usergroupid] != 6) {

Find (in newreply):

Code:

eval("dooutput(\"".gettemplate("newreply")."\");");

}

ADD above:

Code:

if ($bbuserinfo['usergroupid']==6) {$postmaxchars=10000000;}
Find (in newthread):

Code:

eval("dooutput(\"".gettemplate("newthread")."\");");

}

Add ABOVE:

Code:

($bbuserinfo['usergroupid']==6) {$postmaxchars=10000000;}
EDIT: Didn't see your reply, or I would have let you do it. :p And I hope that works....seems to be working for me.

Boofo 06-02-2003 05:13 AM

Here you go.

https://vborg.vbsupport.ru/showthrea...threadid=53724

Boofo 06-02-2003 05:15 AM

Quote:

Today at 01:21 AM WEForums said this in Post #3
In newreply.php and newthread.php find:

Code:

$message = stripsession($message);

  if

(strlen($message)>$postmaxchars and $postmaxchars!=0) {

REPLACE it with:

Code:

$message = stripsession($message);

  if

(strlen($message)>$postmaxchars and $postmaxchars!=0 and $bbuserinfo[usergroupid] != 6) {

Find (in newreply):

Code:

eval("dooutput(\"".gettemplate("newreply")."\");");

}

ADD above:

Code:

if ($bbuserinfo['usergroupid']==6) {$postmaxchars=10000000;}
Find (in newthread):

Code:

eval("dooutput(\"".gettemplate("newthread")."\");");

}

Add ABOVE:

Code:

($bbuserinfo['usergroupid']==6) {$postmaxchars=10000000;}
EDIT: Didn't see your reply, or I would have let you do it. :p And I hope that works....seems to be working for me.

There are a few more places to change it or you will get the java-script warning when posting the message. I put it all in the hack file.

WEForums 06-02-2003 05:25 AM

Quote:

Today at 08:15 AM Boofo said this in Post #5
There are a few more places to change it or you will get the java-script warning when posting the message. I put it all in the hack file.
That's strange. Whenever I post as an admin and click the "Character limit" link I get the max character limit as 1,000,000. When I login as a registered member, I get the limit as 40,000. I posted over 40,000 as an admin (like 500,000 characters) and it worked. No errors or anything. Tried the same for a regular member and it stopped me.

drives fast 06-02-2003 09:59 AM

thank you very much


All times are GMT. The time now is 04:42 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.01635 seconds
  • Memory Usage 1,729KB
  • 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
  • (12)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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