Anti-Bot Question

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
bentinho
Registered User
Posts: 31
Joined: Tue Mar 31, 2009 8:56 am

Re: Anti-Bot Question

Post by bentinho »

Hello again, sorry for spamming this thread with questions, but since I am working on this stuff at the moment, I encounter some issues.

Can anybody please try and register at my forum at: http://www.free-awareness.com/forum

When I log out and try to register a test account myself, I fill in my username, email, password etc, and then I click submit, but it says:
No Anti-Bot Question Answer Entered.
I have activated the anti-bot question in the ACP, but I do not see any question when registering. Also I have erased my internet's cache memory I belief.

Any ideas?
Free Awareness - Free your Awareness

For Meditation, Consciousness, Self Realization, Enlightenment, See:
Free Awareness Forum
User avatar
Hippie459MN
Registered User
Posts: 964
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: Anti-Bot Question

Post by Hippie459MN »

bentinho wrote:Hello again, sorry for spamming this thread with questions, but since I am working on this stuff at the moment, I encounter some issues.

Can anybody please try and register at my forum at: http://www.free-awareness.com/forum

When I log out and try to register a test account myself, I fill in my username, email, password etc, and then I click submit, but it says:
No Anti-Bot Question Answer Entered.
I have activated the anti-bot question in the ACP, but I do not see any question when registering. Also I have erased my internet's cache memory I belief.

Any ideas?
Did you do the style edits?
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Anti-Bot Question

Post by RMcGirr83 »

Means, to visit your ACP and in the middle window scroll down and click on the "Purge Cache" button.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
bentinho
Registered User
Posts: 31
Joined: Tue Mar 31, 2009 8:56 am

Re: Anti-Bot Question

Post by bentinho »

Hey guys,

I did all that. I added the suggested code multiple times to the prosilver style ucp_register.html file, meaning, I redid it from the original one, tried multiple times, but it just doesn't work.

The final part of the MOD's installation guide says to open prosilver/templates/ucp_register.html.

And then there is the other file explaining the codes for subsilver 2 right, do I need to do anything with that code as well? or only if I want to use that template?

I have tried to find a similar code in a nother style and added the piece from the templates install guide there...

Anyway, it still doesn't work, I did the purging cache multiple times before and after as well by now.

Any suggestions?
B.
Free Awareness - Free your Awareness

For Meditation, Consciousness, Self Realization, Enlightenment, See:
Free Awareness Forum
momentum
Registered User
Posts: 1505
Joined: Thu Sep 20, 2007 4:07 am
Location: Melbourne, Australia

Re: Anti-Bot Question

Post by momentum »

As you have proFormell as the default style you'll need to add the template edits to your styles/proFormell/template/ucp_register.html file.

I believe that style is based upon prosilver, so the prosilver.xml file should show you the way.

Craig.
QOTY: phpBB is free, good hosting is not. - robert (Lumpy Burgertushie)
TheLuBu
Registered User
Posts: 8
Joined: Fri Mar 20, 2009 8:33 pm

Re: Anti-Bot Question

Post by TheLuBu »

I have Translated the ABQ MOd to German. Would like to give it to you! PM me if interessted!

TheLuBu
Vance
Registered User
Posts: 23
Joined: Tue May 11, 2004 1:46 am
Location: Saxonburg, PA

Re: Anti-Bot Question

Post by Vance »

This is my first attempt at adding a mod so please forgive my ignorance. I am still fine-tuning my board so it is not really live yet.

It seems that I got everything installed correctly. My Anti-Bot question shows up fine in the User Registration. I set up at new user account and answered the question with the correct answer. It processed the registration fine.

Then I deleted this user and set another user using the same info. This time I did NOT answer the Question at all and it still processed the registration.

I set up a third user and answered the questions incorrectly and it still processed the registration.

Did I do something wrong? I did not use the second answer. Does that make a difference?

I really would like to head off the problem of spam bots before I take this live, so I would really appreciate any help with this little problem.

