Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: HoverClub on March 31, 2012, 12:54:12 PM

Title: Automatic Newsletter for SMF2
Post by: HoverClub on March 31, 2012, 12:54:12 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3334)

Description
Allows anyone (including guests) to subscribe to an automatically generated weekly, fortnightly or monthly email newsletter.  Guests need to enter their email address, registered members don't.  The subscription options shows above the board index and (optionally) during forum registration.

The Newsletter can optionally contain forum stats, the latest news item, recent topics list, upcoming events from the calendar, video links (included in posts), and recent picture from SMF Gallery or SMFhacks Multimedia Gallery (if either are installed) - the newsletter email always includes an unsubscribe link as required by law.

Features:

Admin Settings:

Note that unless you have selected guest permissions OR exclude some board(s) then the titles of (and links to) new topics that appear in ALL boards will be included in the newsletter even if the recipient does not have permission to read the topic post itself.  This can be used as a way to encourage forum or group membership by showing topic titles but not allowing access to the content.

To change the CSS styling of the newsletter:
Admin->Configuration->Languages->Edit Languages->(whatever your langueg is called)->edit Languages Entries -> select "Modifications"
... find and edit the CSS string "newsltr_email_style"


Requirements:
PHP version 5.2 or higher
SMF version 2.0 or higher

Note:
On some web hosts you may need to disable compression in SMF (if the newletter preview shows a blank page):
Admin->Configuration->Server Settings->General and clear enable compressed output option

Adding Newsletter Subscription to an SMF Portal block
You can add the newsletter subscription options on any portal page (if it supports custom PHP code blocks - EzPortal, SimplePortal, etc.)  After installing this mod, create a new custom PHP block in your portal (see portal instructions) and paste the code from the file portal_block.php, included in this zip package into the new block.

Updates:
v2.01
added auto newsletter unsubscribe to user delete function
fixed various mini-bugs
v2.00
now supports SMFpacks Multimedia Gallery images in addition to SMF Gallery
v1.27
fixed youtube video URL to detect https//
v1.26
added missing picture gallery exlcude cats to database
v1.25
added subscribe on register feature
v1.23
fixed portal_block.php syntax error
added more robust check for SMF Gallery
v1.22
fixed bug in video inclusion code (shows in error log)
added sample portal PHP block code
v1.21
fixed SMF_Gallery detection bug in adminsettings
v1.20
Cleaned up HTML format imporving email client compatibility
Newsletter can include SMF Gallery pictures and YouTube videos (from posts)
v1.14
Now works properly on forums with unsupported languages (reverts to english)
v1.13
moved newsletter CSS style to languages - can now be edited by an admin
....


License:
   Copyright 2012/2013 John Robertson
   Released under the GNU/GPL license

    This is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
Title: Re: Automatic Newsletter for SMF2
Post by: OCJ on April 01, 2012, 03:24:07 AM
Several thumbnail images on the mod page are linked to the zip and not the images.

Interested to try this out though - thanks.
Title: Re: Automatic Newsletter for SMF2
Post by: TheListener on April 01, 2012, 10:27:10 AM
Looks interesting.

Is there a way the mod can be used for particular membergroups only?

Rather than have the subscribe buttons in the same location as the news  fader (almost) imo it would possibly be better on a persons profile page.


The more I see the mod on the main board the more it is growing on me.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 01, 2012, 12:34:39 PM
Several thumbnail images on the mod page are linked to the zip and not the images.
I don't see that - the images are linked to the SMF forum - got an example URL?

Is there a way the mod can be used for particular membergroups only?

Rather than have the subscribe buttons in the same location as the news  fader (almost) imo it would possibly be better on a persons profile page.

It couldn't be group specific AND allow guests to subscribe as guests don't have a profile.  The built-in SMF news stuff works reasonably well for normal registered users.  The subscribe display stuff could be put someplace else (I use it in a portal block) but it has to be fairly obvious or no-one would notice it.

This mod is was intended to drive traffic to your forum by sending regular "reminders" in the form of a newsletter) to those who visit infrequently.

Title: Re: Automatic Newsletter for SMF2
Post by: OCJ on April 02, 2012, 02:52:38 AM
I guess it was fixed ...
Quote
Several thumbnail images on the mod page are linked to the zip and not the images.

Every time I clicked the images it downloaded the zip, except the first image... at the time I posted the first message.
Title: Re: Automatic Newsletter for SMF2
Post by: Bixby on April 05, 2012, 11:17:58 AM
This is a great idea for a Mod. Thanks. A couple of questions/suggestions:

(1) Is there a way to preview the Newsletter that will be going out? As an Admin, I would like the ability to preview and perhaps control a bit of the content / format.

(2) Is there a way to see who has subscribed and who has opted out. We are working on a member engagement strategy with our forums and knowing / controlling the subscription list would be quite beneficial.

Thanks again for the mod.  I am very appreciative of the efforts of the SMF community with features and functionality.
Bixby
Title: Re: Automatic Newsletter for SMF2
Post by: OCJ on April 05, 2012, 03:23:22 PM
Quote
(1) Is there a way to preview the Newsletter that will be going out?

By testing ...

One thing I noticed, or didnt see. When I subscribed to the list as admin I wasnt showing up in the subscribed list in the admin section?

Perhaps a test preview button is a good idea - on a page or emailed to an input email address or to admin.
Title: Re: Automatic Newsletter for SMF2
Post by: mikeymx5 on April 06, 2012, 10:30:21 PM
I think that I have to agree I would love to have a test button.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 08, 2012, 03:36:50 AM
...
(1) Is there a way to preview the Newsletter that will be going out? As an Admin, I would like the ability to preview and perhaps control a bit of the content / format.

(2) Is there a way to see who has subscribed and who has opted out. We are working on a member engagement strategy with our forums and knowing / controlling the subscription list would be quite beneficial.
A preview wouldn't show exactly what a member would get as the content depends on latest posts/events/etc.  - as each member subscribes at a different time they all get different versions.  Just subscribe, wait seven days and see  :).  The formatting is taken from the standard SMF2 curve theme and includes the current forum header image and the descriptive text is in Modifications.english.php.

A subscribed viewer list might be a useful addition but the concept of this mod is that it's end-user controlled.  The viewer decides whether they want or don't want the newsletter.

One thing I noticed, or didn't see. When I subscribed to the list as admin I wasnt showing up in the subscribed list in the admin section?
There is no subscriber list in the admin section for this mod.
Title: Re: Automatic Newsletter for SMF2
Post by: OCJ on April 09, 2012, 01:43:49 PM
So the only way to tell how many people are subscribed if to dig in the sql file ... having no subscriber list is not good for people on shared hosting plans with email limits. At least if it uses default smf mailing it will throttle it so it doesnt exceed hourly limits. It doesnt help though if more important site mail is held up due to long queue - topic announcements with is default lower priority.

Would still be nice to see how many are subscribled.

2.
Having an admin test preview helps check that permissions are ok rather than wait for a live posting in a week ... and find out something was sent that shouldnt have been. As each board might be different and post timing different, it is not easy to check its working as required without a preview... until its too late when sent out live.
Title: Re: Automatic Newsletter for SMF2
Post by: !RFAN on April 10, 2012, 11:13:42 PM
after installation i got this error after redirection:

function ModifyNewsltrSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings, $smcFunc; // get list of boards... $result = $smcFunc['db_query']('', 'SELECT id_board, name FROM {db_prefix}boards'); $boards = array(0=>$txt['newsltr_includeall']); // include all boards while ($row = $smcFunc['db_fetch_assoc']($result)) $boards[$row['id_board']] = $row['name']; // get total subscribers $result = $smcFunc['db_query']('', 'SELECT COUNT(*) AS c FROM {db_prefix}hcb_newsletter'); $c = $smcFunc['db_fetch_assoc']($result); $count = $c['c']; $smcFunc['db_free_result']($result); $config_vars = array( array('check', 'newsltr_stats'), array('check', 'newsltr_news'), array('check', 'newsltr_events'), '', array('int', 'newsltr_topic_count'), array('check', 'newsltr_use_perms'), array('select', 'newsltr_exclude_boards', $boards, 'multiple'=>true,), array('desc','newsltr_prev', 'text_label'=>'[' . $txt['newsubscribe_mod_preview'] . ']'), array('desc','newsltr_subscribed', 'text_label'=> $count . $txt['newsubscribe_mod_subscribed']), array('desc','newsltr_delete', 'text_label'=>'[' . $txt['newsubscribe_mod_delmail'] . ']'), ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=newsltr'; $context['settings_title'] = $txt['newsubscribe_mod_title']; // Saving? if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; saveDBSettings($save_vars); redirectexit('action=admin;area=modsettings;sa=newsltr'); } prepareDBSettingContext($config_vars); }
Fatal error: Call to undefined function ModifyNewsltrSettings() in /home/XXXX/public_html/Sources/ManageSettings.php on line 219
Title: Re: Automatic Newsletter for SMF2
Post by: TheListener on April 10, 2012, 11:19:29 PM
after installation i got this error after redirection:

f
Code: [Select]
unction ModifyNewsltrSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings, $smcFunc; // get list of boards... $result = $smcFunc['db_query']('', 'SELECT id_board, name FROM {db_prefix}boards'); $boards = array(0=>$txt['newsltr_includeall']); // include all boards while ($row = $smcFunc['db_fetch_assoc']($result)) $boards[$row['id_board']] = $row['name']; // get total subscribers $result = $smcFunc['db_query']('', 'SELECT COUNT(*) AS c FROM {db_prefix}hcb_newsletter'); $c = $smcFunc['db_fetch_assoc']($result); $count = $c['c']; $smcFunc['db_free_result']($result); $config_vars = array( array('check', 'newsltr_stats'), array('check', 'newsltr_news'), array('check', 'newsltr_events'), '', array('int', 'newsltr_topic_count'), array('check', 'newsltr_use_perms'), array('select', 'newsltr_exclude_boards', $boards, 'multiple'=>true,), array('desc','newsltr_prev', 'text_label'=>'[' . $txt['newsubscribe_mod_preview'] . ']'), array('desc','newsltr_subscribed', 'text_label'=> $count . $txt['newsubscribe_mod_subscribed']), array('desc','newsltr_delete', 'text_label'=>'[' . $txt['newsubscribe_mod_delmail'] . ']'), ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=newsltr'; $context['settings_title'] = $txt['newsubscribe_mod_title']; // Saving? if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; saveDBSettings($save_vars); redirectexit('action=admin;area=modsettings;sa=newsltr'); } prepareDBSettingContext($config_vars); }
Fatal error: Call to undefined function ModifyNewsltrSettings() in /home/XXXX/public_html/Sources/ManageSettings.php on line 219

Rather than use the quote bbc code woulda been more suitable.

How many times did you try and install the mod?

Title: Re: Automatic Newsletter for SMF2
Post by: mikeymx5 on April 11, 2012, 01:53:11 AM
Code: [Select]
Fatal error: require_once() [function.require]: Failed opening required '/htdocs/SMF2/Sources/Subs-Newsletter.php' (include_path='.:/usr/lib/php5') in /homepages/27/d239035776/htdocs/SMF2/Sources/NewsSubscribe.php on line 35
Thanks for the update, Im getting a error when trying to preview, im looking into it but if you have any ideas.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 11, 2012, 04:19:11 AM
A little filename case issue  :-[ - now fixed and updated.
Title: Re: Automatic Newsletter for SMF2
Post by: Alpay on April 11, 2012, 05:09:58 PM
Good job , thank you ;)
Title: Re: Automatic Newsletter for SMF2
Post by: OCJ on April 13, 2012, 08:36:09 PM
Like the preview ... and the layout.

I wasn't sure if it sent full details. Some boards have members only stuff but guest access is blocked by a mod - not permissions.
Wit just links that private data is protected. At least they see the topic titles.

Admin still cant see a subscriber list? You want it that way?
Might be cases where you want to delete junk or malformed addresses, bounced mail etc.

But I like it so far.

Maybe a screenshot on the mod download page of the preview would be a good idea so people can see straight away what the output is like.


[Preview Newsletter]

3 people are subscribed

[Delete a recipient from the mailing list.]


Seems odd ... there is a box to enter email to unsubscribe but I cant see anywhere the subscribed emails. Doesnt show the guest email I subscribed. And doesn't show Admins email when it is subscribed. Not sure how to unsubscribe someone if I cant see the emails.
And it doesnt show a user email that is subscribed.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 14, 2012, 04:02:44 AM
 
Quote
Not sure how to unsubscribe someone if I cant see the emails.
And it doesnt show a user email that is subscribed.
The only reason for unsubscribing someone is if their email address bounces - the admin is notified of returned emails so will have the email address.  The mod only stores email addresses (as it has to work for guests) - no user info is saved that would allow you to connect it to a registered user.
Title: Re: Automatic Newsletter for SMF2
Post by: OCJ on April 14, 2012, 04:32:06 AM
Uhmm, ok.

It doesnt allow for any kind of pruning - a lot of subscription lists will get overloaded eventually.  People tend not to unsubscribe but filter it as junk... or often Ive had people complain and ask to remove them rather than they do it.
Doesn't hurt to trim old subscriptions now and again. Or it would mean uninstalling, delete all mod data and start over, with all recent subscriptions lost.


Updated:


Quote
I don't know how you would decide who to unsubscribe (apart from bouncing emails) when you don't know whether they still want the newsletter?  If you just randomly delete subscribers then you may as well just clear all the data as you say.  If the subscriber list gets very large then it's a sign that the newsletter is doing it's job - maybe it would be better to look at why those people aren't visiting or participating?

Newsletter list do get large and old subscribers not interested often do not unsubscribe. One list I know (similar site)  just deletes addresses over 1 year old and if they want it they come back and register again. His server cant deal with emailing out thousands of messages every week when perhaps only 500 recent ones are truly interested.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 16, 2012, 03:17:52 AM
I don't know how you would decide who to unsubscribe (apart from bouncing emails) when you don't know whether they still want the newsletter?  If you just randomly delete subscribers then you may as well just clear all the data as you say.  If the subscriber list gets very large then it's a sign that the newsletter is doing it's job - maybe it would be better to look at why those people aren't visiting or participating?
Title: Re: Automatic Newsletter for SMF2
Post by: timned88 on April 16, 2012, 01:55:41 PM
I installed this and when I hit preview, I got the following error:

Quote
Content Encoding Error
          The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Please contact the website owners to inform them of this problem.

Any ideas what happened?
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 16, 2012, 02:11:09 PM
Double compression probably.
Admin->Configuration->Server Settings->General and clear enable compressed output option should do the trick.
Title: Re: Automatic Newsletter for SMF2
Post by: timned88 on April 16, 2012, 11:04:29 PM
That did it.  Thank you very much.
Title: Re: Automatic Newsletter for SMF2
Post by: Kreator on May 03, 2012, 02:07:34 AM
I subscribed to my own newsletter, however when I got the email there was nothing.

the preview shows all the boards/Topics, but this is not in the received email  just

get_news
To unsubscribe from this newsletter please click here

