vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   PM Message length (https://vborg.vbsupport.ru/showthread.php?t=37155)

Nubius 04-08-2002 07:59 AM

PM Message length
 
jeez, it must seem I'm obsessed with hacking trying to alter things with PM's, this may not be a hack and may be real simple to do but I don't have a clue where to start, my question is:

is there a way to change the allowed PM message length to whatever you set it to but make this new length only available for admins and possibly moderators, the default allowed length is 1000 characters, well i want it to be able that if you're an admin or moderator then you could have unlimited or maybe just more like 5000, but for regular users it'd still be 1000, possible? easy? not even a real hack? any help/comments/ideas would be appreciated and to whoever will attempt this, their work will also be much appreciated and I give my thanks prior :classic:

Logician 04-10-2002 09:18 AM

For site admin there should already be no restriction. For mods edit your private.php and find this:

-- cut --
if (strlen($message)>$pmmaxchars and $pmmaxchars!=0 and $bbuserinfo[usergroupid] != 6) {
-- cut ---

Replace it as

-- cut --
if (strlen($message)>$pmmaxchars and $pmmaxchars!=0 and $bbuserinfo[usergroupid] != 6 AND $bbuserinfo[usergroupid] != X) {
-- cut --
Replace x with mods group id..

Enjoy..

Admin 04-10-2002 09:19 AM

Or you can use ismoderator():
Code:

if (strlen($message)>$pmmaxchars and $pmmaxchars!=0 and !ismoderator()) {
:)

Nubius 04-10-2002 11:22 PM

thanks a lot, I appreciate it


All times are GMT. The time now is 11:31 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.01712 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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