Ich habe mich mal drangesetzt und das bekannte “Subscribe to Comments” PlugIn für Wordpress weiterentwickelt. Aufgrund der derzeitigen Lage und der Abmahnung eines Bloggers halte ich es für nötig das geforderte OptIn Feature nachzurüsten. Dies habe ich am Wochenende jetzt mal getan. Herausgekommen ist dabei eine erweiterte Version mit dem geforderten Feature. Das heißt, aktiviert ein User jetzt das Häckchen und möchte sich über neue Kommentare benachrichtigen lassen, wird zuerst eine E-Mail mit einem speziellen Link versendet. Dieser muss einmal angeklickt werden um die Benachrichtigungsmail zu aktivieren. Daraufhin funktioniert das PlugIn wie gehabt. Es gibt also nur diese neue Zwischenstufe.
Wichtig: Es wird nur eine Mail versendet, sobald der User das Abo per Mail bestätigt hat gibt es keine weitere Abfrage mehr, egal bei welchem Beitrag. So wird ein zuspammen der User effektiv verhindert.
Download
Ich nenne das “neue” PlugIn jetzt einfach mal “Subscribe to Double-Opt-In Comments”. Herunterladen (Download) kann man es von der Wordpress-Plugin-Seite selber.
Es sollte vielleicht kurz in einer Testumgebung laufen und bei Erfolg erst im Produktivsystem! Auch wenn es bei vielen problemlos Funktioniert. Jeder Blog ist anders, ich übernehme keinerlei Haftung für Schäden!
In den Einstellungen sind 3 Felder hinzugekommen:
Installation:
- Datei ins /wp-content/plugins Verzeichnis laden
- Im Adminbereich aktivieren
- Einstellungen anpassen!
- Fertig, jetzt freuen ;)
Update:
- PlugIn deaktivieren
- PlugIn im Verzeichnis /wp-content/plugins löschen
- neue Version ins Verzeichnis laden
- PlugIn wieder aktivieren
Tipps & Tricks:
Sollte es Probleme mit dem Update geben, bitte per phpMyAdmin oder Ähnliches prüfen ob die Tabelle wp_comments in der DB folgende Felder besitzt:
Wenn nicht bitte so anpassen, falls Ihr nicht wisst wie, lasst es mich wissen :).
Für weitere Anregungen und Tipps stehe ich jederzeit zur Verfügung, einfach einen Kommentar hinterlassen! Bugs bitte auch an mich melden!
Known Bugs
Bei WP 2.7 kann es vorkommen das ihr im Adminbereich unter dem Menüpunkt “Werkzeuge” – “Subscriptions” einen inkorrekten Link vorfindet, sollte dies der Fall sein ändert ihr einfach in der PHP Datei “subscribe-to-doi-comments.php” die Zeile 879 von:
$sg_subscribe->form_action = 'edit.php?page=stc-management';
auf:
$sg_subscribe->form_action = 'tools.php?page=stc-management';
Dies ist leider zur Zeit ein Workaround, normalerweise sollte Wordpress aber selbstständig weiterleiten, bei mir funktioniert es zum Beispiel ohne eine Änderung.
History
Die History ist jetzt im Wordpress Changelog zu finden.
Update 1:
Das PlugIn läuft jetzt auch hier auf der Seite, ihr könnt es also direkt testen :).
Update 2:
Das PlugIn steht unter der GPL, laut Autor:
Tobias,
GPL v2
I’ll make that explicit in the next release.
– Mark Jaquith
– http://markjaquith.com/
Update 3:
Jetzt auch im Wordpress PlugIn Verzeichnis zu finden :).
Update 4:
Jetzt mit verschiedenen Sprachdateien!