any fix??
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on May 03, 2012, 09:05:48 AM
Current version seems to work fine.  Try re-downloading and installing again (it won't overwrite any subscribers unless you choose to do so).  If it still doesn't work then let me have your site and access and I'll take a look
Title: Re: Automatic Newsletter for SMF2
Post by: swordsman1 on May 05, 2012, 10:51:25 AM
This is a great mod. I get tons of users join, post for a while, only to then forget about the forum never to return. Periodically I would create a reminder newsletter for all members, manually creating a list of recent topics in an attractive html layout. But creating an HTML newsletter by hand every few weeks is such a bind. This mod essentially does that automatically which is wonderful.

My suggestions for improvement are as follows.

An option for all members to be joined by default. I have thousands of dormant members who no longer visit who I'd like to send it to and I'm sure they would appreciate getting it (if not they can click the link to immediately unsubscribe).

Instead of a list of Latest Posts it would be better to have Recently Updated Topics. Otherwise posts from a popular topic will swamp out all other topics. And have them grouped into their individual boards rather than all mixed together.

Can the subscribe/unsubscribe line be moved off the homepage as it just adds unnecessary clutter in quite a prominent position. Instead have a newsletter link among the existing menu items at the top, to link to a seperate page with the options to subscribe/unsubscribe.

Have a section in the newletter for a customised message to tell the recipients whats new since the last newslettter etc.
Title: Re: Automatic Newsletter for SMF2
Post by: Rafferty on May 06, 2012, 11:47:23 PM
Great mod, well done. I just got my first auto newsletter through my email with a couple of problems:

1. The Title is blank

2. As per the attachment, left hand icons are not displaying.

Hope these can be fixed.

As a final suggestion, Id like to see an admin function to add subscribers.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on May 07, 2012, 03:42:41 AM
An option for all members to be joined by default. I have thousands of dormant members who no longer visit who I'd like to send it to and I'm sure they would appreciate getting it (if not they can click the link to immediately unsubscribe).
I'm not a fan of unsolicited email (i.e. spam!) and doing this would risk the forum server being branded as a spam source.

Quote
Instead of a list of Latest Posts it would be better to have Recently Updated Topics.
The list actually shows the newest post in the most recent topics.  Not sure if a recipient would be much interested in a board title - it's the subject that's the key thing I would reckon.

Quote
Can the subscribe/unsubscribe line be moved off the homepage as it just adds unnecessary clutter in quite a prominent position.
I'll put this on the list - maybe a selection of places could be added.

Quote
Have a section in the newletter for a customised message to tell the recipients whats new since the last newslettter etc.
You can use the news fader to do this - just add your what's new as the latest news fader item and it will appear in the newsletter (you don't need to have the news fader enabled on the forum for the last itme to be included in the newsletter).

1. The Title is blank
2. As per the attachment, left hand icons are not displaying. [/quot]
1. Do you mean the title in the email body?  If so it uses the current theme Logo image URL - if there isn't one then nothing will show.
2. Check the settings on your email client - it's probably blocking inline images.
Title: Re: Automatic Newsletter for SMF2
Post by: Rafferty on May 07, 2012, 04:52:30 AM
The Email Subject is blank

I use Mozilla Thunderbird, cant find any inline settings. Other similar emails seem to display properly however, just not this one.

Also didnt mention before, see attached shot. the forum stats not appearing fully
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on May 07, 2012, 06:18:01 AM
There is something wrong with the text strings or theme on your forum - try removing and re-installing the mod.  Several text strings seem to be missing (some of them are installed with the mod so shouldn't be missing unless deleted after the mod was installed).

Thunderbird also has problems showing HTML emails from other sources in my experience.  The newsletter displays fine in Outlook, etc.
Title: Re: Automatic Newsletter for SMF2
Post by: swordsman1 on May 07, 2012, 06:45:18 AM
An option for all members to be joined by default. I have thousands of dormant members who no longer visit who I'd like to send it to and I'm sure they would appreciate getting it (if not they can click the link to immediately unsubscribe).
I'm not a fan of unsolicited email (i.e. spam!) and doing this would risk the forum server being branded as a spam source.

It would be no more spam that the existing SMF newsletter facility which allows you to send newsletters to all existing members. As there, if members have chosen not to receive announcements then they shouldn't get newsletters. On top of that they can also unsubscribe after receiving the first newsletter.
Title: Re: Automatic Newsletter for SMF2
Post by: Rafferty on May 07, 2012, 09:43:36 AM
There is something wrong with the text strings or theme on your forum - try removing and re-installing the mod.  Several text strings seem to be missing (some of them are installed with the mod so shouldn't be missing unless deleted after the mod was installed).

Thunderbird also has problems showing HTML emails from other sources in my experience.  The newsletter displays fine in Outlook, etc.

Its the standard default theme. The newsletter also displays fine when reviewing. Ive re installed the mod and Ill see how I go. Possibly another mod interfering with it?

Thanks
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on May 07, 2012, 02:41:50 PM
It would be no more spam that the existing SMF newsletter facility which allows you to send newsletters to all existing members. As there, if members have chosen not to receive announcements then they shouldn't get newsletters. On top of that they can also unsubscribe after receiving the first newsletter.
May be - however, it's against my religion to allow unsolicited mail - sorry  :)
Title: Re: Automatic Newsletter for SMF2
Post by: swordsman1 on May 07, 2012, 03:10:35 PM
It would be no more spam that the existing SMF newsletter facility which allows you to send newsletters to all existing members. As there, if members have chosen not to receive announcements then they shouldn't get newsletters. On top of that they can also unsubscribe after receiving the first newsletter.
May be - however, it's against my religion to allow unsolicited mail - sorry  :)


Thats a shame. I don't think anyone else would consider the current SMF newsletter facility of sending newsletters to all members as immoral!
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on May 08, 2012, 03:24:48 AM
Thats a shame. I don't think anyone else would consider the current SMF newsletter facility of sending newsletters to all members as immoral!

Difference is that one is manual (recipient has not explicitly given consent) and this mod is automatic (recipient HAS consented).  I'm sure if you sent an SMF news mail every week to every member then you'd get some complaints  ;)
Title: Re: Automatic Newsletter for SMF2
Post by: swordsman1 on May 08, 2012, 04:46:01 AM
Difference is that one is manual (recipient has not explicitly given consent) and this mod is automatic (recipient HAS consented).  I'm sure if you sent an SMF news mail every week to every member then you'd get some complaints  ;)

No, with SMF manual newsletters the owner can send newsletters to members with or without their consent, by clicking the tickbox to observe their announcement preferences. Similarly with this mod I'd envisage a button in the admin section to add them to the newsletter subscription list only if they have opted to receive announcements. And just as with manual newsletters the recipients can easily cancel if their don't like getting them. So I don't really see the problem.

I won't press it any more though, it's your mod. :)
Title: Re: Automatic Newsletter for SMF2
Post by: !RFAN on May 16, 2012, 09:53:11 PM
after installation i got this error after redirection:

function ModifyNewsltrSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings, $smcFunc; // get list of boards... $result = $smcFunc['db_query']('', 'SELECT id_board, name FROM {db_prefix}boards'); $boards = array(0=>$txt['newsltr_includeall']); // include all boards while ($row = $smcFunc['db_fetch_assoc']($result)) $boards[$row['id_board']] = $row['name']; // get total subscribers $result = $smcFunc['db_query']('', 'SELECT COUNT(*) AS c FROM {db_prefix}hcb_newsletter'); $c = $smcFunc['db_fetch_assoc']($result); $count = $c['c']; $smcFunc['db_free_result']($result); $config_vars = array( array('check', 'newsltr_stats'), array('check', 'newsltr_news'), array('check', 'newsltr_events'), '', array('int', 'newsltr_topic_count'), array('check', 'newsltr_use_perms'), array('select', 'newsltr_exclude_boards', $boards, 'multiple'=>true,), array('desc','newsltr_prev', 'text_label'=>'[' . $txt['newsubscribe_mod_preview'] . ']'), array('desc','newsltr_subscribed', 'text_label'=> $count . $txt['newsubscribe_mod_subscribed']), array('desc','newsltr_delete', 'text_label'=>'[' . $txt['newsubscribe_mod_delmail'] . ']'), ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=newsltr'; $context['settings_title'] = $txt['newsubscribe_mod_title']; // Saving? if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; saveDBSettings($save_vars); redirectexit('action=admin;area=modsettings;sa=newsltr'); } prepareDBSettingContext($config_vars); }
Fatal error: Call to undefined function ModifyNewsltrSettings() in /home/XXXX/public_html/Sources/ManageSettings.php on line 219
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on May 17, 2012, 02:34:43 AM
Does the mod install without any file mod errors showing before you click "Install Now"?  Do the mod settings work OK after the installation (Admin...Configuration->Modification Settings->Newsletter)?  If not, it isn't installing properly (give me a link and access and I'll take a look).  If it does work then I can't explain why the settings file hasn't been updated just after install (maybe a server file cache someplace hasn't been updated quickly enough?).
Title: Re: Automatic Newsletter for SMF2
Post by: toolbox on June 16, 2012, 02:43:16 AM
Great mod.
Only problem is keep getting this error in the log since installing, any ideas please ?


http://www.cwht.co.uk/cwht/cwht-forum-2012/index.php?http://www.cwht.co.uk/cwht/cwht-forum-2012/
8: Undefined variable: news_ltr
File: /xx/xxxxxx/xxxxxx/xxxxxxxx/cwht-forum-2012/Themes/default/languages/GoogleMap.english.php (main sub template - eval?)
Line: 121

Thanks.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on June 18, 2012, 03:18:37 AM
No idea why I'm afraid.  Where did the GoogleMap fle come from (a mod?)?   The only template file modified is BoardIndex.php - if you want to send me your copy I'll take a look.
Title: Re: Automatic Newsletter for SMF2
Post by: toolbox on June 18, 2012, 09:57:51 AM
GoogleMap is a mod and with this uninstalled the error then shows as BoardIndex.php.

Have found that it only happens when a person looks at our main front page without being logged in.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on June 18, 2012, 12:19:31 PM
Have found that it only happens when a person looks at our main front page without being logged in.
... and when either no items are enabled in the newsletter OR guests are not allowed to subscribe....  Fixed now.
Title: Re: Automatic Newsletter for SMF2
Post by: toolbox on June 18, 2012, 04:20:55 PM
Thank you.
Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on June 25, 2012, 12:40:46 PM
Useful mod for admin.

Will try using it immediately.
Title: Re: Automatic Newsletter for SMF2
Post by: tassie73 on July 04, 2012, 02:00:34 AM
Anyone still interested in a subscription list for this?

I made one for myself and happy to share if anyone is interested and it is okay by HC. Simple php script not part of the admin panel (yet ;) ) but does the job I want it for.

Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on July 07, 2012, 07:51:44 PM
Found the mod very useful to rebuild our old users.

As said, though webmaster we need to wait for 1st 7 days to receive the newsletter in our email to see a preview of it.

Email looks perfect. But on the forum admin page, when i click newsletter preview. Still am getting error message and no preview now.

I would be happy if we could add our users list like everyone here requested. So that we could add the entire memberlist and they could opt out if needed.

Anyone still interested in a subscription list for this?

I made one for myself and happy to share if anyone is interested and it is okay by HC. Simple php script not part of the admin panel (yet ;) ) but does the job I want it for.



Yes please send it to me either on post or pm.  :)
Title: Re: Automatic Newsletter for SMF2
Post by: TheListener on July 07, 2012, 08:26:26 PM
The newsletter shows the news

Latest members, recent topics and posts etc.

You can choose what the newletter sends to members.
Title: Re: Automatic Newsletter for SMF2
Post by: tassie73 on July 09, 2012, 06:48:13 PM
This is the script I am using for the subscription list.

Still need to add a link to it from the admin page, but at the moment it does the job I am after.

Code: [Select]
<?php
$con 
mysql_connect("db server name","db username","db password");

mysql_select_db("db name"$con);

$result mysql_query("SELECT * FROM smf_hcb_newsletter");

echo 
"<table border='1'>
<tr>
<th>Email</th>
</tr>"
;

while(
$row mysql_fetch_array($result))
  {
  echo 
"<tr>";
  echo 
"<td>" $row['email'] . "</td>";
  echo
"</tr>";
  }
echo 
"</table>";

mysql_close($con);

?>


Just save it and add it to your forum root directory and away you go!


Could extend it to add in the members name also by adding in the extra field if you wanted to. Simply add in the extra table data lines. If you want a hand with that too, let me know.

Cheers

Chris
Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on July 23, 2012, 12:56:15 PM
Newsletter from the My Forum Name received in my mailbox only for the first time.

I have installed the mod on 1st july 2012 and selected weekly option for the newsletter.

Received the 1st newsletter only on 7th july 2012.

2nd newsletter not received to any subscribers - 15 july 2012

3rd newsletter not received to any subscribers - 22 july 2012

Now the forum is showing the next newsletter due on 29 july 2012

19 people are subscribed

Preview newsletter button had not showed the preview even once from the day of install.

Kindly assist admin.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on July 23, 2012, 01:31:17 PM
Preview just dumps html to the browser so it has to work?  What do you see?

Have you checked the SMF mail queue?

Do you have new posts (if none and no other options included then no newsletter will get sent as there is no news!)

What was the "next" date after 15/22 July?
Title: Re: Automatic Newsletter for SMF2
Post by: Sweetwater on July 30, 2012, 08:59:36 AM
THank you for your work on this mod, I would find this very useful for my forum, however it doesn't load properly (issue with the boarindextemplate. Did manual override but still couldn't get it to work properly. Am guessing it's a conflict with another mod so will have deleted it.

Thankyou for your efforts however. This mod has alot of potential.  8)
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on July 30, 2012, 01:01:35 PM
Did you manually edit the board index template?  It shouldn't conflict with any other mod.  In what way does it not work?
Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on July 31, 2012, 11:36:46 AM
Newsletter from the My Forum Name received in my mailbox only for the first time.

I have installed the mod on 1st july 2012 and selected weekly option for the newsletter.

Received the 1st newsletter only on 7th july 2012.

2nd newsletter not received to any subscribers - 15 july 2012

3rd newsletter not received to any subscribers - 22 july 2012

Now the forum is showing the next newsletter due on 29 july 2012

19 people are subscribed

Preview newsletter button had not showed the preview even once from the day of install.

Kindly assist admin.

