Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 06-02-2003, 04:48 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 06-02-2003, 05:17 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that is fairly easy to do. Give me a few minutes and I will try to get something together for you.
Reply With Quote
  #3  
Old 06-02-2003, 05:21 AM
WEForums WEForums is offline
 
Join Date: Apr 2003
Location: Jacksonville, Florida
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. And I hope that works....seems to be working for me.
Reply With Quote
  #4  
Old 06-02-2003, 06:13 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here you go.

https://vborg.vbsupport.ru/showthrea...threadid=53724
Reply With Quote
  #5  
Old 06-02-2003, 06:15 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. 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.
Reply With Quote
  #6  
Old 06-02-2003, 06:25 AM
WEForums WEForums is offline
 
Join Date: Apr 2003
Location: Jacksonville, Florida
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 06-02-2003, 10:59 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:35 PM.


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.02283 seconds
  • Memory Usage 2,221KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (12)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete