Home › Forum › Problemi Vari con WP › Commenti, nofifica via email automatica
-
AutorePost
-
-
19 Maggio 2009 alle 16:51 #10417guidolandaPartecipante
Tema Kubrik default, versione 2.7.0. IT su TopHost
Plugin installati oltre i 2 di default
– Simple-Tags, Get Recent Comments e Latest Post from Each Category
Salve ragazzi, cercavo un plugin che consentisse ai visitatori del mio blog di seguire via email altri commenti al proprio ricevendo apposita notifica ad ogni nuovo commento per lo stesso articolo.
Notifica che dovrebbe essere comunque disattivata dall’utente tramite un link sempre disponibile via mail.
Il plugin http://txfx.net/code/wordpress/subscribe-to-comments/
lo consente ma solo a chi sottoscrive la notifica preventivamente facendo ceck sotto, nello spazio riservato al commento.
(I miei utenti non conoscono l’inglese e non fanno attenzione a fare ceck)
Volevo invece che questo avvenisse automaticamente ad ogni nuovo commento dello stesso post.
In ogni caso gli utenti dovrebbero in qualsiasi momento interrompere la notifica via posta elettronica dall’apposito link disponibile nella stessa email.
Qualcuno ha trovato un plugin che svolge questa funzione ?
Grazie in anticipo
-
19 Maggio 2009 alle 18:01 #65407wollyAmministratore del forum
lo fa già il plugin che hai scelto, basta ce metti di default la casella chekkata (che orrida parola che ho scritto).
-
19 Maggio 2009 alle 18:16 #65408guidolandaPartecipante
Ciao wolly.. grazie per il riscontro
L’unica opzione che ho trovato nelle impostazioni del plugun >> “Subscribe to Comments Options“
è come puoi vedere dallo screenshot
Do a CSS “clear” on the subscription checkbox/message (uncheck this if the checkbox/message appears in a strange location in your theme)
Da Tool >> “Blog Comment Subscription Manager” esiste solo la lista delle sottoscrizioni
Esiste qualche altro menù nell’admin per rendere default la casella chekkata ?
Inoltre ho provato a sostituire nel plugin la stringa “Notify me of followup comments via e-mail” con una tradotta in italiano.. ma niente.. rimane quella in inglese (??)
-
19 Maggio 2009 alle 19:07 #65412wollyAmministratore del forum
dal file read me:
4. Optional: If you would like to enable users to subscribe to comments without having to first leave a comment, place this somewhere in your template, but make sure it is **outside the comments form**. A good place would be right after the ending
<
<? php show_manual_subscription_form(); ?>
Per quanto riguarda il checkbox sempre spuntato, questa funzione ho letto ora sempre dal readme, che è stata (giustamente) tolta, tra gli altri anch'io avevo chiesto all'autore di toglierla perchè era fastidioso.
Cmq risolvi il problema con quello che ti ho messo prima, ci si può iscrivere anche senza lasciare il commento.
ciao -
20 Maggio 2009 alle 17:32 #65435guidolandaPartecipante
Ops.. è vero potevo leggere il file readme..
Scusa Wally se ti importuno ancora.. ma non ho capito dove modificare il codice del Plugin.. ci sono 6 chiusure di tag form.. a quale esattamente si riferisce ?
E poi
<?php show_manual_subscription_form(); ?>
sostituisce qualche tag php o va ad aggiungersi ?
1) Riga 91
con frammento di codice che parte da
This is the text that is displayed for users who are NOT subscribed
<form action="" method="post">
2) Riga 100
con frammento di codice che parte da
<form name="removeBlock" method="post" action="<?php echo $sg_subscribe->form_action; ?>">
3) Riga 1055
con frammento di codice che parte da
<form name="getemail" method="post" action="<?php echo $sg_subscribe->form_action; ?>">
4) Riga 1174
con frammento di codice che parte da
<form name="removeSubscription" id="removeSubscription" method="post" action="<?php echo $sg_subscribe->form_action; ?>">
5) Riga 1195
con frammento di codice che parte da
<form name="blockemail" method="post" action="<?php echo $sg_subscribe->form_action; ?>">
6) Riga 1217
con frammento di codice che parte da
<form name="changeemailrequest" method="post" action="<?php echo $sg_subscribe->form_action; ?>">
Ho esculuso dall'elengo riga 214 echo '</form>';
-
20 Maggio 2009 alle 18:06 #65436wollyAmministratore del forum
devi metterla dove vuoi FUORI dai tag form
-
20 Maggio 2009 alle 18:23 #65438guidolandaPartecipante
Si l’avevo capito che era FUORI dal tag form ma non avevo compreso fuori rispetto a quale dei 6 tag di chisura form..
Mi hai detto dove voglio.. e ho aggiunto
<?php show_manual_subscription_form(); ?>
alla riga 92 dopo la prima chiusura del tag form
Sembra funzionare .. anche se sono passati 10 minuti dal post del commento e non ho ancora ricevuto alcuna notifica via email (la posta funziona.. ho verificato e non ha filtri antispam).. ma questo è un altro problema che non dipende da noi
Grazie Wolly
-
20 Maggio 2009 alle 18:32 #65439wollyAmministratore del forum
tu lo hai inserito in mezzo ai tag form, il form comincia con il prima e finiscs con /form quindi devi metterlo fuori dal codice che tu ahi inserito.
-
20 Maggio 2009 alle 20:41 #65448guidolandaPartecipante
-
21 Maggio 2009 alle 17:57 #65469guidolandaPartecipante
Sembrava funzionasse ma poi ho cancellato i cookie e ho scoperto che anche con l’aggiunta del codice indicato nel file reademe.txt dopo la prima chiusura del tag form in realtà non dava di default il ceck su sottoscrivi la notifica del commento.
Ho risolto come descritto di seguito, magari può essere utile per qualche altro che ha la stessa esigenza:
Ho inserito alla riga numero 19 dopo
$checked_status = ( !empty($_COOKIE) && 'checked' == $_COOKIE ) ? true : false;
(che dice se c'è il cookie metti la checkbox a true, altrimenti mettila a false)
il frammento di codice
$checked_status = true;
(forza $checked_status sempre a true)
Un rigranziamento di cuore a Napolux
Come potete vedere dallo screenshot:
-
21 Maggio 2010 alle 19:44 #73701difenPartecipante
grazie, era proprio quello che cercavo .
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.