PDA

View Full Version : PM Message length


Nubius
04-08-2002, 08:59 AM
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, 10: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, 10:19 AM
Or you can use ismoderator():
if (strlen($message)>$pmmaxchars and $pmmaxchars!=0 and !ismoderator()) {
:)

Nubius
04-11-2002, 12:22 AM
thanks a lot, I appreciate it