PM several/all members

Forum
Last Post
Threads / Messages

Dinocanid

Member
Member
Joined
Aug 30, 2016
Messages
520
Points
18
Age
23
Location
Maryland, USA
Mysidian Dollar
43,334
Has anyone figured out how to PM several members at once, or maybe all of them? I read there was supposed to be something like this included in the news mod, but that chunk of the code was never written.
 
I can think of 2 possible PHP ways to do this:

1. If you want to send the message massively, individually, so that in replying, the user is only replying to the sender: Have you tried to list the usernames/IDs into an array, then loop through the array, sending the mass message?

2. If you want to send the message as a "group", meaning that users can all see who is added to the message, and when replying, replies to the group as a whole, you could use a forum type of functionality. Of course, it would be private, and only individuals added to that message could send/receive messages on it.

Please note, I have not started using Mysidia, however, I'm an active PHP Programmer for other sites, and to my knowledge, Mysidia basically uses OOP PHP for it's scripting, therefore, the same concepts should apply.
 
Last edited:
I will try to update that mod once I have more free time (sorry, coming back from a hiatus, so I'm still trying to refresh my memory) and add that notification feature.

But until then, like JeVousDefie said, you need to make a database call to get all usernames and then do something similar to the function post() inside class_privatemessage.php to send a message to each username
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top