[ALPHA] Anti-bot Guest Post Mod

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! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
otseng
Registered User
Posts: 165
Joined: Wed Feb 04, 2004 6:51 pm
Location: Atlanta, GA
Contact:

[ALPHA] Anti-bot Guest Post Mod

Post by otseng »

Mod - Anti-bot Guest Post Mod

Current Version - 0.0.1

Demo - Demo forum

Download - antibot_guest_post.zip

Description
I was getting tired of Pepotamo1985 spamming my site. I have one forum that is open to posts by guests for problems in registration. But, I didn't want to shut that down just because one spammer was abusing it.

So, I hacked out a quick modification so that anonymous posts require an additional step to submit a post. It'll probably work until the spammers get onto this, but I wanted to get something in place right away.

Code: Select all

##############################################################
## MOD Title: Anti-bot Guest Post Mod
## MOD Author: otseng < > (Oliver Tseng) http://debatingchristianity.com
## MOD Description: This mod makes it a little bit harder for 
##					for a robot to make an anonymous posting.  
##					It will ask to select a dropdown to confirm
##					an anonymous post.
##					This mod was in response to the following topic:
##					http://www.phpbb.com/phpBB/viewtopic.php?t=263469
##					
## MOD Version: 0.0.1
##
## Installation Level: Easy
## Installation Time: <5 Minutes
## Files To Edit:
##               posting.php
##               templates/subSilver/posting_body.tpl
##               language/lang_english/lang_main.php
## Included Files: n/a
##############################################################
##############################################################
## MOD History:
##
##   2005-02-17 - Version 0.0.1
##  	- Initial release for beta testing
##
############################################################## 
This is my first mod, so I'd appreciate any suggestions for improvement. :)
Last edited by otseng on Fri Feb 25, 2005 1:02 pm, edited 2 times in total.
pbellamy
Registered User
Posts: 51
Joined: Fri Apr 04, 2003 10:24 am
Location: West Sussex, UK
Contact:

Post by pbellamy »

Thanks for this.

Have just installed it on my board, although the install text in the download isn't quite right and needed tweaking, and it appears to be working ok.

I've only opened one forum so far to see whether it gets "hit" or not. All being well I'll open the rest.

Back to the install.

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
{L_SUBJECT}
#
#-----[ FIND ]------------------------------------------
#
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
	<!-- BEGIN switch_antibot_post -->
	<tr> 
		<td class="row1"><span class="gen"><b>{L_CONFIRM_POST}</b></span></td>
		<td class="row2"><span class="genmed">
		<select name="confirm_guest_post" size="1">
		    <option value="No">No</option>
		    <option value="Yes">Yes</option>
  		</select>
		{L_CONFIRM_POST_EXPLAIN}</span></td>
	</tr>
	<!-- END switch_antibot_post -->
Was a bit confused by the find and find so added it after

Code: Select all

<td class="row1" width="22%"><span class="gen"><b>{L_SUBJECT}</b></span></td>
	  <td class="row2" width="78%"> <span class="gen"> 
		<input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" />
		</span> </td>
	</tr>
And also

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
// That's all, Folks!
// -------------------------------------------------
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Anti-bot Guest Post Mod
$lang['Confirm_post'] = 'Submit post?';
$lang['Confirm_post_explain'] = 'Please select "Yes" to submit your guest post';
$lang['Confirm_post_error'] = 'Please select "Yes" in "Submit post?" to submit your guest post';
#
This threw up a Parse error so it was actually added before

Code: Select all

//
// That's all, Folks!
// -------------------------------------------------
User avatar
otseng
Registered User
Posts: 165
Joined: Wed Feb 04, 2004 6:51 pm
Location: Atlanta, GA
Contact:

Post by otseng »

pbellamy wrote: Was a bit confused by the find and find so added it after

Yeah, it's a bit unstandard, but EasyMod understands it! :)

I added it that way to hopefully make it easier for EasyMod to install the mod if a board is heavily modded (which mine is).

But, your code find is right on the money.
User avatar
otseng
Registered User
Posts: 165
Joined: Wed Feb 04, 2004 6:51 pm
Location: Atlanta, GA
Contact:

Post by otseng »

I've made some changes to the comments:

- Rearranged the comments so that the mod will pass the validator
- Added a comment to make the "find, find" command a little bit clearer
- Added a comment to say that it is EasyMod compatible
User avatar
bikerboy1
Registered User
Posts: 61
Joined: Tue Nov 30, 2004 12:13 am
Location: Vancouver, Canada

phpBB dummy

Post by bikerboy1 »

Since you guys can create a mod on the fly like that, can you tell me if it is possible to make a submission form with drop-down selections for folks to fill out and then have the result inserted into a post? I asked this question a couple of months ago and never got a reply!
User avatar
yexusbeliever
Registered User
Posts: 586
Joined: Mon Dec 08, 2003 8:49 pm
Location: Olympus phpBB3

Post by yexusbeliever »

I know a friend who really needs this mod. I see the spammer by that name as well.
User avatar
otseng
Registered User
Posts: 165
Joined: Wed Feb 04, 2004 6:51 pm
Location: Atlanta, GA
Contact:

Post by otseng »

bikerboy1 wrote: Since you guys can create a mod on the fly like that, can you tell me if it is possible to make a submission form with drop-down selections for folks to fill out and then have the result inserted into a post? I asked this question a couple of months ago and never got a reply!

Could you post the link to that request? We can talk about it more over there.
User avatar
bikerboy1
Registered User
Posts: 61
Joined: Tue Nov 30, 2004 12:13 am
Location: Vancouver, Canada

Post by bikerboy1 »

otseng wrote:
bikerboy1 wrote:Since you guys can create a mod on the fly like that, can you tell me if it is possible to make a submission form with drop-down selections for folks to fill out and then have the result inserted into a post? I asked this question a couple of months ago and never got a reply!

Could you post the link to that request? We can talk about it more over there.

Sure... here is the link:
http://www.phpbb.com/phpBB/viewtopic.ph ... highlight=
Thanks a lot for looking at it!
Disturbed One
Registered User
Posts: 129
Joined: Sun Apr 03, 2005 12:31 am

Post by Disturbed One »

demo?
User avatar
otseng
Registered User
Posts: 165
Joined: Wed Feb 04, 2004 6:51 pm
Location: Atlanta, GA
Contact:

Post by otseng »

It's in the first post. But here it is again:
http://www.debatingchristianity.com/for ... php?t=1300
Disturbed One
Registered User
Posts: 129
Joined: Sun Apr 03, 2005 12:31 am

Post by Disturbed One »

Sorry :oops: Very good idea!
tashkar18
Registered User
Posts: 375
Joined: Sat Mar 19, 2005 5:44 am
Location: to concur the nation
Contact:

Post by tashkar18 »

http://www.debatingchristianity.com/for ... php?t=1300

make a reply and u'll see

oopss a bit too late
Kingshady.Com - Read The NEWS about EMINEM's NEW ALBUM

DO NOT CLICK HERE
tperkins
Registered User
Posts: 19
Joined: Tue Jan 04, 2005 3:17 am
Location: Long Beach, CA
Contact:

Brilliant!

Post by tperkins »

Just what the doctor ordered! Thanks!

I changed the wording to explain:

Code: Select all

// Anti-bot Guest Post Mod

$lang['Confirm_post'] = 'Are you human?';

$lang['Confirm_post_explain'] = 'Please select "Yes" to submit your guest post';

$lang['Confirm_post_error'] = 'Select "Yes" to submit your guest post (stops spam robots)';

[quote][/quote]
User avatar
MHobbit
Former Team Member
Posts: 4761
Joined: Thu Mar 18, 2004 5:32 pm
Location: There and Back Again

Post by MHobbit »

Please try not to bump old and dead threads. Thanks.

Anyways, it looks like the original MOD author otseng has abandoned this MOD... he/she hasn't posted here since November 10, 2005. Almost 2 months ago. As such, I'm considering this MOD abandoned, and locking this topic.

otseng, if you come back and wish to continue development of this MOD, don't hesitate to contact me regarding this.
Former phpBB MOD Team member
No private support is offered.
"There’s too many things to get done, and I’m running out of days..."
User avatar
MHobbit
Former Team Member
Posts: 4761
Joined: Thu Mar 18, 2004 5:32 pm
Location: There and Back Again

Post by MHobbit »

Unlocked at author's request.
Former phpBB MOD Team member
No private support is offered.
"There’s too many things to get done, and I’m running out of days..."
Post Reply

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