Mod Name / Version: Restrict PMs by Group 1.0 & 2.0
Description: Allows you to restrict (or Allow) Private Messages to a specific user group.
Working Under: UBB.Threads 6.2-6.3-6.4
For Version 6.4 use the 2.0 instructions posted in a reply below!!!
Mod Status: Beta
Any pre-requisites: none
Author(s): JoshPet
Date: 05/12/03
Credits: Eugene & Coloradok5 for requesting it
Files Altered: sendprivate.php, mess_handler.php
New Files: none
Database Altered: none
Info/Instructions: NOTE - I give instructions to use this one of two ways. To either only allow a specific group to use private messages and the other to only block a specific group from using private messages. Read the directions carefully. If you wish to switch the way it works, you will need to comment out the "if" line, and uncomment the other one. <img src="/forum/images/graemlins/wink.gif" alt="" />
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Josh, I'm trying to implement this hack on a friend's board.... Though, I keep getting:
"Fatal error: Call to a member function on a non-object in /home/breaking/public_html/forums/mess_handler.php on line 158"
I copied/pasted exactly what you have, it's actually even group 5 that I want to only have access to pms... Not sure what's happening though.... Any ideas?
Working good on 6.4 but needed to do some fancy stepping for the private moderation and new coppa stuff. But not to bad with Beyond compare. Of course I didn't read directions and banned everybody from sending private messages on the first try ... doh
If a usergroup is banned from sending PMs, can they still PM an Admin? I'd like to use this mod, but know that new users (the ones I'd be restricting) often like to reply to the Welcome PM and ask questions.
[] -------------------- I miss my Joshie-pie <sigh> [/]
LOL Thank you - nice to be missed.
If you only applied this to sendprivate.php (then it would prohibit new Private Messages) but they could still reply to PMs that they receive. Although that's not exactly air tight. Beyond that, I'd need to go a bit deeper, as the restriction is done before the script loads.
If you did it after words, they could compose a whole PM, but only allow it to be sent if they are sending it to an Admin. I'd have to play with that a bit.
No changes needed all the way through 6.5.1.1. The best way to figure something like that out, is to try it. If you'll look at the instructions, you'll notice the code is all exactly the same.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.