Making "notify me of new comments via email" the default in MailPress 5.2.1

71 views
Skip to first unread message

Graham Stoney

unread,
Feb 17, 2012, 7:05:28 PM2/17/12
to MailPress
I'd like to have the "Notify me of new comments via email" box checked
by default, so that commenters see replies to their comments unless
they explicitly opt-out by unchecking the box.

Looking in mp-content/add-ons/MailPress_comment.php:comment_form, I
see that the $checked setting is taken from an option:
$checked = (get_option(self::option)) ? "checked='checked' " : '';

... but I can't see how to set the option. On the dashboard Settings-
>MailPress->Subscriptions there is a setting under Comments that has a
checkbox labelled "Comments", but it's always selected and grayed out.

A quick hack to get the box checked by default is to change the above-
mentioned line to:
$checked = "checked='checked' ";

But is there a better way to make "notify me of new comments via
email" the default?

Thanks,
Graham
PS: If you want to reply privately, please visit http://buildyourblog.net/contact

andré renaut

unread,
Feb 17, 2012, 7:07:55 PM2/17/12
to mail...@googlegroups.com
http://downloads.wordpress.org/plugin/mailpress.zip

2012/2/18 Graham Stoney <lqmm...@trashmail.net>

--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===

You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en



--
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.

andré renaut

unread,
Feb 17, 2012, 7:08:12 PM2/17/12
to mail...@googlegroups.com
and read readme.txt

2012/2/18 andré renaut <andre....@gmail.com>

Graham Stoney

unread,
Feb 18, 2012, 7:34:59 PM2/18/12
to MailPress
Thanks Andre!

On Feb 18, 11:08 am, andré renaut <andre.ren...@gmail.com> wrote:
> and read readme.txt
>
> 2012/2/18 andré renaut <andre.ren...@gmail.com>
>
>
>
>
>
>
>
>
>
> >http://downloads.wordpress.org/plugin/mailpress.zip
>
> > 2012/2/18 Graham Stoney <lqmma...@trashmail.net>
>
> >> I'd like to have the "Notify me of new comments via email" box checked
> >> by default, so that commenters see replies to their comments unless
> >> they explicitly opt-out by unchecking the box.
>
> >> Looking in mp-content/add-ons/MailPress_comment.php:comment_form, I
> >> see that the $checked setting is taken from an option:
> >> $checked = (get_option(self::option)) ? "checked='checked' " : '';
>
> >> ... but I can't see how to set the option. On the dashboard Settings-
> >> >MailPress->Subscriptions there is a setting under Comments that has a
> >> checkbox labelled "Comments", but it's always selected and grayed out.
>
> >> A quick hack to get the box checked by default is to change the above-
> >> mentioned line to:
> >> $checked = "checked='checked' ";
>
> >> But is there a better way to make "notify me of new comments via
> >> email" the default?
>
> >> Thanks,
> >> Graham
> >> PS: If you want to reply privately, please visit
> >>http://buildyourblog.net/contact
>
> >> --
> >> === Please Donate !
> >>https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2...

Graham Stoney

unread,
Feb 24, 2012, 6:19:46 PM2/24/12
to MailPress
One more thing: what sized donation would it take for you to add a
"Notify me of new posts via email." checkbox (also selected by
default) to the Comment Add-on so that commenters get subscribed to
the default MailPress newsletter, as described by Joast at:
http://yoast.com/comment-email-subscription-form/ ?

Thanks,
Graham

On Feb 18, 11:07 am, andré renaut <andre.ren...@gmail.com> wrote:
> http://downloads.wordpress.org/plugin/mailpress.zip
>
> 2012/2/18 Graham Stoney <lqmma...@trashmail.net>
>
>
>
>
>
>
>
>
>
> > I'd like to have the "Notify me of new comments via email" box checked
> > by default, so that commenters see replies to their comments unless
> > they explicitly opt-out by unchecking the box.
>
> > Looking in mp-content/add-ons/MailPress_comment.php:comment_form, I
> > see that the $checked setting is taken from an option:
> > $checked = (get_option(self::option)) ? "checked='checked' " : '';
>
> > ... but I can't see how to set the option. On the dashboard Settings-
> > >MailPress->Subscriptions there is a setting under Comments that has a
> > checkbox labelled "Comments", but it's always selected and grayed out.
>
> > A quick hack to get the box checked by default is to change the above-
> > mentioned line to:
> > $checked = "checked='checked' ";
>
> > But is there a better way to make "notify me of new comments via
> > email" the default?
>
> > Thanks,
> > Graham
> > PS: If you want to reply privately, please visit
> >http://buildyourblog.net/contact
>
> > --
> > === Please Donate !
> >https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2...

andré renaut

