Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-02 21:47:21

Grégocentrique
Plugin Author
From: Rouen, France
Registered: 2009-12-19
Posts: 28
Website

glg_subscribe_comments : subscribe to article's comments

glg_subscribe_comments allows your visitors to subscribe the discussion of an article.

It add a checkbox below the comment form. If the visitor check it when he comments, he will receive a mail notification every time a new comment is posted.
The plugin works well if you have the moderate_comments preference activated.
You can customize the content of the notification mail and the format of the subject.

The notification mail provides a link to unsubscribe.

Get it there : glg_subscribe_comments v1.01

You can get more information on my blog.

If you find bugs or spelling and grammar mistakes please let me know.

Known bugs or Help mistakes :

  • There is a bug in the unsubscribe link format. See this post to fix it.
  • In Help, the name of the tag <txp:glg_subscribe_checkbox_label /> is wrong. You have to use <txp:glg_subscription_checkbox_label /> in place of it.

Language plugins

I’ve developed a plugin that translate glg_subscribe_comments in French :

If you’re interested by developing one in another language, let me know.

Requirements
texpattern 4.2
Seems to work fine with textpattern 4.3.

Changelog
1.01

  • Removed the glg_debug function that was only a development tool. You may delete log.txt on your website root.
  • When reinstalling the plugin or upgrading, the plugin preferences are no more overwrited.

Todo

  • Fix the unsubscribe link format bug.
  • Add the possibility to activate a Double Opt-in feature (send a mail to visitor to confirm subscription).
  • Clarify the Help (show examples)
  • In Help, Change <txp:glg_subscribe_checkbox_label /> (wrong tag) to <txp:glg_subscription_checkbox_label /> (right tag).

Last edited by Grégocentrique (2010-11-20 15:07:13)

Offline

#2 2010-02-03 06:49:26

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,262
Website

Re: glg_subscribe_comments : subscribe to article's comments

Bien joué greg ;)

awsome plugin.

Offline

#3 2010-02-03 07:17:16

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

Re: glg_subscribe_comments : subscribe to article's comments

Hi
For Germany we need: Double Opt in
it this possible?


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#4 2010-02-03 08:31:24

Grégocentrique
Plugin Author
From: Rouen, France
Registered: 2009-12-19
Posts: 28
Website

Re: glg_subscribe_comments : subscribe to article's comments

Thanks for feedback. :)

SuMu wrote:

Hi
For Germany we need: Double Opt in
it this possible?

Hi,
I Didn’t know about it.

It’s not implemented in glg_subscribe_comments, but it could be in the next version.
I add this feature on the todo-list.

Offline

#5 2010-02-03 10:45:37

phuture303
Member
Registered: 2008-09-14
Posts: 127

Re: glg_subscribe_comments : subscribe to article's comments

Any hints why the subscribers don’t get the comments via email? The adresses are put correctly in the mysql-table, but no message-sending does happen. Email-adress for “From” and “reply-to” fields in the plugin-preference is the same as in the admin-preferences, this email-adress is allowed to send via sendmail and smtp (had to “verify” the sendmail path for my hoster via php.ini).

Would be great if anybody has an idea how I could bring this great plugin to work!

David

Offline

#6 2010-02-03 13:29:54

Grégocentrique
Plugin Author
From: Rouen, France
Registered: 2009-12-19
Posts: 28
Website

Re: glg_subscribe_comments : subscribe to article's comments

Interesting bug.

Do you know if it works when you leave plugin prefs blank ?
What kind of host is it (Linux or Windows)?

Offline

#7 2010-02-03 14:35:53

phuture303
Member
Registered: 2008-09-14
Posts: 127

Re: glg_subscribe_comments : subscribe to article's comments

Nope, blank plugin-prefs didn’t work. Host is Linux with PHP Version 5.2.12

I’ve found an logfile on my webspace in the main directory:

[debug] glg_saveComment_and_notify IN
[debug] $glg_new_comment_url :http://www.MYDOMAIN.de/TITLE#c000134
[debug] glg_saveComment_and_notify IN
[debug] $glg_new_comment_url :hhttp://www.MYDOMAIN.de/TITLE#c000135

(I’ve made the domain anonymous). Should it be like that?

Offline

#8 2010-02-03 15:04:02

Grégocentrique
Plugin Author
From: Rouen, France
Registered: 2009-12-19
Posts: 28
Website

Re: glg_subscribe_comments : subscribe to article's comments

I just checked my code and saw that I forget to remove my logging function in the last version. :/

I am at work and have not access to my FTP. I will fix the plugin tonight and upload a new version.

Maybe your problem comes from here (But I’m not sure at all).

However, your logfile seems wrong, a log just before the call to mail() function is missing. So the problem could come from the plugin. I’m investigating.

Last edited by Grégocentrique (2010-02-03 15:12:08)

Offline

#9 2010-02-03 15:13:58

phuture303
Member
Registered: 2008-09-14
Posts: 127

Re: glg_subscribe_comments : subscribe to article's comments

thanx a lot, i’d love to check v1.1 :-))

Offline

#10 2010-02-03 15:15:27

Grégocentrique
Plugin Author
From: Rouen, France
Registered: 2009-12-19
Posts: 28
Website

Re: glg_subscribe_comments : subscribe to article's comments

Ok, it seems that a problem occurs during the parsing of form “glg_comment_notification”.

Did you modify it?

(Actually the logfile is very useful… I think about just desactivate it by default).

Offline

Board footer

Powered by FluxBB