[MODDB] daroPL_AntiSpam

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
User avatar
daroPL
Translator
Posts: 515
Joined: Tue Mar 27, 2007 11:58 am
Location: Poznan, Poland
Name: Darek
Contact:

[MODDB] daroPL_AntiSpam

Post by daroPL » Mon Jan 12, 2009 6:10 pm

Modification Name: daroPL_AntiSpam
Author: daroPL

Modification Description:: MOD blocks spambot registrations on board via change name of confirm code field to unique hash. In addition, it changes size of confirm code field to random.
Modification Version:: 1.0.4

Modification Download: http://www.phpbb.pl/forum/download/file.php?id=151
Last edited by daroPL on Mon Apr 13, 2009 8:12 am, edited 2 times in total.

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: [BETA] daroPL_AntiSpam

Post by nickvergessen » Wed Mar 04, 2009 11:45 am

This is a really great MOD, works fantastic and no more lazy spam-bots
No Support via PM

User avatar
tanrek
Registered User
Posts: 219
Joined: Mon Sep 27, 2004 1:46 pm
Location: Germany, Offenbach
Contact:

Re: [BETA] daroPL_AntiSpam

Post by tanrek » Thu Mar 05, 2009 7:19 pm

Very simple and absolutely effective => ingenious :D


There is a small issue in the installation instructions:

Code: Select all

'confirm_code'		=> request_var('confirm_code', ''), 
occurs two times in includes/ucp/ucp_register.php, that means it is not clear which one to replace with

Code: Select all

'confirm_code'		=> request_var($confirm_code_hash, ''),

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [BETA] daroPL_AntiSpam

Post by RMcGirr83 » Thu Mar 05, 2009 7:29 pm

tanrek wrote:There is a small issue in the installation instructions:
As with installing >any< modification it's the one that follows the previous FIND.

Anyway to apply this to also the guest posting box for a "complete" solution?
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
tanrek
Registered User
Posts: 219
Joined: Mon Sep 27, 2004 1:46 pm
Location: Germany, Offenbach
Contact:

Re: [BETA] daroPL_AntiSpam

Post by tanrek » Thu Mar 05, 2009 7:32 pm

Another small mistake:

Code: Select all

Open: language/en/common/ucp.php
should be

Code: Select all

Open: language/en/ucp.php

User avatar
daroPL
Translator
Posts: 515
Joined: Tue Mar 27, 2007 11:58 am
Location: Poznan, Poland
Name: Darek
Contact:

Re: [BETA] daroPL_AntiSpam

Post by daroPL » Fri Mar 06, 2009 2:16 pm

I'll fix the mistake right now.

crusi
Registered User
Posts: 103
Joined: Sat May 24, 2008 1:58 pm
Location: Germany
Contact:

Re: [BETA] daroPL_AntiSpam

Post by crusi » Fri Mar 06, 2009 9:59 pm

Hi daroPL,

i have installed the "Automatic_DST" (automatic timezone) MOD installed on my forum.
So in my /includes/ucp/ucp_register.php is something different.

I can´t find:

Code: Select all

			$is_dst = $config['board_dst'];
				$timezone = $config['board_timezone'];
			}
My Code looks like this:

Code: Select all

if ($config['board_timezone'] == $timezone || $config['board_timezone'] == ($timezone - 1))
		{
			$is_dst = DST_AUTO;
			$timezone = (date('I')) ? $timezone - 1 : $timezone;

			if (!isset($user->lang['tz_zones'][(string) $timezone]))
			{
				$timezone = $config['board_timezone'];
			}
		}
		else
		{
			$is_dst = DST_OFF;
			$timezone = $config['board_timezone'];
		}
Where should i insert your code? I think in both cases? (After DST_Auto and DST_OFF ?)


Best regards,
Crus
Best regards,
Crus

User avatar
daroPL
Translator
Posts: 515
Joined: Tue Mar 27, 2007 11:58 am
Location: Poznan, Poland
Name: Darek
Contact:

Re: [BETA] daroPL_AntiSpam

Post by daroPL » Sat Mar 07, 2009 11:21 am

You should add it after:

Code: Select all

         $is_dst = DST_OFF;
         $timezone = $config['board_timezone'];
      }

crusi
Registered User
Posts: 103
Joined: Sat May 24, 2008 1:58 pm
Location: Germany
Contact:

Re: [BETA] daroPL_AntiSpam

Post by crusi » Sat Mar 07, 2009 11:25 am

daroPL wrote:You should add it after:

Code: Select all

         $is_dst = DST_OFF;
         $timezone = $config['board_timezone'];
      }
Hi,

thanks for your fast answer. Then i made it right ;-D
Thanks.


regards,
Crus
Best regards,
Crus

Chneemann
Registered User
Posts: 2
Joined: Sun Mar 22, 2009 7:02 pm

Re: [BETA] daroPL_AntiSpam

Post by Chneemann » Sun Mar 22, 2009 7:29 pm

Hi

I'd like to install your Mod, but unfortunately I don't use the "prosilver" style you explained in the readme. I use the "subsilver2" style and this one uses Classes instead of Labels in the "styles/subsilver2/template/ucp_register.html". Sadly I'm not able to transfer this explanation into Classes…

Here is the part of the file I think I need, but I don't know what to to…

Code: Select all

<tr>
	<td class="row1" width="38%"><b class="genmed">{L_USERNAME}: </b><br /><span class="gensmall">{L_USERNAME_EXPLAIN}</span></td>
	<td class="row2"><input class="post" type="text" name="username" size="25" value="{USERNAME}" /></td>
</tr>
<tr>
	<td class="row1"><b class="genmed">{L_EMAIL_ADDRESS}: </b></td>
	<td class="row2"><input class="post" type="text" name="email" size="25" maxlength="100" value="{EMAIL}" /></td>