unread,
Feb 26, 2012, 9:36:58 AM2/26/12
to mail...@googlegroups.com
how much do you evaluate the cost of this add-on (i am thinking of 2 or 3 days)

2012/2/25 Graham Stoney <lqmm...@trashmail.net>


You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

Graham Stoney

unread,
Feb 28, 2012, 8:44:38 PM2/28/12
to MailPress
I was hoping it would be simpler than 2-3 days. I believe this is a
great way to improve visitor engagement. I'd be prepared to pay say
$50US.

I've had a go myself and come up with something that seems to work
here:
http://buildyourblog.net/downloads/MailPress_comment.php.txt

The main changes are in:
- comment_form to add the "Notify me of new posts via email." checkbox
- comment_post to add the commenter to the default newsletter

However, the commenter doesn't get a subscription confirmation message
like they do when subscribing via the MailPress widget.

In fact I notice that comment subscribers don't normally get a
confirmation message. Is this by design?

You'd probably also want an options checkbox to enable the "Notify me
of new posts via email." checkbox for blogs that don't want to present
this option; I'm not sure how to add that.

Cheers,
Graham
http://buildyourblog.net/contact


On Feb 27, 1:36 am, andré renaut <andre.ren...@gmail.com> wrote:
> how much do you evaluate the cost of this add-on (i am thinking of 2 or 3
> days)
>
> 2012/2/25 Graham Stoney <lqmma...@trashmail.net>

andré renaut

unread,
Feb 29, 2012, 2:17:02 AM2/29/12
to mail...@googlegroups.com
In fact I notice that comment subscribers don't normally get a
confirmation message. Is this by design?

yes !

the option is to have this in another add-on!

2012/2/29 Graham Stoney <lqmm...@trashmail.net>


You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

andré renaut

unread,
Feb 29, 2012, 9:54:56 AM2/29/12
to mail...@googlegroups.com
I have started the dev of a new add-on : MailPress_comment_newsletter_subscription

hereattached are the

settings (select the default newsletter for comments)
comments (how comment form is changed)

now i have to code all this ...

some potential issues :
* settings :
  + newsletter select will give option to none, all defaults, 1 active newsletter
  + if the active newsletter is deselected from the settings > subscriptions then the checkbox will not be displayed
  + ...
* potential conflict with comment add-on
   + avoid conflict on status value when user created !!!


*

2012/2/29 andré renaut <andre....@gmail.com>
settings.JPG
comments.JPG

Graham Stoney

unread,
Mar 2, 2012, 7:56:20 PM3/2/12
to MailPress
Awesome Andre; this looks fantastic to me.

If it simplifies the implementation, I think it's OK to just offer
subscription to the existing default newsletter.

The potential for conflict with the comment add-on was why I thought
this feature could be merged with it.

Not using a confirmation email makes it easier for spammers to
subscribe innocent victims. Some other email systems confirm comment
subscribers while others don't. For the newsletter though I think
you'd want to confirm. Again this could conflict with the comment add-
on.

Your donation is in the mail...

Cheers,
Graham

On Mar 1, 1:54 am, andré renaut <andre.ren...@gmail.com> wrote:
> I have started the dev of a new add-on :
> MailPress_comment_newsletter_subscription
>
> hereattached are the
>
> settings (select the default newsletter for comments)
> comments (how comment form is changed)
>
> now i have to code all this ...
>
> some potential issues :
> * settings :
>   + newsletter select will give option to none, all defaults, 1 active
> newsletter
>   + if the active newsletter is deselected from the settings >
> subscriptions then the checkbox will not be displayed
>   + ...
> * potential conflict with comment add-on
>    + avoid conflict on status value when user created !!!
>
> *
>
> 2012/2/29 andré renaut <andre.ren...@gmail.com>
>
>
>
>
>
>
>
>
>
> > In fact I notice that comment subscribers don't normally get a
> > confirmation message. Is this by design?
>
> > yes !
>
> > the option is to have this in another add-on!
>
> > 2012/2/29 Graham Stoney <lqmma...@trashmail.net>
>  settings.JPG
> 88KViewDownload
>
>  comments.JPG
> 57KViewDownload

andré renaut

unread,
Mar 3, 2012, 7:58:18 AM3/3/12
to mail...@googlegroups.com
Hereattached first version of add-on to test with development version of MailPress

Last changes :

* settings :
  + newsletter : just select an active newsletter

future enhancements could be to send :

in settings : if only one active newsletter avoid the select
when processing subscription : set subscriber status has 'waiting' and send a confirmation email

thks for the donation (expecting other people to continue ...)



2012/3/3 Graham Stoney <lqmm...@trashmail.net>


You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en
MailPress_comment_newsletter_subscription.php
Reply all
Reply to author
Forward
0 new messages