I have the same problem, the preview dont show...
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on July 31, 2012, 04:28:32 PM
Repeating "it doesn't work" isn't very helpful I'm afraid  ::).  I've asked several questions (see below) but not got any answers that might help find the problem.  Without answers (or access to a forum where the problem occurs) I can't really do much about it.
Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on August 01, 2012, 10:11:32 PM
well it gives a Erro 330 (net::ERR_CONTENT_DECODING_FAILED)
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 05, 2012, 12:34:18 PM
well it gives a Erro 330 (net::ERR_CONTENT_DECODING_FAILED)
http://www.simplemachines.org/community/index.php?topic=472724.msg3315730#msg3315730
Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on August 05, 2012, 01:46:39 PM
fixed thank you
Title: Re: Automatic Newsletter for SMF2
Post by: littlenicki on August 06, 2012, 09:21:18 AM
Hello, could this great mod be backportet to SMF 1.1 please? Thank you
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 06, 2012, 10:04:54 AM
Not by me I'm afraid - I have never use SMF1 and have no reason to do so.  Why not upgrade - or get someone to port it for you?
Title: Re: Automatic Newsletter for SMF2
Post by: Arantor on August 06, 2012, 10:11:18 AM
When you find someone to build a scheduled tasks system for 1.1 first... ;)
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 06, 2012, 10:21:23 AM
When you find someone to build a scheduled tasks system for 1.1 first... ;)
Shows how much I know about SMF1  :-[
Title: Re: Automatic Newsletter for SMF2
Post by: Arantor on August 06, 2012, 10:46:29 AM
It's one of the lesser known improvements in 2.0 was the addition of it. There were a couple of mods that added a sort of scheduling system however those have a tendency to overlap and not be as reliable as SMF 2.0's.
Title: Re: Automatic Newsletter for SMF2
Post by: littlenicki on August 06, 2012, 11:05:14 PM
Okay, I see it depens on functions only available in 2.0. Thanks so though guys!
Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on August 07, 2012, 09:41:27 AM
is there a way to change the style of the newsletter page?
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 07, 2012, 10:09:37 AM
Not currently, but the next release will allow the CSS style block to be edited in the SMF language editor.
Title: Re: Automatic Newsletter for SMF2
Post by: crustybum on August 08, 2012, 06:53:14 AM
Help...tried to install and got this...now lost forum completely

Fatal error: Cannot redeclare scheduled_newsltr() (previously declared in /home/content/c/r/u/crustya/html/theforum/Sources/ScheduledTasks.php:1871) in /home/content/c/r/u/crustya/html/theforum/Sources/ScheduledTasks.php on line 1976
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 08, 2012, 07:43:46 AM
Looks like you've installed the mod twice (or over an old version installation)?  If you can't access the forum then you should edit the /home/content/c/r/u/crustya/html/theforum/Sources/ScheduledTasks.php and remove the duplicate function scheduled_newsltr()

OR

... using an FTP client or your web host control panel's file manager) :

1. make a duplicate of file /home/content/c/r/u/crustya/html/theforum/Sources/ScheduledTasks.php (call it whatever you like)

2. delete the file: /home/content/c/r/u/crustya/html/theforum/Sources/ScheduledTasks.php

3. rename the file /home/content/c/r/u/crustya/html/theforum/Sources/ScheduledTasks.php~ (NOTE the tilde char at the end!)
as
ScheduledTasks.php (NO tilde)

4. then remove the newsltr mod manually by editing the files (see mod download page).

Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on August 08, 2012, 01:07:10 PM
Not currently, but the next release will allow the CSS style block to be edited in the SMF language editor.

awsome, can't wait for it, my forum have  theme and I would like to make the newsletter like the forum theme
Title: Re: Automatic Newsletter for SMF2
Post by: crustybum on August 09, 2012, 05:03:16 AM
Many thanks, tried 3 times now to install this excellent mod but its not having it :( each time its messed up, have restored the forum now but its left the actual "subscribe" tab at the top which wont work obviously because i have removed the mod O:) ...how can i remove it? (i have this working perfectly on another site BTW
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 09, 2012, 06:39:53 AM
See the  mod page (http://custom.simplemachines.org/mods/index.php?mod=3334) and clicke the parse button (manual install instructions) and remove all the stuff listed that was added by the mod in the various files.

AS I said, it looks like it's installing over a previous unsuccessful install which has left various parts of the mod.  If you remove the bits above then it will work OK

Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on August 17, 2012, 06:06:25 PM
hi mate, where do I change the CSS? i already installed the new version but theres nothing on my Themes/default/languages folder...
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 18, 2012, 03:35:50 AM
Admin->Configuration->Lanuguages->Edit Languages->English->edit Languages Entries -> select "Modifications"
... and find the string newsltr_email_style
Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on August 19, 2012, 01:06:25 PM
hi there, sorry to be bothering again but is it possible to add images in the newsletter?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FUNjR9.png&hash=c9332ca7fd65a97567a715164cfab3a6)

I wanna add the forum logo in the top and take out the name, is it possible? sorry but I suck ate webdesign lol
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 19, 2012, 01:19:42 PM
I wanna add the forum logo in the top and take out the name, is it possible? sorry but I suck ate webdesign lol
You already have the forum logo at the top (the newsletter will include the current them logo if one is specified - otherwise it uses the forum name)?
Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on August 19, 2012, 08:24:27 PM
hmmm so when it send the newsletter it will have the logo? or it will be send just like in the preview?

my forum have a logo but somehow it didn't showed in the first newsletter
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 20, 2012, 02:53:44 AM
 Your screen dump shows a logo top left?  Check Current Theme->Theme Options and Settings->Logo image URL
Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on August 21, 2012, 07:41:45 AM
my theme don´t have logo, only manual... when I change to the old theme (smf theme) the logo appears in the newsletter but when I change back to my theme the logo disappear...

well I guess i can't have all but this mod is really awsome, good job with this
Title: Re: Automatic Newsletter for SMF2
Post by: Horseman on August 25, 2012, 08:23:43 AM
I have a problem with the back  link when i subrscribe or unsubsribe

the link goes to http://www.Site.com/index.php?action=forum

i have installed PortaMX Portal and my forum is "community" http://www.Site.com/index.php?action=community NOT forum

Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 27, 2012, 03:17:17 PM
Sorry - not a lot I can do about it I'm afraid - your site hasn't got a standard SMF forum display.
Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on August 31, 2012, 04:58:55 PM
Newsletter from the My Forum Name received in my mailbox only for the first time.

I have installed the mod on 1st july 2012 and selected weekly option for the newsletter.

Received the 1st newsletter only on 7th july 2012.

2nd newsletter not received to any subscribers - 15 july 2012

3rd newsletter not received to any subscribers - 22 july 2012

Now the forum is showing the next newsletter due on 29 july 2012

19 people are subscribed

Preview newsletter button had not showed the preview even once from the day of install.

Kindly assist admin.

Still my problem exist admin. Even yesterday it showed next newsletter on 30th aug. But no mails in my inbox. In schedule everything including newsletter is properly send on time and i notice a log there also.

Kindly assist. 59 people are subscribed and also preview shows empty error page.
Title: Re: Automatic Newsletter for SMF2
Post by: luuuciano on September 30, 2012, 01:09:46 PM
Double compression probably.
Admin->Configuration->Server Settings->General and clear enable compressed output option should do the trick.

This continue being that way? we have to put the global forum compression off, to have the newsletter one working?
I mean, there is no workaround? it is nice to have compression on the forum and not just on newsletters, lol
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on September 30, 2012, 03:22:59 PM
This continue being that way? we have to put the global forum compression off, to have the newsletter one working?
I mean, there is no workaround? it is nice to have compression on the forum and not just on newsletters, lol

No fix yet - if you see the problem it's because your web server is already compressing the output.  Setting compression off in SMF will actually make page loads faster in this case as it will remove the unnecessary compression.
Title: Re: Automatic Newsletter for SMF2
Post by: luuuciano on September 30, 2012, 06:37:58 PM
But it is compresing it because SMF admin tell it to... or not?
And that is good, we want to use compression on a smf forum... what it is better, to use compression on the whole smf forum or just on the newsletter function?
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 01, 2012, 03:40:06 AM
HTTP compression is almost certainly already being be done by your web server at the request of the browser accessing your page (ALL browsers request compressed data).  Turn off SMF compression and test it  HERE (http://www.whatsmyip.org/http-compression-test/)).  Double compressing the data just wastes both server and client processing time.

This issue seems to be that the SMF email code is compressing the HTML included in the newsletter - most email clients can't then handle it.  SMF does check whether zlib enableCompressedOutput is enabled and won't double compress if it is,  However, even if enableCompressedOutput is disabled, the web server STILL compresses data (at least it does on the servers I've checked).
Title: Re: Automatic Newsletter for SMF2
Post by: ben sisko on October 05, 2012, 05:28:10 AM
hello,
what should i change to the modification to get in the newsletter the icons of the OP (original post) instead of the icons of the reply?
thanks
Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on October 07, 2012, 01:15:55 AM
Newsletter from the My Forum Name received in my mailbox only for the first time.

I have installed the mod on 1st july 2012 and selected weekly option for the newsletter.

Received the 1st newsletter only on 7th july 2012.

2nd newsletter not received to any subscribers - 15 july 2012

3rd newsletter not received to any subscribers - 22 july 2012

Now the forum is showing the next newsletter due on 29 july 2012

19 people are subscribed

Preview newsletter button had not showed the preview even once from the day of install.

Kindly assist admin.

Still my problem exist admin. Even yesterday it showed next newsletter on 30th aug. But no mails in my inbox. In schedule everything including newsletter is properly send on time and i notice a log there also.

Kindly assist. 59 people are subscribed and also preview shows empty error page.

Dear Admin,

Any update for me. Now 80 subscribers . But none got the newsletter.  ???
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 07, 2012, 04:25:39 AM
What newsletter mod settings are you using?

What are your mail settings?

Does the scheduled task log show the newsletter task completing?

Have you disabled SMF compression?

If nothing is showing in the preview then either compression is enabled OR there is nothing selected to include in the newsletter.
Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on October 09, 2012, 06:34:45 AM
What newsletter mod settings are you using?

What are your mail settings?

Does the scheduled task log show the newsletter task completing?

Have you disabled SMF compression?

If nothing is showing in the preview then either compression is enabled OR there is nothing selected to include in the newsletter.


Hi Admin,

I have mail settings enabled and am getting reigstrations, birthday reminders properly except newsletter.

Scheduled task log is showing as completed for every day.

SMF compression is enabled in my forum - also will it not create any problem if i disable it throughout the forum.

All options have been selected. Am afraid to disable compression.

Check all screenshots and give me your feedback.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 09, 2012, 07:31:55 AM
Disable compression as specified in the mod and discussed in this thread.
Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on October 09, 2012, 08:07:04 AM
Disable compression as specified in the mod and discussed in this thread.


Dear Admin,

Once i have posted here, i had read about compression and gzip. And tried disabling it. And saw the preview was working perfectly.

Also i think the email newsletter will work. But found simplemachines and hoverclub were using compression enabled.
http://www.whatsmyip.org/http-compression-test/?url=aHR0cDovL2hvdmVyY2x1Yi5vcmcudWsv
http://www.whatsmyip.org/http-compression-test/?url=aHR0cDovL3NpbXBsZW1hY2hpbmVzLm9yZy9jb21tdW5pdHkv

Also my dedicated server load had increased more than 50% after disabling the compression.

Server configurations :
Pro Dedicated Server
Intel Xeon 5506 (Quad Core)
8 GB DDR2 Memory
2 X 500 GB Hard Drives
2,000 GB Bandwidth

So again enabled compression to reduce server load.

I have a quick question, how come hoverclub was running perfectly without disabling compression . ( kindly do not think am pointing your, just asking your suggestions ).
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 09, 2012, 09:00:47 AM
The hoverclub site doesn't have SMF compression enabled - it also doesn't have PHP zlib.output_compression active.  But, as you can see, the HTML is still being compressed - as  I said before, the only reason I can find is that browsers are requesting compressed data and the server complies whatever the settings may say.  If your server load has really increased by 50% when disabling SMF compression then there is some other issue.

Title: Re: Automatic Newsletter for SMF2
Post by: InsaneMustang on October 09, 2012, 11:53:33 AM
Any way to force this option to ON for all members.  I see this like an email that could help get inactive members back.
Title: Re: Automatic Newsletter for SMF2
Post by: ben sisko on October 11, 2012, 05:38:58 AM
hello,
what should i change to the modification to get in the newsletter the icons of the OP (original post) instead of the icons of the reply?
thanks
any word for me? thx.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 11, 2012, 06:39:49 AM
hello,
what should i change to the modification to get in the newsletter the icons of the OP (original post) instead of the icons of the reply?
thanks
any word for me? thx.
You'll need to change the SQL query in Subs-Newsletter.php.  Quite a complicated change to the query would be required!
Title: Re: Automatic Newsletter for SMF2
Post by: Gryzor on October 22, 2012, 06:54:29 AM
Hello!

Useful mod!

Any way to make it have a "daily" option as well?

Thanks!
T
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 22, 2012, 08:25:00 AM
Thanks,

Could be daily but members can already sign up (notifications) for a daily digest so unless there are loads of new calendar events (without posts)  every week then I can't see the benefit (unless I've missing something?).
Title: Re: Automatic Newsletter for SMF2
Post by: Gryzor on October 22, 2012, 08:41:00 AM
Ahhh I think you're right! I've never used the daily digest option, I'm not sure about where to even find it to be frank, but I think you're right.

Btw, one thing the mod could use some improvement on would be the looks of it, maybe you could imitate the forum's look with tables or something? Very basic, you know, nothing fancy...
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 22, 2012, 09:07:58 AM
Ahhh I think you're right! I've never used the daily digest option, I'm not sure about where to even find it to be frank, but I think you're right.

Btw, one thing the mod could use some improvement on would be the looks of it, maybe you could imitate the forum's look with tables or something? Very basic, you know, nothing fancy...

Check profile->notifications for the daily digest.

You can style the newsletter however you wish by editing the language string newsltr_email_style - it's a simple table format.
Title: Re: Automatic Newsletter for SMF2
Post by: Gryzor on October 23, 2012, 03:16:26 AM

Check profile->notifications for the daily digest.

You can style the newsletter however you wish by editing the language string newsltr_email_style - it's a simple table format.


Well, I think the digest there doesn't work quite the same way - I mean, you have to actually subscribe to different boards first, but also I'm not sure it works as intended (you have to disable Instant notifications because it takes precedence, for instance?).

As for the newsletter format, fantastic, I'll take a look :)
Title: Re: Automatic Newsletter for SMF2
Post by: InsaneMustang on October 29, 2012, 11:04:42 AM
Any way to force this option to ON for all members.  I see this like an email that could help get inactive members back.

Repost!
Title: Re: Automatic Newsletter for SMF2
Post by: luuuciano on December 28, 2012, 09:15:06 PM
Thanks,

Could be daily but members can already sign up (notifications) for a daily digest so unless there are loads of new calendar events (without posts)  every week then I can't see the benefit (unless I've missing something?).


You mean notification on new replies/posts? members using that option will receive an email every new thing they had...
But using a daily newsletter option they will receive just one daily digest, about new topics, etc...
Or... people is a bit silly, and do not set ups notifications... with daily digests they have another option to use... they may use the one they prefer

(maybe Im missing something)

BTW, one question... subscribed users can change they settings somewhere? (weekly, fortnightly, etc)

BTW2, It could be implemented an option to include a random news fade item, instead always the latest one?
(we have quotes inthere)

BTW3, where to touch to change the topic image, to the user avatar? it would be nicer that way

BTW4, where to touch to send only new topics, instead new messages (replies on topics) + new topics?


I will be sharing the spanish language strings later! :) ADDED
you can use it on spanish and spanish_latin too

The option Include all boards is inside "Don't include topics from these boards"... it is a bit confusing

Code: [Select]
$txt['newsubscribe_mod_title'] = 'Newsletter ';
$txt['newsubscribe_mod_subscribe'] = 'Suscribirse';
$txt['newsubscribe_mod_subscribed'] = ' miembros suscriptos';
$txt['newsubscribe_mod_unsubscribe'] = 'Desuscribirse';
$txt['newsubscribe_mod_preview'] = 'Previsualizar Newsletter';
$txt['newsubscribe_mod_email'] = 'Dirección de email: ';
$txt['newsubscribe_mod_week'] = '  Semanal';
$txt['newsubscribe_mod_fort'] = '  Quincenal';
$txt['newsubscribe_mod_month'] = '  Mensual';
$txt['newsubscribe_mod_noemail'] = 'Lo siento, pero la dirección de email no ha sido encontrada en el listado de suscripciones. Por favor, inténtelo nuevamente. ';
$txt['newsubscribe_mod_bademail'] = 'Lo siento, pero esa no parece ser una dirección de email válida. Por favor, inténtelo nuevamente. ';
$txt['newsubscribe_mod_donesub'] = 'Se ha suscripto a ';
$txt['newsubscribe_mod_doneunsub'] = 'No continuará recibiendo el ';
$txt['newsubscribe_mod_done'] = 'Volver';
$txt['newsubscribe_mod_next'] = '  - próximo el ';

$txt['newsltr_news'] = 'Incluir el último ítem de Noticia:<br /><span class= "smalltext">No es necesario que el bloque de Noticias esté activado para incluirla.</span>';
$txt['newsltr_events'] = 'Incluir eventos del calendario:<br /><span class= "smalltext">El calendario debe estar activado - el número máximo de eventos incluídos se configura en el ítem <i>Máximo días de antelación en el índice de foros</i> en la Configuración del calendario.</span>';
$txt['newsltr_topic_count'] = 'Número de títulos de temas/enlaces a incluir (máx. 50):<br /><span class= "smalltext">Configurar a 0, o dejar en blanco, si no quiere que sean incluídos temas para nada.</span>';
$txt['newsltr_position'] = 'Posición de la opción de suscripción en la página:<br /><span class= "smalltext">Si lo selecciona los botones de suscripción/desuscripción se ubicarán debajo del listado de foros, si lo deja deseleccionado aparecerán arriba del listado.</span>';
$txt['newsltr_stats'] = 'Incluir estadísticas del foro:<br /><span class= "smalltext">Incluye el total de mensajes, temas y cantidad de miembros.</span>';
$txt['newsltr_allow_guest'] = 'Permitir a los invitados suscribirse';
$txt['newsltr_use_perms'] = 'Usar permisos de invitados:<br /><span class= "smalltext">Si está seleccionado el newsletter incluirá sólo títulos de temas que los visitantes tengan permiso para ver - Si se lo deja deseleccionado podrá incluir enlaces a temas que los invitados no puedan ver completamente.</span>';
$txt['newsltr_exclude_boards'] = 'No incluir temas de estos foros:<br /><span class= "smalltext">Utilice tecla Ctrl o Shift para seleccionar múltiples foros.</span>';
$txt['newsltr_includeall'] = 'Incluir todos los foros';
$txt['newsubscribe_mod_delmail'] = 'Borrar receptor del newsletter.';

// email text
$txt['newsltr_email_header'] = 'Newsletter desde %s';
$txt['newsltr_email_unsub'] = '<div class="smalltext">Para desuscribirse de este newsletter <a href="'. $scripturl . '?action=NewsSubscribe;unsubscribe;email=%s">utilice este enlace</a></div>';
$txt['newsltr_email_news'] = 'Últimas noticias:';
$txt['newsltr_email_posts'] = 'Últimos temas:';
$txt['newsltr_email_events'] = 'Eventos próximos:';
$txt['newsltr_email_style'] = '#content{padding-left: 20px; text-align:center; margin: 0 auto; font: 78%/130% "Verdana","Arial","Helvetica",sans-serif; color: #444444; empty-cells: show;} table { width:100%;border-bottom: 1px solid #FFFFFF;border-right: 1px solid #fff; font-size: 0.95em; padding: 3px; } thead { background: #a7b9cd; color: #ffffff; } .subject { background-color: #F0F4F7;color: #000000;} .smalltext { font-size: 0.9em;} .icon { text-align: center; background-color: #E7EAEF; }.date { background-color: #F0F4F7; color:green;}td { padding: 3px;border-bottom: 1px solid #fff; border-right: 1px solid #fff;} h2 { margin-bottom: 0px;}';
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on December 31, 2012, 01:15:10 PM
You mean notification on new replies/posts? members using that option will receive an email every new thing they had...
But using a daily newsletter option they will receive just one daily digest, about new topics, etc...
Or... people is a bit silly, and do not set ups notifications... with daily digests they have another option to use... they may use the one they prefer
They can select daily or weekly digests using the SMF notification system.
Quote
BTW, one question... subscribed users can change they settings somewhere? (weekly, fortnightly, etc)
No settings are needed as it's very easy just to unsubscribe and re-subscribe again with different settings.
Quote
BTW2, It could be implemented an option to include a random news fade item, instead always the latest one?
(we have quotes in there)
Then it wouldn't be new news but could be old or duplicate news that they get. - not what would be expected from a newsletter IMO.
Quote
BTW3, where to touch to change the topic image, to the user avatar? it would be nicer that way
BTW4, where to touch to send only new topics, instead new messages (replies on topics) + new topics?
See posts below in this thread - it would need a change to the SQL query.

Thanks for the Spanish translation!
Title: Re: Automatic Newsletter for SMF2
Post by: luuuciano on January 06, 2013, 01:04:03 AM
wow... I have no idea why this happened, but I have instaled this mod 3 or 4 days ago...
Then the mysql server started to go down like 4 to 6 times a day........ I was just restarting it (mysqld)
Then I uninstalled it... all normal, all ok...
Title: Re: Automatic Newsletter for SMF2
Post by: ro-lkw on January 08, 2013, 12:12:22 PM
Doesn't work on my forum.I have theme WHITEBOX.

Can help me someone ?
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on January 08, 2013, 12:30:12 PM
Doesn't work on my forum.I have theme WHITEBOX.

Can help me someone ?
Not unless you can provide a bit more information than "it doesn't work"  ::).  Exactly what doesn't work?  Did it install properly?  Does it work with the standard Curve theme?  Are the configuration options available? Does the sign-up info appear on the forum page?  Etc, etc.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on January 08, 2013, 12:42:58 PM
wow... I have no idea why this happened, but I have instaled this mod 3 or 4 days ago...
Then the mysql server started to go down like 4 to 6 times a day........ I was just restarting it (mysqld)
Then I uninstalled it... all normal, all ok...
The mod only makes one very simple SQL query for each board index page load - if that's causing your SQL server to choke then you've got other more serious issues I'm afraid  :(.
Title: Re: Automatic Newsletter for SMF2
Post by: scvoyager on January 21, 2013, 08:58:30 AM
I downloaded this mod yesterday and so far it is great. I have reworked much of it to fit my forums needs and the first newsletter turned out almost perfect showing everything as expected plus the latest youtube videos and photos. I did make a change so members can pick daily, weekly and monthly. I did this for testing reasons and also members may like to get the latest daily changes to the forum.

