• [MOD] Anti-Spam v1.0 for Guestbook & Comments 5 0 5 1
Currently:  

Author Topic: [MOD] Anti-Spam v1.0 for Guestbook & Comments  (Read 183063 times)

0 Members and 1 Guest are viewing this topic.

Offline Nelske

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #30 on: April 13, 2006, 12:30:21 PM »
the field to enter the security code ONLY appears if javascript has been disabled in the browser,
thats the trick of this mod.
otherwise the security field will be field out automaticlly.

P.S.: You can test it, if you disable js in your browser.

I see the field nomather what the status of java scripting is in both IE and Firefox? Fixed that with the <noscript> part.

Now i'm allowed to post, but nothing gets added to the guestbook anymore? If i try to reload the page, i get a "page contains post data" message...

(En- and dis-abeling the java script does show or hide the security code box. But even with the box, and still no pictures of the code, i cannot post)
« Last Edit: April 13, 2006, 12:46:30 PM by Nelske »

Offline caminator

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #31 on: April 13, 2006, 04:33:43 PM »
I made the changes, and now there isn't even an option to leave a comment.

All it shows is:

Author:                                                         Comment:







Previous Image:                                              Next Image
A 157


There is nothing to click on now to leave a comment.  What is going on?

Offline Nelske

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #32 on: April 13, 2006, 06:02:34 PM »
After re-uploading the origionals and doing the whole mod again, all seems to be well! (don't ask, i'm an idiot  :oops:)
Thanks!

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #33 on: April 14, 2006, 02:22:38 AM »
@caminator:
try to restore your backups and start again building in this mod.
i think you must have done a mistake during installation.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #34 on: April 17, 2006, 04:24:28 PM »
Hi IcEcReaM


Danke für den MOD.

Ich habe ihn eingebaut und werde die Tage mal abwarten ob die Spameinträge ausbleiben. Ich hoffe das hilft.

Gruß Steffen

Offline batman1983

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://www.cherryland.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #35 on: April 19, 2006, 10:14:08 PM »
Hab den MOD auch erfolgreich gestern eingebaut.
Heute hatte ich allerdings den ersten Spam drin.

Kann ich auch irgendwie das ganze so gestalten, dass man immer den Code eingeben muss?

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #36 on: April 20, 2006, 06:37:08 AM »
Hab den MOD auch erfolgreich gestern eingebaut.
Heute hatte ich allerdings den ersten Spam drin.

Ich hatte leider das gleiche Problem. Die Spameinträge sind bei mir auch nicht weiniger geworden. Es scheint nicht die richtige Lösung zu sein.

Offline batman1983

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://www.cherryland.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #37 on: April 20, 2006, 08:55:49 AM »
Da gibts bestimmt ne einfache Lösung für. Nur muss der Ersteller hier mal reingucken.

Offline batman1983

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://www.cherryland.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #38 on: April 21, 2006, 01:02:25 AM »
Bzw. habt ihr mal ausprobiert den Sicherheitscode falsch einzugeben? Es steht dann zwar dar, dass der Code falsch eingegeben wurde, aber der Post im GB ist trotzdem drin.

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #39 on: April 21, 2006, 12:06:33 PM »
Bitte den Einbau dann nochmal überprüfen.
Wenn der Sicherheitscode falsch eingegeben wurde,
darf gar kein Post gesendet/gespeichert werden.

Zum Testen, ob es funktioniert, einfach mal JS im Browser ausschalten.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline batman1983

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://www.cherryland.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #40 on: April 21, 2006, 05:29:18 PM »
Ist denn dieser Teil in der guestbook.php richtig?

Code: [Select]
//-----------------------------------------------------
//--- Save Comment ------------------------------------
//-----------------------------------------------------
$error = 0;
if ($action == "postcomment" && $config['guestbook_post'] == 1) {
    $comment_user_name = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_user_name']));
    $comment_text = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_text']));
   $comment_site = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_site']));
   $comment_mail = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_mail']));
   $prevent_code = (isset($HTTP_POST_VARS['prevent_code'])) ? intval(trim($HTTP_POST_VARS['prevent_code'])) : 0;
    // Flood Check
   $sql = "SELECT comment_ip, comment_date
              FROM ".GUESTBOOK_TABLE."
         WHERE comment_ip = '".$session_info['session_ip']."'
         ORDER BY comment_date DESC
         LIMIT 1";
   $spam_row = $site_db->query_firstrow($sql);
   $spamtime = $spam_row['comment_date'] + 360;

   if (time() <= $spamtime && $user_info['user_level'] != ADMIN)  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['spamming'];
      $error = 1;
   }

if ($comment_user_name == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['name_required'];
      $error = 1;
    }
    if ($comment_text == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['comment_required'];
      $error = 1;
    }

   if (!$error)  {
      if ($comment_site =="http://") {
 
  /** Anti_Spam Mod **/
   if ($site_sess->get_session_var('guestbook_code')) {
      $guestbook_code = stripslashes($site_sess->get_session_var('guestbook_code'));
      $site_sess->drop_session_var('guestbook_code');
   }
   else $guestbook_code = 0;

   if (!$guestbook_code || $prevent_code != $guestbook_code)  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['spamcode_error'];
      $error = 1;
    }
   /** Anti_Spam Mod **/ 
   
         $comment_site = "";
      }


Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #41 on: April 21, 2006, 05:40:12 PM »
nein.

Dieser Teil:
 
Code: [Select]
  /** Anti_Spam Mod **/
   if ($site_sess->get_session_var('guestbook_code')) {
      $guestbook_code = stripslashes($site_sess->get_session_var('guestbook_code'));
      $site_sess->drop_session_var('guestbook_code');
   }
   else $guestbook_code = 0;

   if (!$guestbook_code || $prevent_code != $guestbook_code)  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['spamcode_error'];
      $error = 1;
    }
   /** Anti_Spam Mod **/
   
         $comment_site = "";
      }

muss so wie in der anleitung beschrieben, VOR dem Teil hier stehen:
Code: [Select]
   if (!$error)  {
      if ($comment_site =="http://") {
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline batman1983

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://www.cherryland.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #42 on: April 21, 2006, 06:01:24 PM »
OK, danke.

Jetzt gehts. Hatte das mir falsch übersetzt.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #43 on: April 25, 2006, 05:42:34 PM »
Hallo,

besteht die Möglichkeit diesen Mod auch dafür zu verwenden

http://www.4homepages.de/forum/index.php?topic=11470.0

Und wenn ja wie muss ich was ändern?

Habe eben schon ein wenig probiert aber irgendwie gelingt es mir nicht... :(
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Sopur

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • Bilder des Harassenlaufs in Basel
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #44 on: April 26, 2006, 10:42:41 AM »
Habe es bei mir fürs Gästebuch auch installiert - scheint zu funktionieren! Wenn ich bis morgen kein Spam habe: Hut ab!
Falls ich es für die Comments auch benötigen würde, hat es jemand schon mit Version 1.7 versucht?
M
F
G
Sopur