View Full Version : request
pHAZE_1
05-15-2002, 01:35 AM
only users with XX posts can send others a PM.. im tired of spammers hiding through PMs
Logician
05-15-2002, 08:39 AM
in private.php, find:
-- cut ---
if (!$fromuserinfo['receivepm'] or !$fromusergroup['canusepm']) {
--- cut--
BEFORE that ADD:
--cut--
if ($bbuserinfo[posts]<XX) { show_nopermission();exit;}
-- cut--
(Dont forget to replace XX with minimum message number)
And add the same line, before this line too:
-- cut ---
if ($message=="" or $touser=="" or $title=="") {
-- cut--
Not tested, should work though.. If not, holler and I'll fix it..;)
Enjoy! \\=^))
Logician
pHAZE_1
05-15-2002, 12:28 PM
i created a dummy user and tried it.. for what i can tell it works just fine. thx Logician
edit: they cant send pms but can they recieve them? i didnt have time to test this.
Logician
05-15-2002, 02:04 PM
Originally posted by pHAZE_1
i created a dummy user and tried it.. for what i can tell it works just fine. thx Logician
edit: they cant send pms but can they recieve them? i didnt have time to test this.
Yes they are supposed to get. (test it out pal) :)
If you dont want them to get either then you dont need the hack anyway: You can create a new usergroup for these users and disable their pm permanently. This hack makes sense if they can receive, but cant send ;)
Regards,
Logician
pHAZE_1
05-15-2002, 02:54 PM
this is just fine, i was just wondering.. thanks again
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.