The one thing I can't get working completely is having the form show up on the simple portal page. I have had a lot of parse errors and currently have all the buttons showing but no text yet.

This is kind of out of my league and could use some help on how to make a php block for this mod.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on January 21, 2013, 09:22:13 AM
You don't say which portal you are using - this is what I've used with EzPortal:
Code: [Select]
global $modSettings, $txt, $scripturl, $context;

// make sure newletter is installed and enabled
if (!empty($modSettings['newsltr_news']) OR !empty($modSettings['newsltr_events']) OR !empty($modSettings['newsltr_topic_count']))
{
$context['user']['newsltr'] = array('next_ltr_date'=>'', 'period'=>'', 'email'=>'',);
if (!$context['user']['is_guest'])
{
global $smcFunc;
$result = $smcFunc['db_query']('', '
SELECT email, next_ltr_date, period
FROM {db_prefix}hcb_newsletter
WHERE email = \'' . $context['user']['email'] . '\'
LIMIT 1'
);

if ($row = $smcFunc['db_fetch_assoc']($result))
$context['user']['newsltr'] = $row;
$smcFunc['db_free_result']($result);
}

echo '
<div class="smalltext">
<form action="',$scripturl,'?action=NewsSubscribe" method="post" accept-charset="',$context['character_set'],'" name="newsSubscriber">
<input type="hidden" name="sc" value="', $context['session_id'], '" />
<input type="hidden" name="lastaction" value="forum" />';

if ($context['user']['is_guest'])
echo $txt['newsubscribe_mod_email'] . '<input type="text" clasa="input_text" maxlength="255" size="25" value="' . $context['user']['newsltr']['email'] . '" name="email" />';
else
echo '
<input type="hidden" name="email" value="', $context['user']['email'], '" />';
if ($context['user']['is_guest'] OR empty($context['user']['newsltr']['email']))
echo '
<input type="submit" class="button_submit" name="subscribe" value="' . $txt['newsubscribe_mod_subscribe'] .'"/>
<br /><Input type="radio" name ="period" value="7"' . (($context['user']['newsltr']['period'] == 7) ? ' checked' :'')  . '>' .
$txt['newsubscribe_mod_week'] . '
<br /><Input type="radio" name ="period" value="14"' . (($context['user']['newsltr']['period'] == 14) ? ' checked' :'')  . '>' .
$txt['newsubscribe_mod_fort'] . '
<br /><Input type="radio" name ="period" value="30"' . ((empty($context['user']['newsltr']['period']) OR $context['user']['newsltr']['period'] == 30) ? ' checked' : '')  . '>' . $txt['newsubscribe_mod_month'];
if ($context['user']['is_guest'] OR !empty($context['user']['newsltr']['email']))
echo ($context['user']['is_guest'] ? '<br />' : $txt['newsubscribe_mod_next'] . date(' j F', $context['user']['newsltr']['next_ltr_date'])) . '<input type="submit" class="button_submit" name="unsubscribe"  value="' . $txt['newsubscribe_mod_unsubscribe'] .'"/>';
echo '
</form>
</div>';
}
Title: Re: Automatic Newsletter for SMF2
Post by: scvoyager on January 21, 2013, 09:39:47 AM
I put the portal (simple portal) in the second paragraph but I have found most php blocks interchange between most of the portals. Your php block works perfect and only had to make a few changes that had nothing to do with your great work.

Thanks much.
Title: Re: Automatic Newsletter for SMF2
Post by: Gryzor on January 25, 2013, 01:53:22 PM
Can you help? I tried upgrading to today's version, but I get this error when I try to access the settings:

Quote
Table 'wikiforum.smf_gallery_cat' doesn't exist
File: /path...forum/Sources/ManageSettings.php
Line: 2658

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.3, while your database is at version 2.0.1. The above error might possibly go away if you execute the latest version of upgrade.php.

SELECT id_cat, title FROM smf_gallery_cat ORDER BY roworder ASC

needless to say, it worked fine before and I haven't had that message before... my 2.03 upgrade worked fine and upgrade.php has been deleted as usually, so not sure that's the problem. Any feedback?

Thanks!
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on January 25, 2013, 02:14:33 PM
It's a bug  :-[ -I'll upload an update shortly.  Thanks for the testing  ;)
Title: Re: Automatic Newsletter for SMF2
Post by: Gryzor on January 25, 2013, 02:18:36 PM
Phew. For a few minutes I got panicked, because I had just done some major tuning on my server and I thought I broke something - been looking in my db backups :D

Thanks, can wait :)
Title: Re: Automatic Newsletter for SMF2
Post by: Gryzor on January 25, 2013, 02:24:11 PM
Oh yeah. Working perfectly now!
Title: Re: Automatic Newsletter for SMF2
Post by: assemblytube on January 28, 2013, 11:20:14 AM
Installed Automatic Newsletter version 121 and it is causing me problems.
Previously had version 114 and it was working well.
I uninstalled 114 and installed 121. The install seemed to go OK and I can see a sample Newsletter with the new features.
However, I now get this chunk of text at the top of my forum pages:

SendNews(); return true; } function scheduled_send_email_campaign() { global $smcFunc, $sourcedir; global $sourcedir; require $sourcedir . '/NewsPro2.php'; // Loop though all the pending campaigns $curTime = time(); $result = $smcFunc['db_query']('', "SELECT ID_CAMPAIGN FROM {db_prefix}newspro_campaigns WHERE removed = 0 AND status = 0 AND scheduledate < $curTime"); while ($row = $smcFunc['db_fetch_assoc']($result)) { SendCampaign($row['ID_CAMPAIGN']); } // Return for the log... return true; } ?>


And in additon this has affected the display of items on my SimplePortal front page.

I uninstalled 121 and I still have the chunk of text showing at the top of my forum pages.

Can you advise me on where I might look to fix this please.
Thanks for your help.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on January 28, 2013, 11:42:58 AM
Its the end of the Newsletter mod (up to the return true;) followed by another mod's code.  Both bits of code should be in Sources/ScheduledTasks.php - how they got to the top of the forum page I've no idea!  Might be a good idea to do a full code restore?
Title: Re: Automatic Newsletter for SMF2
Post by: assemblytube on January 29, 2013, 04:35:01 AM
Thanks for the advice.
Site now working properly.
I believe I had a conflict between this Newsletter mod and another Newsletter mod I have.
Thanks.
Title: Re: Automatic Newsletter for SMF2
Post by: b0tze on February 09, 2013, 09:41:38 AM
Thank you very much for this mod!

I had the preview/compression issue as well, but figured it out by reading through this thread ;-)
Now I am excited to see the actual mail, but I guess I have to wait 7 days now... How about a "send preview to webmaster" button? Might have the advantage to be able to check if it's working, in case there are other issues. Or a welcome-newsletter after signing up... Just ideas, I love it already :-D

Thanks again!
b0tze
Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on February 10, 2013, 07:26:52 AM
Hi Hoverclub,

Is this version has a update for the preview/compression issues . Because as said in 6th page by other user. When i enable compression, our 140 users were getting email. But server is overloading and i have got my MySQL freezed several times a day.

So over month the mod is working and not sending to anyone.Got 140 subscribes as shown in admin page.

If this version has the fix for preview / compression issues. Then i will use it . Kindly advice.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on February 10, 2013, 08:25:46 AM
The HTML part of the newletter has been tidied up but there is no fix for the compression issue as that's handled by SMF. 

Enabling compression increases server load - disabling it decreases load (either way it has no effect on MySQL load!).   Compression reduces bandwidth but that's all - if your server is already compressing the data then enabling it in SMF just wastes server resources.

b0tze
I don't understand how you know you have a compression issue if you haven't received any newsletters yet?  The admin preview lets you check the newsletter looks OK - provided your SMF email/scheduled tasks settings work with other forum emails then the newsletter will get sent.
Title: Re: Automatic Newsletter for SMF2
Post by: b0tze on February 14, 2013, 06:28:54 AM
no problems, just saying i had the compression issues (preview-error) until i disabled the compression output at server settings and now it works, so now i'm looking forward to receiving the first newsletter-mail :-)
Title: Re: Automatic Newsletter for SMF2
Post by: b0tze on February 17, 2013, 12:57:44 PM
Now I do have problems, my first newsletter was due yesterday but did not go out. I have following errors in the log:

8: Undefined variable: videos
2: Invalid argument supplied for foreach()

