Welcome, Guest. Please Login or Register.
November 24, 2024, 09:20:00 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Disable PM mod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Disable PM mod  (Read 362 times)
rhough
Noobie
*
Posts: 1


I'm a llama!

Disable PM mod
« on: August 21, 2002, 12:49:23 PM »
Reply with quote

I apologize if this already exists.  I would like to see a mod to disable the PM feature of YABB SE.  I know this seems drastic but the "children" on my forum are abusing the PM feature by making threats towards each other.  After speaking to a police detective yesterday I decided that I either need to shut off Private/Instant messages or shut off the forum.  Thanks for the help...
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:Disable PM mod
« Reply #1 on: August 21, 2002, 12:58:28 PM »
Reply with quote

Edit index.php and search for this:

   if ($action == 'im') { include_once "$sourcedir/InstantMessage.php"; IMIndex(); }
   else if ($action == 'imprefs') { include_once "$sourcedir/InstantMessage.php"; IMPreferences(); }
   else if ($action == 'imprefs2') { include_once "$sourcedir/InstantMessage.php"; IMPreferences2(); }
   else if ($action == 'imoutbox') { include_once "$sourcedir/InstantMessage.php"; IMOutbox(); }
   else if ($action == 'imremove') { include_once "$sourcedir/InstantMessage.php"; IMRemove(); }
   else if ($action == 'imsend') { include_once "$sourcedir/InstantMessage.php"; IMPost(); }
   else if ($action == 'imsend2') { include_once "$sourcedir/InstantMessage.php"; IMPost2(); }
   else if ($action == 'imremoveall') { include_once "$sourcedir/InstantMessage.php"; KillAllQuery(); }
   else if ($action == 'imremoveall2') { include_once "$sourcedir/InstantMessage.php"; KillAll(); }
   else if ($action == 'icqpager') { include_once "$sourcedir/ICQPager.php"; IcqPager(); }

and replace it with this:

   if ($action == 'icqpager') { include_once "$sourcedir/ICQPager.php"; IcqPager(); }
That will make it so im's cannot be used at all. Also you might want to go ahead and remove <yabb im> from your template.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Disable PM mod « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.036 seconds with 20 queries.