vb.org Archive

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

pHAZE_1 05-15-2002 01:35 AM

request
 
only users with XX posts can send others a PM.. im tired of spammers hiding through PMs

RDX1 05-15-2002 02:49 AM

doesnt sound that bad ;)

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

Quote:

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


All times are GMT. The time now is 02:21 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.00943 seconds
  • Memory Usage 1,718KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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