each error 3 times. I have set number of videos to 0 (don't need any). The preview seems to work, but only shows this:

Forum [as a link to the forum]
Latest News:
[content: the latest news i entered]
Forumstatistiken
[statistical content]

There is no content about any threads or posts (from the last days).

Would be great to get it working, thanks a lot for any advice!

cheers, b0tze
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on February 17, 2013, 03:19:42 PM
The videos error is a bug and will be fixed at the next update.

What settings do you have for the mod (are you sure you haven't disallowed ALL boards that may have new posts)?
Title: Re: Automatic Newsletter for SMF2
Post by: b0tze on February 18, 2013, 03:00:25 AM
ok, good to know and thanks in advanced!

a screenshot of my settings is attached, I excluded 2 out of many more, so there should be enough content left.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on February 18, 2013, 05:14:19 AM
The mod looks for the last posts anywhere on the forum - the only exceptions are the recycle board (if you have one) and any excluded boards you've selected in the mod settings.  The posts must be also be approved (or are auto-approved).  It's a simple SQL query and I can't see how it can fail to find any posts unless there aren't any  ???

If you can give me access (PM) to your test forum I can take a look.
Title: Re: Automatic Newsletter for SMF2
Post by: b0tze on February 19, 2013, 01:28:06 PM
I am such an idiot.
For everyone else reading this thread: I understood the opposite of the expanation of the "use guest permission". Reading more careful would have helped...

Thanks again, HoverClub, for the help and this great mod!
b0tze
Title: Re: Automatic Newsletter for SMF2
Post by: error_2 on February 20, 2013, 10:20:12 AM
Hi,

I have installed this mod to my site. It introduced 15 errors on http://validator.w3.org/check?uri=yoursitehere.com
Can you update your mod to complain with w3 validator?

Thanks!
Title: Re: Automatic Newsletter for SMF2
Post by: gpwizard on March 11, 2013, 07:09:02 PM
Hi,

I've installed the mod and get a successful preview. When I cut and paste the block code provided into a PHP block in Simple Portal I get a syntax error. On checking the code I get  - syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 13

Can you help with this please.

Cheers
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on March 12, 2013, 05:47:36 AM
On checking the code I get  - syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 13
... in which file?
Title: Re: Automatic Newsletter for SMF2
Post by: gpwizard on March 12, 2013, 06:28:57 AM
In the portal_block.php file provided. The problem here maybe obvious but its not to me. Any help is appreciated.

Quote
<?php
   global $modSettings, $txt, $scripturl, $context;
   
   // make sure newletter is installed and enabled
   if (!empty($modSettings['newsltr_news']) OR !empty($modSettings['newsltr_events']) OR !empty($modSettings['newsltr_topic_count']))
   {
      $context['user']['newsltr'] = array('next_ltr_date'=>'', 'period'=>'', 'email'=>'',);
      if (!$context['user']['is_guest'])
      {
         global $smcFunc;
         $result = $smcFunc['db_query']('', '
            SELECT email, next_ltr_date, period
               FROM smf_hcb_newsletter
            WHERE email = '' . $context['user']['email'] . ''
               LIMIT 1'
         );

         if ($row = $smcFunc['db_fetch_assoc']($result))
            $context['user']['newsltr'] = $row;
         $smcFunc['db_free_result']($result);
      }
   
      echo '
   <div class="smalltext">
      <form action="',$scripturl,'?action=NewsSubscribe" method="post" accept-charset="',$context['character_set'],'" name="newsSubscriber">
         <input type="hidden" name="sc" value="', $context['session_id'], '" />
         <input type="hidden" name="lastaction" value="forum" />' . $context['forum_name'] . ' ' . $txt['newsubscribe_mod_title'];
      
      if ($context['user']['is_guest'])
         echo $txt['newsubscribe_mod_email'] . '<input type="text" clasa="input_text" maxlength="255" size="25" value="' . $context['user']['newsltr']['email'] . '" name="email" />';
      else
         echo '
            <input type="hidden" name="email" value="', $context['user']['email'], '" />';
      if ($context['user']['is_guest'] OR empty($context['user']['newsltr']['email']))
         echo '
         <input type="submit" class="button_submit" name="subscribe" value="' . $txt['newsubscribe_mod_subscribe'] .'"/>
         <br /><Input type="radio" name ="period" value="7"' . (($context['user']['newsltr']['period'] == 7) ? ' checked' :'')  . '>' .
         $txt['newsubscribe_mod_week'] . '
         <br /><Input type="radio" name ="period" value="14"' . (($context['user']['newsltr']['period'] == 14) ? ' checked' :'')  . '>' .
         $txt['newsubscribe_mod_fort'] . '
         <br /><Input type="radio" name ="period" value="30"' . ((empty($context['user']['newsltr']['period']) OR $context['user']['newsltr']['period'] == 30) ? ' checked' : '')  . '>' . $txt['newsubscribe_mod_month'];
      if ($context['user']['is_guest'] OR !empty($context['user']['newsltr']['email']))
         echo ($context['user']['is_guest'] ? '<br />' : $txt['newsubscribe_mod_next'] . date(' j F', $context['user']['newsltr']['next_ltr_date'])) . '<input type="submit" class="button_submit" name="unsubscribe"  value="' . $txt['newsubscribe_mod_unsubscribe'] .'"/>';
   echo '
      </form>
   </div>';
   }
?>
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on March 12, 2013, 06:38:33 AM
change
Code: [Select]
WHERE email = '' . $context['user']['email'] . ''to
Quote
WHERE email = \'' . $context['user']['email'] . '\'
Title: Re: Automatic Newsletter for SMF2
Post by: shady18n on March 27, 2013, 08:43:31 PM
Hi, is it possible to autosubscribe all members to the newsletter (and then let them unsubscribe, if they wish)? i.e. opt-out rather than opt-in?
Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on March 28, 2013, 01:11:28 PM
Hi, is it possible to autosubscribe all members to the newsletter (and then let them unsubscribe, if they wish)? i.e. opt-out rather than opt-in?

Good idea, think about the mails sent to spam if you have more than 500 emails in your site. If users have more than 40,000 users like us. Spam will be a bigger concern. And you will daily receive thousands and thousands of failure notice in your email if this option is done.

But idea sounds good.  8)
Title: Re: Automatic Newsletter for SMF2
Post by: shady18n on April 01, 2013, 05:52:12 AM

Good idea, think about the mails sent to spam if you have more than 500 emails in your site. If users have more than 40,000 users like us. Spam will be a bigger concern. And you will daily receive thousands and thousands of failure notice in your email if this option is done.

But idea sounds good.  8)

It might not be appropriate to your site, but in my case, we have 500 invitation-only members. Some subscribed in the early days of the forum and we'd like to entice them back by showing them what they are missing.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 01, 2013, 07:18:19 AM
This has been discussed previously (see  HERE (http://www.simplemachines.org/community/index.php?topic=472724.msg3329302#msg3329302)).  If you want to send a single reminder to all members then you can use the SMF Admin News & Newsletter function to do that.
Title: Re: Automatic Newsletter for SMF2
Post by: shady18n on April 02, 2013, 06:54:22 AM
This has been discussed previously (see  HERE (http://www.simplemachines.org/community/index.php?topic=472724.msg3329302#msg3329302)).  If you want to send a single reminder to all members then you can use the SMF Admin News & Newsletter function to do that.

Yes, but that doesn't send a sample of this newsletter, does it? My issue is similar to that in the referenced post - I'd like to bring back in dormant members. I don't mind that being a one off send of a sample newsletter via the SMF newsletter function, but would like to be able to send the content of the newsletter mod. I'm not too worried about auto-subscribing people (I'd prefer to have it as an option, I can understand why others don't want it on their forums).
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 02, 2013, 09:15:20 AM
Yes, but that doesn't send a sample of this newsletter, does it?
Preview the newsletter sample - > Right-click: View Page Source -> copy all -> paste into Admin newsletter and tick the "Send in HTML format..."
Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on April 02, 2013, 05:28:59 PM
Yes, but that doesn't send a sample of this newsletter, does it?
Preview the newsletter sample - > Right-click: View Page Source -> copy all -> paste into Admin newsletter and tick the "Send in HTML format..."

Good but, honestly he would have not expected this kind of response from you. Yes it works but still we need in a mod format and not a manual process as shady18n said.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 03, 2013, 03:56:42 AM
Good but, honestly he would have not expected this kind of response from you. Yes it works but still we need in a mod format and not a manual process as shady18n said.
Quote from: chady18n
I don't mind that being a one off send of a sample newsletter via the SMF newsletter function, but would like to be able to send the content of the newsletter mod. I'm not too worried about auto-subscribing people...
It's simply not worth the considerable effort required to develop and test mod code for something that takes 4 seconds to do and is only occasionally used - unless you want to volunteer to do it?
Title: Re: Automatic Newsletter for SMF2
Post by: shady18n on April 17, 2013, 08:12:22 AM
Sorry not to have responded earlier (must set notify on thread).

Actually, HoverClub's response is fine, that is basically what I need, and I wasn't aware of the option quoted. It would be great if it were part of the mod, but I don't mind running it manually.

Many thanks.
Title: Re: Automatic Newsletter for SMF2
Post by: error_2 on April 17, 2013, 08:39:56 PM
I have removed your mod because you are ignoring my error report.

Quote
Hi,

I have installed this mod to my site. It introduced 15 errors on hxxp:validator.w3.org/check?uri=yoursitehere.com [nonactive]
Can you update your mod to complain with w3 validator?

Thanks!
Title: Re: Automatic Newsletter for SMF2
Post by: Arantor on April 17, 2013, 09:00:43 PM
Considering that you never actually bothered to say what the errors were... and the fact that they're probably caused by a combination of this mod (which doesn't seem to cause errors on the default theme) and your custom theme...

That, and the fact that I doubt the ignoring was intentional. You know people do occasionally miss things. Especially when it's someone who made something and was nice enough to share. You're *not required* to use it, just as HoverClub is *not required* to keep it up to date or anything.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 18, 2013, 04:12:00 AM
I have removed your mod because you are ignoring my error report.

Quote
Hi,

I have installed this mod to my site. It introduced 15 errors on hxxp:validator.w3.org/check?uri=yoursitehere.com [nonactive]
Can you update your mod to complain with w3 validator?

Thanks!
I didn't ignore it - if you had installed the updated mod a couple of months ago you would have found that the validator warnings (not errors) had been fixed (not detailed in the change log as they weren't errors or function fixes/additions).  If it still throws errors then you should look to your theme (which you didn't even specify!).
Title: Re: Automatic Newsletter for SMF2
Post by: kenso on April 23, 2013, 08:37:10 PM
Hi just tried to install your mod but we get this error, is there a fix?

Table '_forum.smf_gallery_cat' doesn't exist
File: /home/xxxxxxx/public_html/Sources/ManageSettings.php
Line: 2103

ozfarmer(dot)com(dot)au

using SMF 2.0.4 | SMF © 2013, Simple Machines
SimplePortal 2.3.5 © 2008-2012, SimplePortal
Title: Re: Automatic Newsletter for SMF2
Post by: TheListener on April 23, 2013, 08:42:33 PM
Kenso do you use the SMF Gallery mod?

Also the way you typed out the forums address was a waste of time.

Look at your signature.

 ;)
Title: Re: Automatic Newsletter for SMF2
Post by: Arantor on April 23, 2013, 08:48:44 PM
Well, the mod looks like it tries to check for the gallery and if present does some stuff - which suggests at one point the gallery was installed but is not any more. But the gallery didn't clean up after itself.

The best way to fix that is to go to the smf_settings table, look for an entry called gallery_max_filesize and remove it.
Title: Re: Automatic Newsletter for SMF2
Post by: kenso on April 23, 2013, 11:18:57 PM
I did use Gallery Mod once but I cannot find any reference to it in the DB. Maybe re install Gall Mod? And the xxx thing was just habit  ;D
Title: Re: Automatic Newsletter for SMF2
Post by: Arantor on April 23, 2013, 11:20:29 PM
-sigh-

If you go into the smf_settings table, you will find a reference to the gallery, as I have outlined, as indicated by the mod.

You can reinstall the gallery but the fact that you uninstalled it means you're not using it and that you would be better served by removing the entry mentioned.
Title: Re: Automatic Newsletter for SMF2
Post by: kenso on April 23, 2013, 11:24:36 PM
Thanks for the reply, I have been into PhpMyAdmin / smf_settings to look for the gallery file you recommended but I cannot find any instance of it.
Title: Re: Automatic Newsletter for SMF2
Post by: Arantor on April 23, 2013, 11:29:52 PM
It's not a file. It's a row in the smf_settings table. You went through every single entry (there are typically *hundreds*)?
Title: Re: Automatic Newsletter for SMF2
Post by: kenso on April 23, 2013, 11:40:46 PM
Sorry I did mean line. Well I only searched the first 300 didn't realize there was more. I found some lines after downloading it as a CSV into excell. Just remove gallery_max_filesize?

gallery_max_height
gallery_max_width
gallery_max_filesize
gallery_who_viewing
gallery_commentchoice
gallery_shop_picadd
gallery_shop_commentadd
gallery_set_showcode_bbc_image
gallery_set_showcode_directlink
gallery_set_showcode_htmllink
gallery_set_images_per_page
gallery_set_images_per_row
gallery_thumb_width
gallery_thumb_height
Title: Re: Automatic Newsletter for SMF2
Post by: kenso on April 23, 2013, 11:45:47 PM
Cool that fixed it!  ;) Thanks for your help!
Title: Re: Automatic Newsletter for SMF2
Post by: Arantor on April 23, 2013, 11:51:54 PM
All of those can go if you're not using the gallery, though only gallery_max_filesize actually *needs* to go.
Title: Re: Automatic Newsletter for SMF2
Post by: kenso on April 24, 2013, 12:36:04 AM
I Have it set now and it seems to be working fine. One last thing how would I put the subscribe button in this area (pictured) on the home page?
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on April 24, 2013, 05:49:05 AM
You'd need to add a simple portal PHP code block to the top centre position on the page - the block PHP code is included in this mod package (download the latest version).

The new version also fixes the detection of SMF Gallery discussed above.
Title: Re: Automatic Newsletter for SMF2
Post by: bidouilleur on August 16, 2013, 10:50:29 AM
hello Hoverclub

just installed the new version and found a little typo (see attached) NEWSLETTER

also I intend to use it on a french board so I did some translating but one variable is playing on me, no clue where to set it so it displays date in french (also see attached)

thanks for your insight

Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 16, 2013, 12:44:28 PM
Thanks - I noticed the typo ten minutes after uploading the new version  :-[.  It's only in the Admin config so I'll correct it at the next update.

It uses the PHP date() function - this will also be changed at the next update.
Title: Re: Automatic Newsletter for SMF2
Post by: Gryzor on August 26, 2013, 06:14:52 AM
Ok, here's an interesting problem:

Every time I send out a newsletter I get a couple of emails back saying that delivery failed for some accounts (two or three); all of them are in Russia and sound like spammers. The interesting thing is, there are NO users with those addresses in my db (I have checked both by the forum's search function and by looking in the db tables). Any ideas?
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 26, 2013, 08:58:06 AM
I assume you allow guests to subscribe?  If so, that's why you can't find forum users with those email addresses - you'll find the email addresses for all subscribers (registered users and guests) in the table hcb_newsletter.  Spammers shouldn't get anything useful from a newsletter.
Title: Re: Automatic Newsletter for SMF2
Post by: Gryzor on August 27, 2013, 12:24:00 AM
Ahhh good idea, will check it out! Thanks :)
Title: Re: Automatic Newsletter for SMF2
Post by: Cat McFarlane on September 03, 2013, 10:18:29 PM
Hiya Hoverclub  :)

Awesome mod, but doesn't seem to be sending out newsletters.
 
Using latest version of smf and mod.
Installed fine.
Using Fresh Looks theme.
All options selected fine, and able to preview, after suggested change in order to be visible.
20 have subscribed, through click box at top of forum page.

Checked all settings throughout admin section and can't see why it isn't sending out ... no errors showing in log.

Thanks, Cat
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on September 04, 2013, 03:12:59 AM
Check Admin->Maintenance->Scheduled Tasks->Task Log for Newsletter entries. 
Check Admin->Maintenance->Mail->Enable Mail Queue is set
Check Admin->Maintenance->Mail->Browse Queue and check there aren't more than a handful of messages in the queue.

Title: Re: Automatic Newsletter for SMF2
Post by: Cat McFarlane on September 05, 2013, 08:09:16 AM
Check Admin->Maintenance->Scheduled Tasks->Task Log for Newsletter entries. 
Check Admin->Maintenance->Mail->Enable Mail Queue is set
Check Admin->Maintenance->Mail->Browse Queue and check there aren't more than a handful of messages in the queue.

Thanks so much, HoverClub  :) I've checked the settings and attached pictures. There have been issues with mail not getting through. Only announcements/inbuilt news get through via email it seems, although briefly I was getting general emails through eg new member waiting approval, posts etc. Am with namecheap. Spent a lot of time in chat about mail, but only briefly was I getting general emails through, however hard they tried to fix the email issue.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on September 10, 2013, 10:45:51 AM
Sorry but if your email system isn't working properly then this mod isn't going to magically fix that.  Get email fixed and this mod will work perfectly (hint: set Mail Type to PHP default - it isn't going to work as SMTP unless you enter all of correct details below it).

Title: Re: Automatic Newsletter for SMF2
Post by: Cat McFarlane on September 10, 2013, 03:52:45 PM
Sorry but if your email system isn't working properly then this mod isn't going to magically fix that.  Get email fixed and this mod will work perfectly (hint: set Mail Type to PHP default - it isn't going to work as SMTP unless you enter all of correct details below it).

Thanks so much Hovercraft. Yes, had started to realise it must be the mail issues, as the mod otherwise installed and is working great. Spoke with namecheap for about 2 weeks about mail, and still didn't fix, despite big efforts from them, so I'll get into chat with them again, to ask more about php as default. I know it was set on that at one point, but from reading around it seems using a gmail email causes issues with forwarding, although it did suddenly work briefly on smtp settings. I got from that that it can actually work, but have no idea why it started or stopped working. What really puzzles me is that announcements I send out manually get through to email no problem. :o 
Thanks  :)
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on September 12, 2013, 01:28:59 PM
I would suggest that if your current host can't fix a (relatively) simple mail issue then maybe you should be looking to host elsewhere?
Title: Re: Automatic Newsletter for SMF2
Post by: Cat McFarlane on September 12, 2013, 01:31:56 PM
I would suggest that if your current host can't fix a (relatively) simple mail issue then maybe you should be looking to host elsewhere?

Not sure what to do about that, as I don't know anywhere better than namecheap ... first domain/hosting/forum, so a bit new to all this, lol
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on September 12, 2013, 01:38:36 PM
Try reading THIS (http://www.simplemachines.org/community/index.php?board=4.0).  IMHO you get what you pay for most of the time.  In my experience, small hosting companies generally give better service when things get "difficult".
Title: Re: Automatic Newsletter for SMF2
Post by: Cat McFarlane on September 12, 2013, 01:44:27 PM
Try reading THIS (http://www.simplemachines.org/community/index.php?board=4.0).  IMHO you get what you pay for most of the time.  In my experience, small hosting companies generally give better service when things get "difficult".

Thank you very much for the link. Will have a good read. Much appreciate.  :)
Title: Re: Automatic Newsletter for SMF2
Post by: Joomlamz on September 15, 2013, 10:12:21 PM
Thanks nice mod
when Update dont forget portugues files

Code: [Select]



<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['newsubscribe_mod_title'] = 'Newsletter ';
$txt['newsubscribe_mod_subscribe'] = 'subscrever';
$txt['newsubscribe_mod_subscribed'] = ' As pessoas est&atilde;o subscritas';
$txt['newsubscribe_mod_unsubscribe'] = 'Desinscrever';
$txt['newsubscribe_mod_preview'] = 'Visualiza&ccedil;&atilde;o newsletter';
$txt['newsubscribe_mod_email'] = 'Endere&ccedil;o de email: ';
$txt['newsubscribe_mod_week'] = '  Semanal';
$txt['newsubscribe_mod_fort'] = '  Quinzenal';
$txt['newsubscribe_mod_month'] = '  Mensal';
$txt['newsubscribe_mod_noemail'] = 'Sinto muito, mas esse endere&ccedil;o de e-mail n&atilde;o foi encontrado na lista de inscri&ccedil;&atilde;o. Por favor, tente novamente. ';
$txt['newsubscribe_mod_bademail'] = 'Sinto muito, mas isso n&atilde;o parece ser um endere&ccedil;o de e-mail v&aacute;lido. Por favor, tente novamente. ';
$txt['newsubscribe_mod_donesub'] = 'Voc&ecirc; se inscreveu com sucesso para o ';
$txt['newsubscribe_mod_doneunsub'] = 'Voc&ecirc; deixar&aacute; de receber o ';
$txt['newsubscribe_mod_done'] = 'de volta';
$txt['newsubscribe_mod_next'] = '  - due on ';


$txt['newsltr_subscribe'] = 'Subscreva a newsletter: <br /><span class="smalltext">Voc&ecirc; pode alterar suas op&ccedil;&otilde;es de inscri&ccedil;&atilde;o em qualquer momento na p&aacute;gina principal do f&oacute;rum.</span>';


$txt['newsltr_news'] = 'Incluir o item mais recente fader notícias:<br /><span class= "smalltext">A exibi&ccedil;&atilde;o fader notícia n&atilde;o tem que estar habilitado para incluir notícias.</span>';
$txt['newsltr_events'] = 'Incluir eventos do calend&aacute;rio:<br /><span class= "smalltext">Calendar deve estar habilitado - o n&uacute;mero de eventos incluídos é definido pelo <i>Max dias de anteced&ecirc;ncia no índice do f&oacute;rum </i> nas configura&ccedil;&otilde;es do Calend&aacute;rio de Admin.</span>';
$txt['newsltr_topic_count'] = 'N&uacute;mero de t&oacute;pico títulos/links para incluir (max. 50):<br /><span class= "smalltext">Sdefinido para 0 ou deixe em branco se voc&ecirc; n&atilde;o quiser temas a serem incluídos no boletim.</span>';
$txt['newsltr_video_count'] = 'N&uacute;mero de vídeos para incluir (max: 20):<br /><span class= "smalltext">&Uacute;ltimos links de vídeo do YouTube - definido como 0 ou deixe em branco se voc&ecirc; n&atilde;o quiser incluir vídeos.</span>';
$txt['newsltr_picture_count'] = 'Nuacute;mero de galeria de fotos para incluir (max: 20):<br /><span class= "smalltext">&Uacute;ltimas imagens da Galeria SMF - definido como 0 ou deixe em branco se voc&ecirc; n&atilde;o quer fotos para ser incluído.</span>';
$txt['newsltr_exclude_cats'] = 'N&atilde;o incluem fotos dessas categorias Galeria:<br /><span class= "smalltext">Use Ctrl ou Shift para selecionar v&aacute;rias categorias.</span>';
$txt['newsltr_position'] = 'Coloque assinar/cancelar bot&otilde;es abaixo da lista do quadro:<br /><span class= "smalltext">Se claro, ent&atilde;o, os bot&otilde;es subscribe/unsubscribe aparecer&aacute; acima da lista do quadro.</span>';
$txt['newsltr_register_subscribe'] = 'Mostrar Newsletter subscrever op&ccedil;&atilde;o durante a inscri&ccedil;&atilde;o <br /><span class="smalltext">Se definidoos utilizadores ser&atilde;o capazes de subscrever a newsletter durante o registo no f&oacute;rum.</span>';


$txt['newsltr_stats'] = 'Include forum statistics:<br /><span class= "smalltext">Inclui o total de poste, t&oacute;pico e membro conta.</span>';
$txt['newsltr_allow_guest'] = 'Permitir que os convidados para subscrever';
$txt['newsltr_use_perms'] = 'Usar permiss&otilde;es para clientes:<br /><span class= "smalltext">Se definido, o boletim ir&aacute; incluir apenas títulos de t&oacute;picos e vídeos que o h&oacute;spede tem permiss&atilde;o para ler - se deixou claro, ent&atilde;o, ele pode incluir links para t&oacute;picos que um convidado pode n&atilde;o ser capaz de ver totalmente.</span>';
$txt['newsltr_exclude_boards'] = 'N&atilde;o incluir t&oacute;picos de estes Quadros:<br /><span class= "smalltext">Use Ctrl ou Shift para selecionar v&aacute;rios quadros.</span>';
$txt['newsltr_exclude_vboards'] = 'N&atilde;o incluir vídeos deste quadro:<br /><span class= "smalltext">Use Ctrl ou Shift para selecionar v&aacute;rias quadros.</span>';
$txt['newsltr_includeall'] = 'Inclua todas as';
$txt['newsubscribe_mod_delmail'] = 'Eliminar um destinat&aacute;rio da lista de discuss&atilde;o.';


// email text
$txt['newsltr_email_header'] = 'Newsletter do %s';
$txt['newsltr_email_unsub'] = '<div class="smalltext">Para sair deste newsletter, por favor <a href="'. $scripturl . '?action=NewsSubscribe;unsubscribe;email=%s">clique aqui</a><>';
$txt['newsltr_email_news'] = '&Uacute;ltimas Notícias:';
$txt['newsltr_email_posts'] = '&Uacute;ltimos Postes:';
$txt['newsltr_email_events'] = 'Pr&oacute;ximos Eventos:';
$txt['newsltr_email_pictures'] = 'Ultimas imagens:';
$txt['newsltr_email_videos'] = '&Uacute;ltimos Vídeos:';
$txt['newsltr_email_style'] = '#content{padding-left: 20px; margin: 0 auto; font: 78%/130% "Verdana","Arial","Helvetica",sans-serif; color: #444444; empty-cells: show;} #header {text-align:center;} table { width:100%;border-bottom: 1px solid #FFFFFF;border-right: 1px solid #fff; padding: 3px; } thead { background: #a7b9cd; color: #ffffff; } .subject { background-color: #F0F4F7;color: #000000;} .smalltext { font-size: 0.9em;} .icon { text-align: center; background-color: #E7EAEF; } .date { background-color: #F0F4F7; color:green;} td { padding: 3px;border-bottom: 1px solid #fff; border-right: 1px solid #fff;} h2 { margin: 4px; text-align:center;} .picture {text-align:center;padding:5px;background-color:#dedAdF;} .video {text-align:center;width:135px;padding:5px;background-color:#dedAdF;} .vimage {box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.8); -moz-box-shadow: 2 2px 7px rgba(0,0,0,0.8); -webkit-box-shadow: 2 2px 7px rgba(0,0,0,0.8);}  .pimage {box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.8); -moz-box-shadow: 2 2px 7px rgba(0,0,0,0.8); -webkit-box-shadow: 2 2px 7px rgba(0,0,0,0.8);}';


]]></add>
</operation>
</file>