Daniel
5. Januar 2010 at 16:30
Ich habe ein Problem mit der Funktion show_manual_subscription_form();
Wenn ich das einbaue, dann kann jeder jede Emailadresse eintragen, die er will, da gibts gar keine Opt-In Mail (Zero-Opt-In Verfahren? ;) ), auch wenn die eingetragene Emailadresse niemals auf dem Blog irgendwie in Erscheinung getreten ist.
Nicht nur das: Kann der “Angreifer” eine Emailadresse eines anderen Subscribers erraten, kommt er danach direkt in dessen Manager und kann dort sehen, wo der Inhaber dieser Adresse überall subscribed ist und kann ihm seine Subscriptions löschen oder die Email komplett blocken.
Wie kann ich das ändern?
Tobias
5. Januar 2010 at 18:37
Hm, danke für den Hinweis, ich kümmer mich drum, habe zur Zeit nur viel zutun, wird ein paar Tage dauern…
Tobias
7. Januar 2010 at 19:05
Es wird leider noch ein paar Tage dauern, ich habe zur zeit viel zutun! Sorry.
Daniel
7. Januar 2010 at 23:21
Danke für das Zwischen-Feedback und daß Du danach sehen willst! Bei mir brennt da noch nix an :)
Hab mir aus Neugierde den Code auch schon etwas angesehen, bin aber leider nicht genug durchgestiegen :}
Tobias
8. Januar 2010 at 10:20
Okay, dann habe ich nicht so den Druck ;)
Wenn Dir doch noch etwas auffallen sollte, einfach kurz mailen! :)
Stefan B.
11. Januar 2010 at 23:25
Hallo Tobias,
ich hoffe Du kannst mir weiter helfen. Wie kann ich die “Einstellungs”-Seite an das Design meines Blogs anpassen?
Vielen Dank im Vorraus.
Stefan
Tobias
12. Januar 2010 at 17:47
Dafür müsstest du die PHP Datei verändern, dort ist ganz am Ende die HTML Seite hinterlegt. Ein bisschen Farbe geht sicher schnell, ein ganzes Design einzubauen aber nicht so leicht.
monkey-business.biz » Hallo Welt!
13. Januar 2010 at 22:18
[...] XML Sitemaps von Arne BrachholdPretty Comments von Andrea BelvedereSociable von BlogplaySubscribe To “Double-Opt-In” Comments von Tobias KoelliganW3 Total Cache von Frederick TownesWP to Twitter von Joseph Dolsonund Tags 2 [...]
Thomas Scholz
15. Januar 2010 at 13:19
Hallo,
unter WP 2.8.6 kann ich keine Abonnements mehr löschen, und einige Leser bekommen Mails für Beiträge, die sie nicht abonniert haben. Ich wurde woanders auch selbst schon »Opfer« dieses Bugs.
Das ist mir sehr peinlich, und ich sähe diesen Bug gerne schnell repariert. Gibt es dazu schon einen bekannten Hack?
Tobias
15. Januar 2010 at 15:26
Bisher ist mir ein derartiges Problem nicht bekannt. Ich schaue aber mal ob ich etwas finde!
Tobias
21. Januar 2010 at 13:35
@Stefan B.: Du kannst den Style über eine CSS datei ändern, im Admin Bereich kannst du unten eine angeben, setze vorher das Häckchen darüber damit der Style auch genutzt wird.
rxs
27. Januar 2010 at 16:28
I sent by email localization on Russian for plugin Subscribe to Double-Opt-In Comments.
Michel Jambon
30. Januar 2010 at 13:52
hi!
how can i use the french version , for setting in WP dash board and display uppon the comment form in line ?
thank you. M.
Tobias
30. Januar 2010 at 14:46
@Michel: You have to set the language settings in your wp-config.php file:
add this line:
define ('WPLANG', 'fr_FR');Michel Jambon
31. Januar 2010 at 12:28
Thank you Tobias , Sorry but this line is already present in the file (wp-config.php).
i just want to read and set the plug in , in le dash board and display the fonctions of the comment form in french for the visitors. thanks. M.
Tobias
31. Januar 2010 at 12:34
@Michel: Ah, sorry. There isn´t any france language support yet. If you want some, you have to translate the english file on your own. You find it within the plugins folder under “language”.
If you translate it, please send it to me to serve it with this plugin for the future.
Michel Jambon
31. Januar 2010 at 19:29
thank you Tobias,
I am going to begin by understanding indeed the functioning of this extension and then I would pass in the translation. Schuss! M.
Tobias
31. Januar 2010 at 19:57
You have to open the file “subscribe-to-doi-comments.pot” in an editor like http://www.poedit.net/
ben
15. Februar 2010 at 09:15
I installed the plugin but I guess I should add some code into my comments.php of my template but I don’t know what exactly and where exactly and I only found you saying “in the loop” that doesn’t sound to precize to me :). Can you help me out there?
Thank you very much in advance!
ben
15. Februar 2010 at 09:41
One more thing: I have “You must be logged in to post a comment.” under the actual comment in case the user is not registered. What is the function that calls your form so that I can replace the above line with your form.
ben
15. Februar 2010 at 10:14
Ok, I solved it: I basically had to change some if and else and endif conditions to make sure the comments part looks as I wanted. Honestly it’s wasn’t the easiest and requires some php knowledge (or some sense of programming). Maybe you could provide an example comments.php to make sure newbies are ok especially as WP’s default template also uses the structure that prevents your plugin from appearing.
ben
15. Februar 2010 at 10:55
I’m sorry to bother you again, but it seems I was happy too early. Now the form appears, but it displays an internal error for wp-comments-post.php. Could you please help? Thank you a lot in advance!
Tobias
15. Februar 2010 at 13:11
What´s the exact error message?
ben
15. Februar 2010 at 13:39
if I’m logged in as admin and try commenting it doesn’t do anything, if I’m logged off, I get internal error (500) trying to reach /wp-comments-post.php
I use this code in my template’s comment.php: http://pastie.org/825417
Tobias
15. Februar 2010 at 13:57
Hm, error 500 seems to be a server problem… I´ll think about it ;)
ben
15. Februar 2010 at 14:51
i tried it without your plugin and it gives the same error, so the error is not directly caused by the plugin, but it seems the default template of WordPress (just like my template) doesn’t display any form fields for unregistered users.
This is the coding for the original comments.php of the default template: http://pastie.org/825483 – as you can see it completely “hides” the form from non-registered users but as your plugin’s users are added to a different list, this will not work.
Don’t you have a double-opt-in register plugin for WP then I’d stop bothering you as that would be the thing I’m desprately looking for for several days now…
Tobias
15. Februar 2010 at 15:01
I think it hides the form for registered users, they just see the textbox and an submit button, unregistered users see the three fields for name, e-mail and website.
Try to allow unregistered users to comment… and use the show_subscription_checkbox() function outside of the comments form.
ben
15. Februar 2010 at 15:36
Yep, you’re right, that’s it! Thank you for your help!
On the other hand I’m still struggeling with the error; it only appears when i don’t fill out a required field, I’m going to hit google and see what it says…
thx again for your great help!
Tobias
15. Februar 2010 at 16:04
Okay, good luck!
Blog nativ an IE6 angepasst und neues Plugin installiert « Kau-Boys blog
21. Februar 2010 at 16:11
[...] mit dem sogenannten Double-Opt-In Verfahren gewählt. Es heißt dann auch treffenderweise Subscribe To “Double-Opt-In” Comments. Da es aber leider nicht in mehreren Sprachen vorliegt und auch nicht wirklich angepasst werden [...]
rike
9. März 2010 at 19:16
hallo tobias,
vielleicht stelle ich mich gerade etwas dumm an, aber ist es moeglich, dass ich als admin den email-text konfiguriere?
freundlich grueßt
die
rike
Tobias
9. März 2010 at 19:28
ja, klar ist das möglich, im wordpress adminbereich unter einstellungen, dort gibt es einen neuen eintrag für mein plugin!
rike
9. März 2010 at 19:43
na, das naechste mal “augen auf!” … danke dir :)