asinshesq wrote: If you want, you could add a sleep function to delay successive batches at the end just before the last close brackets. That would read somethin like this:
Note that there are similar lines that get added to admin/admin_mass_email.php so whatver changes you decide to make in includes/functions_post.php you will probably want to make there too.Code: Select all
if($j = $number_batches -1) { sleep(fill in a number of seconds here); }
vrflyer wrote:asinshesq wrote: If you want, you could add a sleep function to delay successive batches at the end just before the last close brackets. That would read somethin like this::
...Code: Select all
if($j = $number_batches -1) { sleep(fill in a number of seconds here); }
vrflyer wrote: ...One quick observation, upon embeding this code onto both files mentioned above.
When you select "All Users" from within the selection screen & you have say over 1000 users the screen will hang for at least 120sec & never goes past this screen
(if a smaller group is selected, say 25 or less then you'll get a confirmation screen of email sent successfull).
For test purposes my parameters were:
batch= 50 & sleep = 300sec.
asinshesq wrote: 3. study the megamail mod that I referred to earlier (you can do a search for it on this board) and try to adapt it's batch coding (which allows you to send out some batches, do other things, and then pick up where you left off on the batches) for this mod.
khisanthax wrote: is it posible for you to change the email subject to match the topic subject automatically?
Code: Select all
FIND
Subject: Important Announcement on the {SITENAME} Forum
REPLACE WITH
Subject: "{TOPIC_TITLE}"