Thanks,
Vance
rpd5127
Registered User
Posts: 13
Joined: Fri Feb 27, 2009 1:41 pm

Re: Anti-Bot Question

Post by rpd5127 »

Ok, I installed the “Anti-Spam Question Mod”. Everything went well, except I am using AeroBlack instead of SubSilver. I am not a noob to php, but not a pro either. I inserted the code for
../forum/styles/subsilver/templates/ucp_register.html into the corresponding ucp_register.html for AeroBlack.

Code: Select all

<!-- IF S_ABQ_CODE -->

<dl>
<dt><label for="AB_Question">{L_AB_QUESTION}:</label><br /><span>{L_AB_QUESTION_EXPLAIN}</span></dt>

<dd><input type="text" tabindex="6" name="AB_Question" id="AB_Question" size="25" maxlength="255" value="{AB_QUESTION}" class="inputbox autowidth" title="{L_AB_QUESTION}" /></dd>

</dl>

<!-- ENDIF -->
I the code in after

Code: Select all

<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>
Which is the corresponding location in the SubSilver template. But when I purge the cache and reload the registration page, the question is above the “Registration” bar (where the red arrow is in the screenshot). When it does this, it pushed the black registration bar down a few lines. It basically looks like crap.

Image

I would like to have it where the blue arrow is in the screenshot. Just adding a couple of blank lines and then have the question there, with the answer box under the one above it. I have got plain text to go there, but when I enter the code it is not visible after uploading and purging the cache.

If anyone can help me it would be great. Here is the code to my ucp_register.html

Code: Select all

<!-- INCLUDE overall_header.html -->
<script type="text/javascript">
// <![CDATA[
	/**
	* Change language
	*/
	function change_language(lang_iso)
	{
		document.forms['register'].change_lang.value = lang_iso;
		document.forms['register'].submit.click();
	}

// ]]>
</script>

<form name="register" method="post" action="{S_UCP_ACTION}">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="18" height="18"><img src="{T_THEME_PATH}/images/tl.png" width="18" height="18" alt="" /></td>
    <td height="18" style="background:url('{T_THEME_PATH}/images/tm.png');"></td>
    <td width="18" height="18"><img src="{T_THEME_PATH}/images/tr.png" width="18" height="18" alt="" /></td>
  </tr>
  <tr>
    <td width="18" style="background:url('{T_THEME_PATH}/images/ml.png');"></td>
    <td>
<table class="tablebg" width="100%" cellspacing="0">
<tr>
	<th colspan="2" valign="middle">{L_REGISTRATION}</th>
</tr>

<!-- IF ERROR -->
	<tr>
		<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>
	</tr>
<!-- ENDIF -->

<!-- IF L_REG_COND -->
	<tr>
		<td class="row2" colspan="2"><span class="gensmall">{L_REG_COND}</span></td>
	</tr>
<!-- ENDIF -->
<!-- IF .profile_fields -->
	<tr>
		<td class="row2" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
	</tr>
<!-- ENDIF -->

<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><br /><br /></td>
		<td valign="top" class="row2"><input class="post" type="text" name="confirm_code" size="8" maxlength="8" /></td>
       
	</tr>
    

<!-- ENDIF -->

<!-- IF S_COPPA -->
	<tr>
		<th colspan="2" valign="middle">{L_COPPA_COMPLIANCE}</th>
	</tr>
	<tr>
		<td class="row3" colspan="2"><span class="gensmall">{L_COPPA_EXPLAIN}</span></td>
	</tr>
<!-- ENDIF -->

<tr>
	<td class="catb" colspan="2" align="center">{S_HIDDEN_FIELDS}<input class="btnmain" type="submit" name="submit" id="submit" value="{L_SUBMIT}" />&nbsp;&nbsp;<input class="btnlite" type="reset" value="{L_RESET}" name="reset" /></td>