<file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['newsubscribe_mod_title'] = 'Newsletter ';
$txt['newsubscribe_mod_subscribe'] = 'subscrever';
$txt['newsubscribe_mod_subscribed'] = ' As pessoas est&atilde;o subscritas';
$txt['newsubscribe_mod_unsubscribe'] = 'Desinscrever';
$txt['newsubscribe_mod_preview'] = 'Visualiza&ccedil;&atilde;o newsletter';
$txt['newsubscribe_mod_email'] = 'Endere&ccedil;o de email: ';
$txt['newsubscribe_mod_week'] = '  Semanal';
$txt['newsubscribe_mod_fort'] = '  Quinzenal';
$txt['newsubscribe_mod_month'] = '  Mensal';
$txt['newsubscribe_mod_noemail'] = 'Sinto muito, mas esse endere&ccedil;o de e-mail n&atilde;o foi encontrado na lista de inscri&ccedil;&atilde;o. Por favor, tente novamente. ';
$txt['newsubscribe_mod_bademail'] = 'Sinto muito, mas isso n&atilde;o parece ser um endere&ccedil;o de e-mail v&aacute;lido. Por favor, tente novamente. ';
$txt['newsubscribe_mod_donesub'] = 'Voc&ecirc; se inscreveu com sucesso para o ';
$txt['newsubscribe_mod_doneunsub'] = 'Voc&ecirc; deixar&aacute; de receber o ';
$txt['newsubscribe_mod_done'] = 'de volta';
$txt['newsubscribe_mod_next'] = '  - due on ';


$txt['newsltr_subscribe'] = 'Subscreva a newsletter: <br /><span class="smalltext">Voc&ecirc; pode alterar suas op&ccedil;&otilde;es de inscri&ccedil;&atilde;o em qualquer momento na p&aacute;gina principal do f&oacute;rum.</span>';


$txt['newsltr_news'] = 'Incluir o item mais recente fader notícias:<br /><span class= "smalltext">A exibi&ccedil;&atilde;o fader notícia n&atilde;o tem que estar habilitado para incluir notícias.</span>';
$txt['newsltr_events'] = 'Incluir eventos do calend&aacute;rio:<br /><span class= "smalltext">Calendar deve estar habilitado - o n&uacute;mero de eventos incluídos é definido pelo <i>Max dias de anteced&ecirc;ncia no índice do f&oacute;rum </i> nas configura&ccedil;&otilde;es do Calend&aacute;rio de Admin.</span>';
$txt['newsltr_topic_count'] = 'N&uacute;mero de t&oacute;pico títulos/links para incluir (max. 50):<br /><span class= "smalltext">Sdefinido para 0 ou deixe em branco se voc&ecirc; n&atilde;o quiser temas a serem incluídos no boletim.</span>';
$txt['newsltr_video_count'] = 'N&uacute;mero de vídeos para incluir (max: 20):<br /><span class= "smalltext">&Uacute;ltimos links de vídeo do YouTube - definido como 0 ou deixe em branco se voc&ecirc; n&atilde;o quiser incluir vídeos.</span>';
$txt['newsltr_picture_count'] = 'Nuacute;mero de galeria de fotos para incluir (max: 20):<br /><span class= "smalltext">&Uacute;ltimas imagens da Galeria SMF - definido como 0 ou deixe em branco se voc&ecirc; n&atilde;o quer fotos para ser incluído.</span>';
$txt['newsltr_exclude_cats'] = 'N&atilde;o incluem fotos dessas categorias Galeria:<br /><span class= "smalltext">Use Ctrl ou Shift para selecionar v&aacute;rias categorias.</span>';
$txt['newsltr_position'] = 'Coloque assinar/cancelar bot&otilde;es abaixo da lista do quadro:<br /><span class= "smalltext">Se claro, ent&atilde;o, os bot&otilde;es subscribe/unsubscribe aparecer&aacute; acima da lista do quadro.</span>';
$txt['newsltr_register_subscribe'] = 'Mostrar Newsletter subscrever op&ccedil;&atilde;o durante a inscri&ccedil;&atilde;o <br /><span class="smalltext">Se definidoos utilizadores ser&atilde;o capazes de subscrever a newsletter durante o registo no f&oacute;rum.</span>';


$txt['newsltr_stats'] = 'Include forum statistics:<br /><span class= "smalltext">Inclui o total de poste, t&oacute;pico e membro conta.</span>';
$txt['newsltr_allow_guest'] = 'Permitir que os convidados para subscrever';
$txt['newsltr_use_perms'] = 'Usar permiss&otilde;es para clientes:<br /><span class= "smalltext">Se definido, o boletim ir&aacute; incluir apenas títulos de t&oacute;picos e vídeos que o h&oacute;spede tem permiss&atilde;o para ler - se deixou claro, ent&atilde;o, ele pode incluir links para t&oacute;picos que um convidado pode n&atilde;o ser capaz de ver totalmente.</span>';
$txt['newsltr_exclude_boards'] = 'N&atilde;o incluir t&oacute;picos de estes Quadros:<br /><span class= "smalltext">Use Ctrl ou Shift para selecionar v&aacute;rios quadros.</span>';
$txt['newsltr_exclude_vboards'] = 'N&atilde;o incluir vídeos deste quadro:<br /><span class= "smalltext">Use Ctrl ou Shift para selecionar v&aacute;rias quadros.</span>';
$txt['newsltr_includeall'] = 'Inclua todas as';
$txt['newsubscribe_mod_delmail'] = 'Eliminar um destinat&aacute;rio da lista de discuss&atilde;o.';


// email text
$txt['newsltr_email_header'] = 'Newsletter do %s';
$txt['newsltr_email_unsub'] = '<div class="smalltext">Para sair deste newsletter, por favor <a href="'. $scripturl . '?action=NewsSubscribe;unsubscribe;email=%s">clique aqui</a><>';
$txt['newsltr_email_news'] = '&Uacute;ltimas Notícias:';
$txt['newsltr_email_posts'] = '&Uacute;ltimos Postes:';
$txt['newsltr_email_events'] = 'Pr&oacute;ximos Eventos:';
$txt['newsltr_email_pictures'] = 'Ultimas imagens:';
$txt['newsltr_email_videos'] = '&Uacute;ltimos Vídeos:';
$txt['newsltr_email_style'] = '#content{padding-left: 20px; margin: 0 auto; font: 78%/130% "Verdana","Arial","Helvetica",sans-serif; color: #444444; empty-cells: show;} #header {text-align:center;} table { width:100%;border-bottom: 1px solid #FFFFFF;border-right: 1px solid #fff; padding: 3px; } thead { background: #a7b9cd; color: #ffffff; } .subject { background-color: #F0F4F7;color: #000000;} .smalltext { font-size: 0.9em;} .icon { text-align: center; background-color: #E7EAEF; } .date { background-color: #F0F4F7; color:green;} td { padding: 3px;border-bottom: 1px solid #fff; border-right: 1px solid #fff;} h2 { margin: 4px; text-align:center;} .picture {text-align:center;padding:5px;background-color:#dedAdF;} .video {text-align:center;width:135px;padding:5px;background-color:#dedAdF;} .vimage {box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.8); -moz-box-shadow: 2 2px 7px rgba(0,0,0,0.8); -webkit-box-shadow: 2 2px 7px rgba(0,0,0,0.8);}  .pimage {box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.8); -moz-box-shadow: 2 2px 7px rgba(0,0,0,0.8); -webkit-box-shadow: 2 2px 7px rgba(0,0,0,0.8);}';


]]></add>
</operation>
</file>
Title: Re: Automatic Newsletter for SMF2
Post by: kerbob on October 02, 2013, 12:58:52 AM
FANTASTIC MOD!!  Something I needed and didn't know it till I found it!

I installed it and it seems to be working well.  However, I'm getting tons of errors in the log:

Code: [Select]
Type of error: Undefined 
http://www.westknoxrc.com/index.php?
8: Undefined index: newsltr_allow_guest
File: /home4/bobrekus/public_html/Themes/default/BoardIndex.template.php
Line: 106 

This is line 106 of BoardIndex.template.php
Code: [Select]
(!$context['user']['is_guest'] OR ($context['user']['is_guest'] AND $modSettings['newsltr_allow_guest']))

Your help is much appreciated!
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 02, 2013, 09:03:21 AM
Check the "allow guest to subscribe" option is available in the Mod settings.  Other than that I've no idea (maybe uninstall and re-install?) as it's a mod setting in the database so must be present!?!

Title: Re: Automatic Newsletter for SMF2
Post by: Sweetwater on October 18, 2013, 09:02:30 AM
Hi Hoverclub,

This is a great mod, thank you for your efforts.  :)

It installed fine and I can see where members and guests can subscribe. If I put the SUBSCRIBE at the bottom of the forum it is fine, but if I uncheck the box and put it at the top of the forum it loads 3 times. 

The other glitch I've found is when I ask it generate a preview of the newsletter I goes to a dead link. Can you advise anything I should look to rectify or change to fix this? I'm thinking the newsletter will probably still work as described, but just can't preview it?

Thank you for any advice you can offer.

Kind Regards,

Sweetwater
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 18, 2013, 10:15:33 AM
3 times means you've probably ignored the uninstall warning twice (or maybe not selected the correct theme(s))?  Edit the BoardIndex.template.php file in all your themes and remove two of this:
Code: [Select]
if (!empty($modSettings['newsltr_position']))
echo $news_ltr .

If the preview doesn't  work then disable compression in Admin->Configuration->Server Settings.
Title: Re: Automatic Newsletter for SMF2
Post by: Sweetwater on October 18, 2013, 10:39:39 AM
3 times means you've probably ignored the uninstall warning twice (or maybe not selected the correct theme(s))?  Edit the BoardIndex.tempalte.php file in all your themes and remove two of this:
Code: [Select]
if (!empty($modSettings['newsltr_position']))
echo $news_ltr .


That fixed that problem, thank you.  8)

Quote
If the preview doesn't  work then disable compression in Admin->Configuration->Server Settings.

Doing that half broke my forum... I ended up with a whole stack of code at the top of the page above the forum header. I was able to turn the compression back on, which restored it......

Kind Regards,

Sweetwater
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 18, 2013, 11:23:29 AM
Turning off compression shouldn't have any noticeable affect - I'd look a bit closer as there may be other issues (nothing to do with this mod).  If the preview isn't showing then the newsletter won't show either.
Title: Re: Automatic Newsletter for SMF2
Post by: Sweetwater on October 31, 2013, 08:05:03 AM
Thanks Hoverclub.  ;) Yes, it looked like I had a couple of code issues, thanks to smfhacks it's been resolved & appears to be setup correctly now.

I think this is an absolutely fanstastic mod.  8)

A couple of questions?
- Is there a way admin can see the list of subscribed email addresses and/or members subscribed?
- In the preview it looks to grab youtube videos just fine, I'm wondering if the newsletter can also grab vimeo videos that have been inserted into topics?
- And finally, do you think there could be a way to have stand alone subscribe page that you can link to from say farcebook, or another website?

Many thanks.

Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 31, 2013, 08:21:55 AM
1. Not currently.

2. Could be done but not in the near future (YT has 50 times the traffic of Vimeo so not a high priority I'm afraid  :().

3. You could easily make one by using SSI.php and the subscribe portal block code supplied with this mod (see package) - or just link to the page that has the subscribe option on it already.
Title: Re: Automatic Newsletter for SMF2
Post by: Sweetwater on October 31, 2013, 08:36:43 AM
1. Not currently.

2. Could be done but not in the near future (YT has 50 times the traffic of Vimeo so not a high priority I'm afraid  :().

3. You could easily make one by using SSI.php and the subscribe portal block code supplied with this mod (see package) - or just link to the page that has the subscribe option on it already.


Thank You HoverClub.

1- would be useful in future versions.
2- Understand & agree. I have (for some reason) an increasing amount of members using vimeo.... (rolls eyes). Don't know why...???
3 - That's a bit over my head so will leave it as it is.

Thanks for a fantastic mod & for your support. 

Kind Regards,

Sweetwater
Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on January 26, 2014, 05:08:25 PM
I have 3 questions if ou dont mind:

I really suck at CSS, HTML and stuff like that but I guess I did a good job

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F9rOLbNL.png&hash=e96713b982e958d87fb4646929bbe586)

My questions are:

1º - Is it possible to center the news and the statistics?
2º - Where can I change the links color, that blue makes my eyes burn :P
3º - Is it possible to move the statistics to the bottom after the movies?

Thank you very much
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on January 26, 2014, 05:45:07 PM
You need to know how to use CSS - the mod just uses the basic SMF theme stylesheet.  Keep practising  ;)

And you can't change the order of the sections without editing the mod PHP files.
Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on January 26, 2014, 05:53:23 PM
ah, so I need to change in the SMF Curve theme in order to change in the Newsletter?

already found it ;D

also, another think I just notice, the logo only appear when Im using the SMF Default Theme, my Theme doenst have the logo option under theme definitions, is there a way to use the theme in the Curve 2.0 theme?

thank you very much for ur help

Title: Re: Automatic Newsletter for SMF2
Post by: TheListener on January 26, 2014, 05:55:36 PM
ah, so I need to change in the SMF Curve theme in order to change in the Newsletter?

also, another think I just notice, the logo only appear when Im using the SMF Default Theme, my Theme doenst have the logo option under theme definitions, is there a way to use the theme in the Curve 2.0 theme?

thank you very much for ur help

Sulfur pthis topic is for not for questions not related to the mod.
Title: Re: Automatic Newsletter for SMF2
Post by: Sulfur on January 26, 2014, 06:07:33 PM
Sorry I just wanted to know why the logo appear when I'm using the default theme but not when I'm using my theme (CoalBlack)
Title: Re: Automatic Newsletter for SMF2
Post by: TheListener on January 26, 2014, 06:08:29 PM
Sorry I just wanted to know why the logo appear when I'm using the default theme but not when I'm using my theme (CoalBlack)

Use the themes support topic.
Title: Re: Automatic Newsletter for SMF2
Post by: suresh1983 on May 11, 2014, 07:35:31 AM
Hi,

I installed this mod and also enabled "mailing" with php as default.

I tried to run the newsletter from maintainance>scheduletasks and ask that the news letter is not being sent to the users.

Am I missing out something??? should I enable "Cron" or anything else to make sure that the newsletter is delivered to the users.

Please help me.....

Thanking you for your kind help

Regards,
Suresh
Title: Users are not receiving newsletter & no link to subscribe/unsubscribe for newsle
Post by: suresh1983 on May 11, 2014, 07:38:54 AM
Hi,

I installed this mod and also enabled "mailing" with php as default.

I tried to run the newsletter from maintainance>scheduletasks and ask that the news letter is not being sent to the users.

Am I missing out something??? should I enable "Cron" or anything else to make sure that the newsletter is delivered to the users.

Also, I am unable to find the link to subscribe for newsletter in the forum/profile of users, it is only showing during registration

Please help me.....

Thanking you for your kind help

Regards,
Suresh
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on May 11, 2014, 08:28:21 AM
How many people do you have registered to receive the newsletter (shows at bottom of mod admin page).  The scheduled task only checks the list of users who have subscribed to the newsletter and ONLY sends when it's time to do so - i.e. 7 days, 2 weeks, etc. after each person subscribed.

The subscribe links will show on registration (if set) and on the forum board list page (top or bottom as set in the mod settings).

Check that the normal forum email system is working by subscribing to a topic and making new posts (and set your profile to allow email notifications of new posts).  If the SMF email system isn't working then this mod won't work.

Title: Re: Automatic Newsletter for SMF2
Post by: suresh1983 on August 26, 2014, 02:46:42 AM
Hi,

I have around 500 users who have agreed to receive the latest news of my website through one of the social networking website. All users have shared their email ids.

Please let me know how to manually enter the email ids so that they will receive the newsletters.

If I have to enter the email id's into database, please let me know the same provided that registration of the users should not be required.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on August 27, 2014, 12:39:55 PM
Enter their email address into the newsletter subscription box on your website - you can manually register anyone if you aren't logged in.
Title: Re: Automatic Newsletter for SMF2
Post by: mlsred on November 15, 2014, 04:20:31 AM
Hi

Thanks for the mod.. :D

I have an issue with the unsubscribe link in the email that is sent, in that it doesn't work and appears incomplete?

The link in the email is as follows-> ?action=NewsSubscribe;unsubscribe;email=email@address.com

It seems to be missing the url to my forum?

Any ideas?

Thanks
M
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on November 15, 2014, 06:35:57 AM
Looks like the $boardurl  (forum URL in "Database and Paths" settings page isn't setup correctly OR there is a server configuration issue somewhere (server URL doesn't match the latter).  I'm surprised anything works properly as the email uses $scripturl which is used by almost every link in every page!
Title: Re: Automatic Newsletter for SMF2
Post by: mlsred on November 15, 2014, 07:23:42 AM
Hi

Thanks for the reply, my forum URL is set to: http://www.psoriasis-help.org.uk/forum in the forum url setting and everything else works fine?

Thanks
M



Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on November 27, 2014, 10:35:39 AM
Any update for 2.0 smf

And any chance of mailchimp integration for sending newsletter api.
Title: Re: Automatic Newsletter for SMF2
Post by: luuuciano on January 21, 2015, 07:09:21 PM
I do not know why,,,,, but I am selecting a few forums in "Don't include videos from these boards:" and changes are not saved at all...
Any idea?


Any update for 2.0 smf

You can emulate 2.0.5 and install it
Title: Re: Automatic Newsletter for SMF2
Post by: Sudhakar Arjunan on January 22, 2015, 02:18:05 AM
Thank a lot luuuciano,

Will try emulating now.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on January 22, 2015, 08:48:44 AM
I do not know why,,,,, but I am selecting a few forums in "Don't include videos from these boards:" and changes are not saved at all...
Any idea?
It's caused by a bug in the 2.0.8->2.0.9 patch - see HERE  (http://www.simplemachines.org/community/index.php?topic=528577.0)for description and fix.
Title: Re: Automatic Newsletter for SMF2
Post by: luuuciano on January 22, 2015, 11:34:59 AM
I do not know why,,,,, but I am selecting a few forums in "Don't include videos from these boards:" and changes are not saved at all...
Any idea?
It's caused by a bug in the 2.0.8->2.0.9 patch - see HERE  (http://www.simplemachines.org/community/index.php?topic=528577.0)for description and fix.

Oh, Thanks!
I have erased that 1st line in the ManageServer file, then upload it... but I do not know if it is working properly... the select boards (to be ignored) should remain selected after saving it?

Oooops, my bad... erased "$context['config_vars'][$config_var[1]]['name'] .= '[]';" too by mistake :)

It is alive! thanks a lot HoverClub


Ohhhh, BTW... I am using simplesef, and the "[Delete a recipient from the mailing list.]" do not work properly... it is redirecting to main admin page...
Should I add some action to the advanced simplesef section?

BTW2, the mod queries the DB for each news sent? can this cause a possible server hammering?

SOLVED BTW3, in our forum it shows the monthly option as default... can be this changed to weekly for example? I am not so sure where to change here (btw, we added a daily option):

Code: [Select]
<input type="submit" class="button_submit" name="subscribe" value="' . $txt['newsubscribe_mod_subscribe'] .'"/>' .
$txt['newsubscribe_mod_daily'] . '<Input type="radio" name ="period" value="1"' . (($context['user']['newsltr']['period'] == 1) ? ' checked="checked"' :'')  . '>' .
$txt['newsubscribe_mod_week'] . '<Input type="radio" name ="period" value="7"' . (($context['user']['newsltr']['period'] == 7) ? ' checked="checked"' :'')  . '>' .
$txt['newsubscribe_mod_fort'] . '<input type="radio" name ="period" value="14"' . (($context['user']['newsltr']['period'] == 14) ? ' checked="checked"' :'')  . '>' .
$txt['newsubscribe_mod_month'] . '<input type="radio" name ="period" value="30"' . ((empty($context['user']['newsltr']['period']) OR $context['user']['newsltr']['period'] == 30) ? ' checked="checked"' : '')  . '>';
It is made by the "something OR anotherthing" of the last line?
YES :)

Here we changed it to daily as default
Code: [Select]
<input type="submit" class="button_submit" name="subscribe" value="' . $txt['newsubscribe_mod_subscribe'] .'"/>' .
$txt['newsubscribe_mod_daily'] . '<Input type="radio" name ="period" value="1"' . ((empty($context['user']['newsltr']['period']) OR $context['user']['newsltr']['period'] == 1) ? ' checked="checked"' :'')  . '>' .
$txt['newsubscribe_mod_week'] . '<Input type="radio" name ="period" value="7"' . (($context['user']['newsltr']['period'] == 7) ? ' checked="checked"' :'')  . '>' .
$txt['newsubscribe_mod_fort'] . '<input type="radio" name ="period" value="14"' . (($context['user']['newsltr']['period'] == 14) ? ' checked="checked"' :'')  . '>' .
$txt['newsubscribe_mod_month'] . '<input type="radio" name ="period" value="30"' . (($context['user']['newsltr']['period'] == 30) ? ' checked="checked"' : '')  . '>';
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on January 22, 2015, 04:54:30 PM
Ohhhh, BTW... I am using simplesef, and the "[Delete a recipient from the mailing list.]" do not work properly... it is redirecting to main admin page...
Should I add some action to the advanced simplesef section?
no idea- check support for that mod.
Quote
BTW2, the mod queries the DB for each news sent? can this cause a possible server hammering?
They are sent from a scheduled task running in the middle of the night - each day only sends out to around 15% of ALL subscribers - which is why there isn't a daily subscription option!
Title: Re: Automatic Newsletter for SMF2
Post by: luuuciano on January 23, 2015, 02:55:52 PM
But it does 1 query/proccess to send them all? or 1 query/proccess for each subscriber?
It uses the smf queue?
Title: Re: Automatic Newsletter for SMF2
Post by: MESWEB on January 24, 2015, 02:07:04 PM
Error:
Quote
action=admin&amp;area=modsettings;sa=newsltr
2: in_array() expects parameter 2 to be array, boolean given
File: /Themes/default/Admin.template.php
Line: 903
Code: [Select]
<option value="', $option[0], '"', (($option[0] == $config_var['value'] || (!empty($config_var['multiple']) && in_array($option[0], $config_var['value']))) ? ' selected="selected"' : ''), '>', $option[1], '</option>';
Title: Re: Automatic Newsletter for SMF2
Post by: fotografo74 on February 04, 2015, 05:27:45 AM
Thankd for this Mod!
I have a problem with portal block ( SimplePortal): when i add the new php block i have 403 error page...
Thanks
Antonio
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on February 04, 2015, 05:57:43 AM
403 is probably a file access permission error on your server.
Title: Re: Automatic Newsletter for SMF2
Post by: fotografo74 on February 04, 2015, 06:09:47 AM
403 is probably a file access permission error on your server.
Thanks :)
Title: Re: Automatic Newsletter for SMF2
Post by: naijacrux on February 22, 2015, 12:06:41 PM
this is just what i have been looking for, thanks . i already have 7000members, please how can i automatically subscribe them to the newsletter instead of them doing it manually. some dont want to subcribe. i am the admin of my website
Title: Re: Automatic Newsletter for SMF2
Post by: fotografo74 on March 12, 2015, 04:01:26 PM
Thankd for this Mod!
I have a problem with portal block ( SimplePortal): when i add the new php block i have 403 error page...
Thanks
Antonio
Now i use EZ Portal and i have not 403 error, but i have the same problem, in PHP block nothing shows, i have PHP error code...
Title: Re: Automatic Newsletter for SMF2
Post by: luuuciano on March 12, 2015, 04:49:40 PM
Have you seen the cpanel errorlog? and/or the phperrorlog file accesible via ftp?
Title: Re: Automatic Newsletter for SMF2
Post by: fotografo74 on March 16, 2015, 04:24:04 AM
Have you seen the cpanel errorlog? and/or the phperrorlog file accesible via ftp?
I have not erros in Apache log error, related to this mod...
i have this error in Php block "ezBlock unable to run PHP syntax error!"
Title: Re: Automatic Newsletter for SMF2
Post by: arielvered on March 28, 2015, 01:47:01 PM
Thanks for this mod.
I have put in on my forum and tested it and it is working as desired.

