Author Topic: Pixelpost fara spam  (Read 845 times)

blur

  • color
  • ****
  • Posts: 794
Pixelpost fara spam
« on: June 09, 2008, 19:50:13 »
Pentru cei care folosesc pixelpost, vazand ca multa lume se plange de comentarii-spam, iata un mic truc pentru a scapa definitiv de chestia asta. Intai de toate, dezactivati Defensio/Akismet(din addons) si activati Token(Options->spam control->enable token in forms).

Apoi, mergeti in image_template.html sau comment_template.html(depinde ce fel de template folositi, cu fereastra de comentarii standalone sau inline comment form) si cautati:
Code: You are not allowed to view links. Register or Login
form method='post' action='index.php?x=save_comment' name='commentform' accept-charset='UTF-8'inlocuiti cu
Code: You are not allowed to view links. Register or Login
form method='post' action='index.php?x=sanuvreauspamcomment' name='commentform' accept-charset='UTF-8'
Cautati
Code: You are not allowed to view links. Register or Login
</form>
si adaugati dupa "</form>" scriptul urmator:
Code: You are not allowed to view links. Register or Login
<script type="text/javascript">
trueAction = "index.php?x=sanuvreauspamcomment";
trueAction = trueAction.replace(/nuvreauspam/g, "ve_");
document.forms.commentform.action = trueAction;
</script>

Gata. Cu aceasta metoda nu e nevoie de akismet/defensio. Daca inainte de a o adopta aveam ~50 spamuri pe zi, acum stau fara griji. De vreo 3 luni folosesc aceasta metoda si nu am avut parte de nici un spam.

:)

PS. Dupa ce ati facut modificarile, faceti voi insiva un comentariu pentru a vedea daca e totul ok.
I'm a leaf on the wind. Watch me how I soar !

blur

  • color
  • ****
  • Posts: 794
R?spuns: Pixelpost fara spam
« Reply #1 on: July 28, 2008, 22:21:42 »
Nota: cei care folositi pixelpost, aruncati o privire You are not allowed to view links. Register or Login.
I'm a leaf on the wind. Watch me how I soar !