vb.org Archive

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

Nam 11-19-2001 09:17 AM

I'd like the hack that allow me to Mass Private Message to specific users. For example, the drop down menu that has option like: "Send PM to active users in the last 48 hours" and such. I've already install Mass PM but it send to all users. As you know, every board has lots of unactive users, doing that way will save lots of useless PM to them.

Can anybody make this one? It woldn't really hard, I believe.

Nam 11-19-2001 08:05 PM

Nobody needs this kind of hack? I like mass PMs a lot because it can be subtituted to mailling list, which might annoy some members. Mass PMs is the best way to make announcements too. Anyway, just a thought.

Cueball 03-10-2003 02:41 AM

yes, I think this would be quite useful too.
Can anyone lend a hand ? :)

Better than email.

amykhar 03-10-2003 01:16 PM

It would probably be simple to modify the existing hack. I'll take a peek at the code and see if it does what I think it does. Back in a few.

amykhar 03-10-2003 01:20 PM

Back. If you are using the mass PM hack by Chrispadfield, here is what you need to change.

Go look at his install instructions to see where this goes.

His code:
Code:

$forums=$DB_site->query("SELECT userid,username FROM user WHERE receivepm=1 ORDER BY userid");
Change to:

Code:

$datecut = time() - (48 *60*60);
$forums=$DB_site->query("SELECT userid,username FROM user WHERE receivepm=1 and lastactivity>$datecut ORDER BY userid");

That datecut gets you everyone who was active within the past 48 hours. You can tinker with it to get the time to what you desire.

NOTE: This code is untested. I don't have the hack installed myself and cannot test it.

Amy


All times are GMT. The time now is 11:17 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.01018 seconds
  • Memory Usage 1,711KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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