This is a newsletter system for LDU, originaly based on the MassMailer plugin of NEURO. Your members can select if they want the newsletter by mail or by PM in the profile. The newsletters can be written in the admin panel.


Installation:

In this example i use the custom field 6, you can also use 7 or 8...

- in "Administration > Configuration panel > Custom fields in user profile" fill out the dropdown free slot 6 - for example with Title = "Newsletter", Values = "Yes - by mail,Yes - by PM,No" and select "editable in user profile" to "Yes". 
- in the profile.tpl put the tag {PROFILE_EXTRA6}, in users.edit.tpl {USERSEDIT_FORM_EXTRA6}.
- make your settings in the config-file.
- copy the two files to /plugins/admin/ on your host.

After that, your members can select "Yes - by mail" if they want the newsletter by mail or "Yes - by PM" if they want it by PM or "No" for no newsletter. The link to write a newsletter apears in the "Administration Panel - More".

If you diden't want to give your members the choice, you simply fill the free slot only with IE "Yes,No". IMPORTANT: In this case do NOT delete or empty the $user_extrafield_pm in the config file! There has to be a value in it, else everyone who diden't choose something in the profile will get the newsletter! Just leave it as it is and you have no problems...


Update:

If you are updating an old version, trash it an reupload all files!
Watch the settings in the config file...


History:

v700:

- recoded to a 100% v700 plugin * **
- now it's translateable

*  now working also in v700 FULL mode ($cfg['compatibility600'] = FALSE;)
** not backward compatible anymore

v604

- possability to put a placeholder in the text (for the Hello [username] thing)
- removed the \\\ thing
- you see which members have joined the newsletter
- you see a total of all newsletter receivers
- the members can choose if they want the newsletter by mail or PM
- you're able to send all by mail or PM (no matter what the members have selected)


v603:

- first public release


Greetings from Switzerland
riptide
 