alexp
04-17-2002, 10:00 PM
This hack allows user to opt-in to mailing lists which you, or a marketing colleague (with appropiate permissions) can create and send mail to. It uses code from the email.php script in the admin section but adds the flexibility of multiple mailing lists which users can opt-in and opt-out of.
Changes made:
1) New directory (called newsletter:) which can be accessed by poduct managers etc so non-admins can use the functionality
2) Changes to usergroup.php in the admin section allow you to assign newsletter priveleges to a user group from the admin CP
3) Changes to user options allow members to subscribe or unsubscribe to various mailing lists.
All necessary code and a fairly involved readme are included as attachments. You'll need direct access to your DB for this one, as you'll be setting up a couple of new tables.
I hope you find this helpful, and please don't hesitate to contact me via email (PM may take a while as I'm not here that regularly) if I can help at all. I'll do my best to offer support for the hack as quickly as possible.
Cheers,
Alex
PS .zip file is posted further down in the thread
If a user has permission to "cansendALLnewsletters" they will also need the lower permission of "cansendnewsletter". This is not given automatically. I suppose its a bug, but its no big deal..
Instead of uploading the new full version of usergroup.php as instructed in the readme, follow the instructions in the usergroup_changes.txt file to alter this file.
With the long SQL queries, make sure that no variable names span a line break - this will cause a DB error.
Changes made:
1) New directory (called newsletter:) which can be accessed by poduct managers etc so non-admins can use the functionality
2) Changes to usergroup.php in the admin section allow you to assign newsletter priveleges to a user group from the admin CP
3) Changes to user options allow members to subscribe or unsubscribe to various mailing lists.
All necessary code and a fairly involved readme are included as attachments. You'll need direct access to your DB for this one, as you'll be setting up a couple of new tables.
I hope you find this helpful, and please don't hesitate to contact me via email (PM may take a while as I'm not here that regularly) if I can help at all. I'll do my best to offer support for the hack as quickly as possible.
Cheers,
Alex
PS .zip file is posted further down in the thread
If a user has permission to "cansendALLnewsletters" they will also need the lower permission of "cansendnewsletter". This is not given automatically. I suppose its a bug, but its no big deal..
Instead of uploading the new full version of usergroup.php as instructed in the readme, follow the instructions in the usergroup_changes.txt file to alter this file.
With the long SQL queries, make sure that no variable names span a line break - this will cause a DB error.