Warning: The author of this contribution does not provide support for it anymore.

Anti-Bot Question

Installing anti-bot with AutoMod 1.0.0: find failure - Anti-Bot Question

Installing anti-bot with AutoMod 1.0.0: find failure

by spacester » Mon Jun 14, 2010 6:39 pm

I'm not sure why this is the first post, but I don't see where else to post this.

AutoMOD rocks. I installed my first phpBB about 5 years ago, so I appreciate what you've accomplished.

So with my brand spanking new board, everything easily and perfectly installs until this little thing.

Code: Select all

File edits
includes/ucp/ucp_register.php

***
(I deleted successful finds that were here)
***

Find

         'S_CONFIRM_CODE'   => ($config['enable_confirm']) ? true : false,

Add After

         'S_ABQ_CODE'   => ($config['enable_abquestion'] == 1) ? true : false,

The Find specified by the MOD could not be found



So I look at the file and the closest thing I could find is the only statement with the text

Code: Select all

true : false
in it, is

Code: Select all

   'S_CONFIRM_REFRESH'   => ($config['enable_confirm'] && $config['confirm_refresh']) ? true : false,


which is grouped with other statements under

Code: Select all

$template->assign_vars(array(


So I went ahead and added

Code: Select all

'S_ABQ_CODE'   => ($config['enable_abquestion'] == 1) ? true : false,


after it.

I'm guessing this will work fine, and will let you know the results after a few days or so.
spacester
Registered User
Posts: 28
Joined: Mon Jun 30, 2008 1:19 am

Re: Installing anti-bot with AutoMod 1.0.0: find failure

by stormblessed » Sun Jul 04, 2010 7:03 pm

I'm looking for an anti-bot question mod to use for my new forum. Did this install work for you? And if so, how is it doing at keeping the spambots out?
stormblessed
Registered User
Posts: 0
Joined: Sun Jul 04, 2010 7:01 pm

Re: Installing anti-bot with AutoMod 1.0.0: find failure

by Gereem » Thu Sep 16, 2010 8:22 pm

I made the same changes as spacester mentioned above and it works perfect on my phpbb forum. (But I didn't test it with just doing a force install ignoring the error so I"m not sure if the particular line of code in error would have made a difference) However, it's not on a live site and I'm the only one who's tested it and not other users. (I installed my practice phpbb forum site on my own computer/server using XAMPP) (I also used automod and only manually edited the line of code in error)

I don't remember having this issue about 10 months ago when I installed the same mod on my previous forum on 3.0.6 which still uses this mod now with 3.0.7-PL1.

Anyhow, I'm going to install this mod on my second live site again so reply to this post in about a month and I'll tell you guys how it's working then if this problem hasn't been resolved at that point.
Gereem
Registered User
Posts: 93
Joined: Tue May 19, 2009 1:18 am

Re: Installing anti-bot with AutoMod 1.0.0: find failure

by Gereem » Sat Oct 16, 2010 12:26 am

anyhow, it's been about a month and I've tested it on my live forum. Yes it does work so above mentioned changes are safe to proceed with.
Gereem
Registered User
Posts: 93
Joined: Tue May 19, 2009 1:18 am