The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Output Generated Mailing List to File
I'd like the "Generate Mailing List" function within the admin panel to output its results to a file, as well (or instead of) posting the results onscreen only. I've tried to use the suggestions from:
https://vborg.vbsupport.ru/showthrea...t=mailing+list and https://vborg.vbsupport.ru/showthrea...t=mailing+list But I'm still having no luck. Does anyone have a minute or two to see how email.php would be changed to include this functionality? (The errors I'm getting now relate to fopen not being able to open a stream correctly, even though perms appear fine) I'm using vbulletin 3.0.9. Thanks for any help or suggestions folks can provide! EDIT: Strange. I got it to work, but the fopen command seems to only work if the file exists there already. If the file doesn't exist, I get a "fopen failed" error message, saying permissions failure. But if the output file exists, it works just fine. Here's the code I added within the email.php file. Code:
$fp = fopen('FULL PATH TO OUTPUT FILE','w+'); while ($user = $DB_site->fetch_array($users)) { $buf = "&" . $user[email] . "\n"; fputs ($fp, $buf); flush(); } fclose($fp); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|