</tr>
<tr>
	<td class="row1"><b class="genmed">{L_CONFIRM_EMAIL}: </b></td>
	<td class="row2"><input class="post" type="text" name="email_confirm" size="25" maxlength="100" value="{EMAIL_CONFIRM}" /></td>
</tr>
<tr>
	<td class="row1"><b class="genmed">{L_PASSWORD}: </b><br /><span class="gensmall">{L_PASSWORD_EXPLAIN}</span></td>
	<td class="row2"><input class="post" type="password" name="new_password" size="25" value="{PASSWORD}" /></td>
</tr>
<tr>
	<td class="row1"><b class="genmed">{L_CONFIRM_PASSWORD}: </b></td>
	<td class="row2"><input class="post" type="password" name="password_confirm" size="25" value="{PASSWORD_CONFIRM}" /></td>
</tr>
<tr>
	<td class="row1"><b class="genmed">{L_LANGUAGE}: </b></td>
	<td class="row2"><select name="lang" onchange="change_language(this.value); return false;">{S_LANG_OPTIONS}</select></td>
</tr>
<tr>
	<td class="row1"><b class="genmed">{L_TIMEZONE}: </b></td>
	<td class="row2"><select name="tz">{S_TZ_OPTIONS}</select></td>
</tr>
<!-- BEGIN profile_fields -->
	<tr>
		<td class="row1" width="35%">
			<b class="genmed">{profile_fields.LANG_NAME}: </b>
			<!-- IF profile_fields.S_REQUIRED --><b>*</b><!-- ENDIF -->
			<!-- IF profile_fields.LANG_EXPLAIN --><br /><span class="gensmall">{profile_fields.LANG_EXPLAIN}</span><!-- ENDIF -->
		</td>
		<td class="row2">{profile_fields.FIELD}<!-- IF profile_fields.ERROR --><br /><span class="gensmall error">{profile_fields.ERROR}</span><!-- ENDIF --></td>
	</tr>
<!-- END profile_fields -->

<!-- IF S_CONFIRM_CODE -->
	<tr>
		<th colspan="2" valign="middle">{L_CONFIRMATION}</th>
	</tr>
	<tr>
		<td class="row3" colspan="2"><span class="gensmall">{L_CONFIRM_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row1" colspan="2" align="center">{CONFIRM_IMG}</td>
	</tr>
	<tr>
		<td class="row1"><b class="genmed">{L_CONFIRM_CODE}: </b><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
		<td class="row2"><input class="post" type="text" name="confirm_code" size="8" maxlength="8" /></td>
	</tr>
<!-- ENDIF -->
I think I have to modify something here:
<tr>
<td class="row1"><b class="genmed">{L_CONFIRM_CODE}: </b><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" name="confirm_code" size="8" maxlength="8" /></td>
</tr>

To modify the "includes/ucp/ucp_register.php" works fine without problems :-)

Thanks for helping :-)

Regards

Chneemann
Registered User
Posts: 2
Joined: Sun Mar 22, 2009 7:02 pm

Re: [BETA] daroPL_AntiSpam

Post by Chneemann » Mon Apr 06, 2009 6:42 pm

After two weeks, I’d like push the thread on top again.
Somewhere here who can help me?

Thanks ;)

User avatar
daroPL
Translator
Posts: 515
Joined: Tue Mar 27, 2007 11:58 am
Location: Poznan, Poland
Name: Darek
Contact:

Re: [BETA] daroPL_AntiSpam

Post by daroPL » Tue Apr 07, 2009 3:14 pm

Change

Code: Select all

   <tr>
      <td class="row1"><b class="genmed">{L_CONFIRM_CODE}: </b><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
      <td class="row2"><input class="post" type="text" name="confirm_code" size="8" maxlength="8" /></td>
   </tr>
for

Code: Select all

   <tr>
      <td class="row1"><b class="genmed">{L_CONFIRM_CODE}: </b><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
      <td class="row2"><input class="post" type="text" name="{ANTISPAM}" size="{CONFIRM_FIELD_SIZE}" maxlength="8" /></td>
   </tr>
it's EoM ;).

Tsoe
Registered User
Posts: 14
Joined: Wed Apr 08, 2009 3:06 pm

Re: [BETA] daroPL_AntiSpam

Post by Tsoe » Fri Apr 10, 2009 7:00 pm

@daroPL: Would be nice if you could add the following to the modx file (to support subsilver2 :mrgreen: ):

Code: Select all

		<open src="styles/subsilver2/template/ucp_register.html">
			<edit>
				<find><![CDATA[<td class="row2"><input class="post" type="text" name="confirm_code" size="8" maxlength="8" /></td>]]></find>
				<action type="replace-with"><![CDATA[<td class="row2"><input class="post" type="text" name="{ANTISPAM}" size="8" maxlength="8" /></td>]]></action>
			</edit>
		</open>


User avatar
daroPL
Translator
Posts: 515
Joined: Tue Mar 27, 2007 11:58 am
Location: Poznan, Poland
Name: Darek
Contact:

Re: [BETA] daroPL_AntiSpam

Post by daroPL » Mon Apr 13, 2009 8:07 am

I have added it to separated MODX file. Download link for the MOD updated in first post.
Thanks for code.

daniel.w
Registered User
Posts: 27
Joined: Tue Aug 12, 2008 11:43 am
Location: Germany

Re: [BETA] daroPL_AntiSpam

Post by daniel.w » Thu Apr 16, 2009 10:45 am

It doesn't work in my case :-(
Every time I try to register after installing the mod, I get the message that the entered CAPTCHA is wrong and too short.

Any idea?

Locked

Return to “[3.0.x] MODs in Development”