Is there any way I could automatically subscribe all of my existing members?

Site: http://amyloidosis.org.uk/forum/

Thanks,
Ariel
Title: Re: Automatic Newsletter for SMF2
Post by: iain sherriff on April 24, 2015, 08:51:45 AM
This is the script I am using for the subscription list.

Still need to add a link to it from the admin page, but at the moment it does the job I am after.

Code: [Select]
<?php
$con 
mysql_connect("db server name","db username","db password");

mysql_select_db("db name"$con);

$result mysql_query("SELECT * FROM smf_hcb_newsletter");

echo 
"<table border='1'>
<tr>
<th>Email</th>
</tr>"
;

while(
$row mysql_fetch_array($result))
  {
  echo 
"<tr>";
  echo 
"<td>" $row['email'] . "</td>";
  echo
"</tr>";
  }
echo 
"</table>";

mysql_close($con);

?>


Just save it and add it to your forum root directory and away you go!


Could extend it to add in the members name also by adding in the extra field if you wanted to. Simply add in the extra table data lines. If you want a hand with that too, let me know.

Cheers

Chris

So if I want to get
real name
and
member group

as well as email , what do I need to add ?

Thanks
Title: Re: Automatic Newsletter for SMF2
Post by: MESWEB on June 11, 2015, 04:29:35 PM
I moved SMF to new hosting and have problem with subscription sending time. Before worked fine and sending news only one per week when I moved and start forum the newsletter has sending news everyday. How to fix this bug?
Title: Re: Automatic Newsletter for SMF2
Post by: MESWEB on December 13, 2015, 08:23:34 AM
Don't use this mod. This mod mess Your db and try send message to deleted members. If You have this mod then new member have account with subscription. When any member delete account then his email has been delete from smf table but not from Newsletter table. This mean when somebody delete account then still receive messages from Your board.
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on December 13, 2015, 11:45:36 AM
It doesn't "mess" any SMF db.  It sends a newsletter to anyone subscribed as a guest - it works with guests as well as members?  They can unsubscribe by entering their email address any time they want.  If you've deleted someones account and  don't want that to happen then delete their email address in the newsletter mod config page.
Title: Re: Automatic Newsletter for SMF2
Post by: Kindred on December 13, 2015, 01:31:34 PM
well - technically, you probably should add something into the delete user routine which also removes them from the newsletter.

While I understand the even guests can subscribe to the newsletter with this, one can assume that - when a user's account it deleted, that the user also wishes to be removed from the newsletter.  So, the mod should clean up after a deletion.
Title: Re: Automatic Newsletter for SMF2
Post by: MESWEB on December 13, 2015, 03:32:47 PM
@Kindread that's what I want to say.
Title: Re: Automatic Newsletter for SMF2
Post by: Kindred on December 13, 2015, 03:44:02 PM
yes... but the way you said it was accusatory and rude (and coming from me, that should tell you that it was probably inappropriate :D)

This mod does not "mess the database". It does exactly what it says that it will and does a good job of it. The only thing is a possible issue with the function of deleting a user...  which should probably be addressed, but as long as it's documented, at least people know what they are getting into.
Title: Re: Automatic Newsletter for SMF2
Post by: Bixby on December 16, 2015, 03:27:01 PM
Hello:

Thanks for the mod and continued improvements. I am not sure if my situation applies to many others but I would like to request that the Upcoming Events on the newsletter only show events that the user can see. We have lots of events on our board and although most of them occur in Public Venues, there are some that occur in private venues. It would be safe if the calendar entries were only harvested from a guest permission security. The users on our forums cannot see private events on the calendar if they do not have permission to the board the the event is posted in. It would be great if the newsletter could follow that model.

Thanks in advance for your consideration.
Matt
Title: Re: Automatic Newsletter for SMF2
Post by: Kindred on December 16, 2015, 03:47:56 PM
Do you realize how complicated that would be to code?


It's one thing to check a user's permissions when the user is logged in...   
getting and matching a user's permissions during a newsletter send would be a major issue.
(and, on a large board, could potentially cause your site to overload)
Title: Re: Automatic Newsletter for SMF2
Post by: Bixby on December 16, 2015, 04:10:31 PM
Do you realize how complicated that would be to code?


It's one thing to check a user's permissions when the user is logged in...   
getting and matching a user's permissions during a newsletter send would be a major issue.
(and, on a large board, could potentially cause your site to overload)

I think an easy work around is to select which boards are included (Much like the new posts setting). Just a thought from a non-technical guy...
Title: Re: Automatic Newsletter for SMF2
Post by: libengine on April 10, 2016, 03:15:00 PM
Hi all,

I've got the problem that this mod sends its mails with "Content-Transfer-Encoding: 7bit" in the header.
It should be UTF8, according to the boards and user's language.
Did I mess something up?

Ciao,
Holger
Title: Re: Automatic Newsletter for SMF2
Post by: libengine on April 17, 2016, 03:57:05 PM
I've got the problem that this mod sends its mails with "Content-Transfer-Encoding: 7bit" in the header.
It should be UTF8, according to the boards and user's language.

Sorry for that post. I'm not a RFC-expert.  ;)
"Convert HTML-entities to UTF-8 characters" in Forum Maintenance/Database solved that problem.

Ciao,
Holger
Title: Re: Automatic Newsletter for SMF2
Post by: arielvered on June 06, 2016, 07:49:45 AM
I moved SMF to new hosting and have problem with subscription sending time. Before worked fine and sending news only one per week when I moved and start forum the newsletter has sending news everyday. How to fix this bug?
I am having this problem as well, only I didn't move to new hosting. I didn't see it addressed.
Right now I am having the fun of turning the mod off an on manually everytime we want to send a newsletter.


Title: Re: Automatic Newsletter for SMF2
Post by: naijacrux on August 11, 2016, 08:34:38 AM
hello, i have been searching for help on this mode, i have the one for wordpress that can import emails directly to server rather than adding one by one, i have email list of over 200000 plus old members from my other site and want to import the emails to this newsletter at once, i have been adding one after the other but it too large . please i need help on how to import or add the email list of about 200000members at once to my site http://www.naijacrux.com
Title: Re: Automatic Newsletter for SMF2
Post by: Kindred on August 11, 2016, 07:14:55 PM
This newsletter mod uses the SMF memberlist, AFAIK....   importing your emails would have to be done as creating a new forum member for each and every email address.
Title: Re: Automatic Newsletter for SMF2
Post by: bob123 on August 24, 2016, 05:06:07 PM
This mod needs mods. I contacted the original mod author and he is not. What does that mean?, he did not author the mod, he paid to have it coded. I asked him for the coders name and he did not even remember. He was totally disinterested in doing any modifications or updates.

Why has no one made any better newsletter mods over the years as after all simple machines is pretty popular, I just don't get it.

I can say this if there is anyone out there who knows a decent coder who knows simple machines and would like to pay to have a decent newsletter mod built, or this newsletter modded/updated, we should talk as I would be in for paying for a better newsletter mod or having this newsletter updated.

I need a manual send newsletter option and I need a members list added that would list forum members and newsletter members side by side with a checkbox for deleting members. I would just delete all newsletter members who were not also forum members. Also I don't see why this newsletter did not just use the forum members table and pull email addresses from that, it did not need to ad another mysql table for newsletter member email addresses. I guess the guy who paid to have it coded wanted that feature.

On my forum I have it set to allow new members if they confirm their email address, it seems all new forum members are automatically signed up for newsletter membership. I require new members to make an introduction post right away after they become members, it is in my terms of service. I go in once per week and delete all the forum spammers who have signed up but have made no introduction post. Not sure why but the forum spammers only sign up, they never post anything, once I did have one of them post spam links right away, but only once so my delete new members with no post gets 99% of the spammers who sign up.

In phpmyadmin I have easily found the newsletter table that holds all the newsletter subscribers, I deleted them all. I'll make a forum post telling my members to re-sign up if they want the newsletter. Only problem, I'll need to go in and delete all newsletter members every 6 months to 1 year so eliminate the spammers who signed up but who's accounts were deleted but who's newsletter subscription was automatically added due to being new members. I'm not going to remember to take each spammers email address and go into the newsletter unsubscribe option and manually remove them, what a pain.

Robert

Title: Re: Automatic Newsletter for SMF2
Post by: bob123 on August 24, 2016, 05:14:15 PM
This newsletter mod uses the SMF memberlist, AFAIK....   importing your emails would have to be done as creating a new forum member for each and every email address.

If this is true, then why is there a new mysql table specifically for the newsletter added and on my forum the forum spammers can be deleted from my forum membership but remain as newsletter subscribers?

Given this, there could be a way to ad newsletter members and not at the same time ad forum members, though there is no way to do that sort of thing now, it would need to be custom coded.

That could be one of the updates added to this newsletter, a textbox specifically for adding newsletter subscribers in bulk, one member email address per line.

Robert
Title: Re: Automatic Newsletter for SMF2
Post by: naijacrux on August 27, 2016, 03:25:53 AM
This newsletter mod uses the SMF memberlist, AFAIK....   importing your emails would have to be done as creating a new forum member for each and every email address.

If this is true, then why is there a new mysql table specifically for the newsletter added and on my forum the forum spammers can be deleted from my forum membership but remain as newsletter subscribers?

Given this, there could be a way to ad newsletter members and not at the same time ad forum members, though there is no way to do that sort of thing now, it would need to be custom coded.

That could be one of the updates added to this newsletter, a textbox specifically for adding newsletter subscribers in bulk, one member email address per line.

Robert


Please I will be grateful if you can help me on this issue.how can I access phpmyadmin table for this newsletter and import the 200000plus email once.this is urgent and important to me.I don't know why mod op fail to update this mod for mass email option and email import option .the subscription plugin on WordPress has really help my WordPress website traffic.when I import the 200k email to my WordPress,my rank goes up from 700k to 369k within 1week.traffic increase. I need someone who can explain how to import my subscribers list to this SMF mod once.
Title: Re: Automatic Newsletter for SMF2
Post by: naijacrux on August 27, 2016, 03:28:01 AM
This mod needs mods. I contacted the original mod author and he is not. What does that mean?, he did not author the mod, he paid to have it coded. I asked him for the coders name and he did not even remember. He was totally disinterested in doing any modifications or updates.

Why has no one made any better newsletter mods over the years as after all simple machines is pretty popular, I just don't get it.

I can say this if there is anyone out there who knows a decent coder who knows simple machines and would like to pay to have a decent newsletter mod built, or this newsletter modded/updated, we should talk as I would be in for paying for a better newsletter mod or having this newsletter updated.

I need a manual send newsletter option and I need a members list added that would list forum members and newsletter members side by side with a checkbox for deleting members. I would just delete all newsletter members who were not also forum members. Also I don't see why this newsletter did not just use the forum members table and pull email addresses from that, it did not need to ad another mysql table for newsletter member email addresses. I guess the guy who paid to have it coded wanted that feature.

On my forum I have it set to allow new members if they confirm their email address, it seems all new forum members are automatically signed up for newsletter membership. I require new members to make an introduction post right away after they become members, it is in my terms of service. I go in once per week and delete all the forum spammers who have signed up but have made no introduction post. Not sure why but the forum spammers only sign up, they never post anything, once I did have one of them post spam links right away, but only once so my delete new members with no post gets 99% of the spammers who sign up.

In phpmyadmin I have easily found the newsletter table that holds all the newsletter subscribers, I deleted them all. I'll make a forum post telling my members to re-sign up if they want the newsletter. Only problem, I'll need to go in and delete all newsletter members every 6 months to 1 year so eliminate the spammers who signed up but who's accounts were deleted but who's newsletter subscription was automatically added due to being new members. I'm not going to remember to take each spammers email address and go into the newsletter unsubscribe option and manually remove them, what a pain.

Robert

lease I will be grateful if you can help me on this issue.how can I access phpmyadmin table for this newsletter and import the 200000plus email once.this is urgent and important to me.I don't know why mod op fail to update this mod for mass email option and email import option .the subscription plugin on WordPress has really help my WordPress website traffic.when I import the 200k email to my WordPress,my rank goes up from 700k to 369k within 1week.traffic increase. I need someone who can explain how to import my subscribers list to this SMF mod once.
Modify message
Title: Re: Automatic Newsletter for SMF2
Post by: luuuciano on January 27, 2017, 11:48:39 AM
Today I saw that the "main" server email account is receiving bounced newsletters........ and that is not a "public" email account, is the one that is created by default, something like username@yourdomain.com (being username the server account username....)
(in fact, in cpanel is even named as just "username" email account... it has NO @domain.com section...)

Is this possible? because I think that the delevery should be done using the email that is configured in the smf admin?

There is any way to force which email will be used when sending newsletters?
Title: Re: Automatic Newsletter for SMF2
Post by: Westwegoman on October 22, 2017, 11:29:40 AM
I found where someone else had this problem but didn't see a solution, unless I overlooked it.

Code: [Select]
2: in_array() expects parameter 2 to be array, boolean given
File: /Themes/default/Admin.template.php
Line: 903

The code from that line is:
Code: [Select]
<option value="', $option[0], '"', (($option[0] == $config_var['value'] || (!empty($config_var['multiple']) && in_array($option[0], $config_var['value']))) ? '
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 11, 2018, 12:49:01 PM
This mod needs mods. I contacted the original mod author and he is not. What does that mean?, he did not author the mod, he paid to have it coded. I asked him for the coders name and he did not even remember. He was totally disinterested in doing any modifications or updates.

Robert - that is (almost) a complete lie, I AM the mod author!  This was my reply to your requests:
Quote
Hi

Unfortunately I don't have the time to do any of this work.  I'm not a pro coder and only release mods that I use on the sites I operate on a use-it-or leave-it basis - to reduce support commitments I don't add functionality that I don't have a direct use for.

I'm not part of the coding scene at all so I'm not aware of anyone  else who may be able to help you - sorry!
Title: Re: Automatic Newsletter for SMF2
Post by: Arantor on October 11, 2018, 02:17:12 PM
How *dare* you make something and give it away for free, and then not update it for things you never want or need yourself, just because you're a hobbyist and built what you needed and thought it would be nice to share - and be expected, years later, to keep working on it long after it did everything you needed.

This sort of attitude is what I stopped writing mods and eventually removed all my mods, it seemed easier to deal with the small group of 'the mod's gone' complaints vs the much larger number of complaints about how mods I wrote for my use, or for a specific person and decided to share should be partially or totally rewritten to suit someone else.
Title: Re: Automatic Newsletter for SMF2
Post by: Sh@mbles on October 11, 2018, 02:30:41 PM
Quote from: HoverClub
This mod needs mods. I contacted the original mod author and he is not...

Robert - that is (almost) a complete lie, I AM the mod author!

I very much doubt he'll hear you, as that post was over 2 years ago and he hasn't visited since ;)
Title: Re: Automatic Newsletter for SMF2
Post by: HoverClub on October 11, 2018, 03:25:18 PM
I very much doubt he'll hear you, as that post was over 2 years ago and he hasn't visited since ;)
Yeh - I realise that but I was checking the thread for any fixable bugs before I released an update and that comment pi$$ed me off more than a bit!
Title: Re: Automatic Newsletter for SMF2
Post by: Sh@mbles on October 11, 2018, 03:42:03 PM
Justifiably, too.