</tr>
</table>
</td>
    <td width="18" style="background:url('{T_THEME_PATH}/images/mr.png');"></td>
  </tr>
  <tr>
    <td width="18" height="18" align="right"><img src="{T_THEME_PATH}/images/bl.png" width="18" height="18" alt="" /></td>
    <td height="18" style="background:url('{T_THEME_PATH}/images/bm.png');"></td>
    <td width="18" height="18"><img src="{T_THEME_PATH}/images/br.png" width="18" height="18" alt="" /></td>
  </tr>
</table>
{S_FORM_TOKEN}
</form>
<!-- INCLUDE overall_footer.html -->
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Anti-Bot Question

Post by RMcGirr83 »

Vance wrote:I set up a third user and answered the questions incorrectly and it still processed the registration.
Very common mistake you placed the code edits in includes/ucp/ucp_register.php incorrectly. Namely there are two $tz variables, you want to place the edit after the second $tz variable, not the first that you find.
rpd5127 wrote:Ok, I installed the “Anti-Spam Question Mod”. Everything went well, except I am using AeroBlack instead of SubSilver. I am not a noob to php, but not a pro either. I inserted the code for
../forum/styles/subsilver/templates/ucp_register.html into the corresponding ucp_register.html for AeroBlack.

Code: Select all

<!-- IF S_ABQ_CODE -->

<dl>
<dt><label for="AB_Question">{L_AB_QUESTION}:</label><br /><span>{L_AB_QUESTION_EXPLAIN}</span></dt>

<dd><input type="text" tabindex="6" name="AB_Question" id="AB_Question" size="25" maxlength="255" value="{AB_QUESTION}" class="inputbox autowidth" title="{L_AB_QUESTION}" /></dd>

</dl>

<!-- ENDIF -->
Close but, those are the edits to do for prosilver, not subsilver2. So change them according to the install instructions for subsilver2, re-upload and purge the cache/refresh the template.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
rpd5127
Registered User
Posts: 13
Joined: Fri Feb 27, 2009 1:41 pm

Re: Anti-Bot Question

Post by rpd5127 »

I can not find the install instructions for subsilver2. Any idea where they can be found.

Searched the forum and no luck.
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Anti-Bot Question

Post by RMcGirr83 »

Open the xml file from the download of the mod in your browser, tad way down the file (Additional MODX files) will be a link to subsilver2 instructions. Click on it.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
rpd5127
Registered User
Posts: 13
Joined: Fri Feb 27, 2009 1:41 pm

Re: Anti-Bot Question

Post by rpd5127 »

It worked, thanks.
User avatar
BucsFan
Registered User
Posts: 253
Joined: Tue Nov 04, 2008 2:41 pm

Re: Anti-Bot Question

Post by BucsFan »

I've had this mod on my site for probably a month now and I'm very pleased with the results. So far I have not had a single bot registration. Also, I disabled the Captcha when I installed the mod. It seems as though the Captcha is no longer needed and didn't even do its job prior to adding this mod to my board. Good work and I appreciate it very much.
Hostgator - The very best webhosting available on the net
The most reliable uptime - The lowest prices - Excellent tech support
User avatar
Hippie459MN
Registered User
Posts: 964
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: Anti-Bot Question

Post by Hippie459MN »

BucsFan wrote:I've had this mod on my site for probably a month now and I'm very pleased with the results. So far I have not had a single bot registration. Also, I disabled the Captcha when I installed the mod. It seems as though the Captcha is no longer needed and didn't even do its job prior to adding this mod to my board. Good work and I appreciate it very much.
I agree 100% I have since disable captcha on my board as it wasnt working well anyways. This has stopped everything dead in its tracks. :D
Xtracker!
Registered User
Posts: 522
Joined: Sun Apr 05, 2009 10:36 pm
Location: Area 51

Re: Anti-Bot Question

Post by Xtracker! »

There a little grammar problem when registering...

It says...
For protection against spam, Answer the above question.
It would be...

Answer the question above

Any way to fixing this?
Locked

Return to “[3.0.x] MOD Database Releases”