The humanizer

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

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
69
73%
Very Good
11
12%
Good
6
6%
Fair
2
2%
Poor
7
7%
 
Total votes: 95

StuGa
Registered User
Posts: 3
Joined: Sun Aug 26, 2007 5:58 pm

Re: The humanizer

Post by StuGa »

Hi,

I got a problem. I installed that humanizer. My forum works perfectly exept when i press the Submit button on the register page and the profil page. If i press the Submit button the page with the " 404 Error" appears.

Sorry my english isn´t that good. So maybe try it. >> http://forum.Panic-Escape.de

Thanks
Underhill
Registered User
Posts: 154
Joined: Tue Sep 27, 2005 1:54 pm

Re: The humanizer

Post by Underhill »

Hi,

there is an error in your http://forum.panic-escape.de/templates/ ... d_body.tpl
<form action="subSilver/%7BS_PROFILE_ACTION%7D" {S_FORM_ENCTYPE} method="post">

{ERROR_BOX}

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left"><span class="nav"><a href="subSilver/%7BU_INDEX%7D" class="nav">{L_INDEX}</a></span></td>
Check your changes again...

Reg.
Underhill
batlh ghajbe' De'wI'mey!
StuGa
Registered User
Posts: 3
Joined: Sun Aug 26, 2007 5:58 pm

Re: The humanizer

Post by StuGa »

I think i´m to silly^^ i check the codes again and the problem is still here. I don´t know much about PHP so maybe someone could copy the hole code from the " profile_add_body.tpl " ??

Thanks.
StuGa
Registered User
Posts: 3
Joined: Sun Aug 26, 2007 5:58 pm

Re: The humanizer

Post by StuGa »

Here are my scripts with the Humanizer parts... i don´t know whats wrong...

Usercp_register :
$signature = (isset($signature)) ? str_replace('<br />', "\n", $signature) : '';
$signature_bbcode_uid = '';

// Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to
// empty strings if they fail.
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);

// Der Humanizer MOD
$humanizer_attribute = md5(($board_config['board_startdate'] + $board_config['board_timezone']) * $board_config['avatar_filesize']);
$ruhuman = isset($HTTP_POST_VARS[$humanizer_attribute]) ? $HTTP_POST_VARS[$humanizer_attribute] : '';
$ruhuman = trim(htmlspecialchars($ruhuman));

$viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : 0;
$allowviewonline = ( isset($HTTP_POST_VARS['hideonline']) ) ? ( ($HTTP_POST_VARS['hideonline']) ? 0 : TRUE ) : TRUE;
$notifyreply = ( isset($HTTP_POST_VARS['notifyreply']) ) ? ( ($HTTP_POST_VARS['notifyreply']) ? TRUE : 0 ) : 0;
if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
// Der Humanizer MOD
$humanizer_answers = $lang['humanizer_answers'];
if (!in_array(strtolower($ruhuman), $humanizer_answers) && $mode == 'register')
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Are_u_human_wrong'];
}
if ($board_config['enable_confirm'] && $mode == 'register')
{
if (empty($HTTP_POST_VARS['confirm_id']))
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Confirm_code_wrong'];

if ( $mode == 'editprofile' )
{
$template->assign_block_vars('switch_edit_profile', array());
}

// Der Humanizer MOD
if ( $mode == 'register' )
{
$template->assign_block_vars('switch_register', array());
}
if ( ($mode == 'register') || ($board_config['allow_namechange']) )
{
$template->assign_block_vars('switch_namechange_allowed', array());
}
else
{
$template->assign_block_vars('switch_namechange_disallowed', array());
}
'SIGNATURE' => str_replace('<br />', "\n", $signature),
'HUMANIZER' => stripslashes($ruhuman),

'VIEW_EMAIL_YES' => ( $viewemail ) ? 'checked="checked"' : '',
'L_EMAIL_ADDRESS' => $lang['Email_address'],
'L_ARE_U_HUMAN' => $lang['Are_u_human'],
'L_ARE_U_HUMAN_EXPLAIN' => $lang['Are_u_human_explain'],

'L_CONFIRM_CODE_IMPAIRED' => sprintf($lang['Confirm_code_impaired'], '<a href="mailto:' . $board_config['board_email'] . '">', '</a>'),
L_CONFIRM_CODE_EXPLAIN' => $lang['Confirm_code_explain'],

'S_HUMANIZER_ATTRIBUTE' => $humanizer_attribute,
'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'],

Profile_add_body.tpl
<td class="row1"><span class="gen">{L_CONFIRM_CODE}: * </span><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
<td class="row2"><input type="text" class="post" style="width: 200px" name="confirm_code" size="6" maxlength="6" value="" /></td>
</tr>
<!-- END switch_confirm -->
<!-- BEGIN switch_register -->
<tr>
<td class="row1"><span class="gen">{L_ARE_U_HUMAN} *</span><br /><span class="gensmall">{L_ARE_U_HUMAN_EXPLAIN}</span></td>
<td class="row2">
<input type="text" name="{S_HUMANIZER_ATTRIBUTE}" class="post" style="width: 100px" size="10" maxlength="15" value="{HUMANIZER}" />
</td>
</tr>
<!-- END switch_register -->
<tr>
<td class="catSides" colspan="2" height="28">&nbsp;</td>
</tr>
<tr>
<th class="thSides" colspan="2" height="25" valign="middle">{L_PROFILE_INFO}</th>
</tr>
<tr>
lang_main.php
$lang['Session_invalid'] = 'Invalid Session. Please resubmit the form.';

//
// That's all, Folks!
// -------------------------------------------------
// The humanizer MOD
$lang['Are_u_human'] = 'Are you human?';
$lang['Are_u_human_explain'] = 'Sorry, but this stupid question shall keep away the bots from this forum. Please type your answer in the following text field.';
$lang['Are_u_human_wrong'] = 'Sorry, but the "humanizer" question must be answered correctly.';
// possible humanizer answers - only use this syntax:
$lang['humanizer_answers'] = array('yes', 'jes', 'yo');
?>
Underhill
Registered User
Posts: 154
Joined: Tue Sep 27, 2005 1:54 pm

Re: The humanizer

Post by Underhill »

Hi,
StuGa wrote: ...
So maybe try it. >> http://forum.Panic-Escape.de
...
everything looks fine now..

Reg.
Underhill
batlh ghajbe' De'wI'mey!
cluckeyo
Registered User
Posts: 9
Joined: Sat Nov 13, 2004 4:50 pm
Location: Sharp, Texas
Contact:

Re: The humanizer

Post by cluckeyo »

I am running version 2.0.18. I want to try out this mod on it.

when i got to profile_add_body.tpl, I hit a snag. I combed that file 5 times but could not find:

<!-- END switch_confirm -->

so i have been unable to modify that file. Is there somewhere else I can place the code that goes with that line? It reads as follows:

#
#-----[ AFTER, ADD ]------------------------------------------------------------
#

<!-- BEGIN switch_register -->
<tr>
<td class="row1"><span class="gen">{L_ARE_U_HUMAN} *</span><br /><span class="gensmall">{L_ARE_U_HUMAN_EXPLAIN}</span></td>
<td class="row2">
<input type="text" name="{S_HUMANIZER_ATTRIBUTE}" class="post" style="width: 100px" size="10" maxlength="15" value="{HUMANIZER}" />
</td>
</tr>
<!-- END switch_register -->


Thanks for your suggestions!
Carol L. O'Connor (cluckeyo)
Underhill
Registered User
Posts: 154
Joined: Tue Sep 27, 2005 1:54 pm

Re: The humanizer

Post by Underhill »

Hi,

please consider an update to the latest version - Or show me the the path to your "profile_add_body.tpl" (as a pm if you want)..

Reg.
Underhill
batlh ghajbe' De'wI'mey!
dazed_uk
Registered User
Posts: 128
Joined: Sat Nov 22, 2003 10:02 pm

Re: The humanizer

Post by dazed_uk »

just installed it, but getting this error when going to the register page.
Parse error: parse error, unexpected $ in /pub/home/dares79/htdocs/forum/includes/usercp_register.php on line 1215
any help/ideaS?
cheers
Underhill
Registered User
Posts: 154
Joined: Tue Sep 27, 2005 1:54 pm

Re: The humanizer

Post by Underhill »

Hi,

double check your changes in "usercp_register.php"...

Reg.
Underhill
batlh ghajbe' De'wI'mey!
User avatar
Elitzur
I've Been Banned!
Posts: 323
Joined: Sat Sep 15, 2007 7:49 am
Location: Europe, UK.
Contact:

Re: The humanizer

Post by Elitzur »

This mod is a video..... can anyone give me the link to download it? please???
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: The humanizer

Post by diabolic.bg »

Open video with notepad. ;)
User avatar
Elitzur
I've Been Banned!
Posts: 323
Joined: Sat Sep 15, 2007 7:49 am
Location: Europe, UK.
Contact:

Re: The humanizer

Post by Elitzur »

ok....
User avatar
Elitzur
I've Been Banned!
Posts: 323
Joined: Sat Sep 15, 2007 7:49 am
Location: Europe, UK.
Contact:

Re: The humanizer

Post by Elitzur »

That information was hard to do but i have done it, thanks very much mate!

http://www.xbox360-community.eu
Tull_Nick
Registered User
Posts: 1
Joined: Fri Sep 21, 2007 11:25 pm
Location: Stockholm, Sweden
Contact:

Re: The humanizer

Post by Tull_Nick »

Thanks for the mod. I'd installed it just now. Hope that neverending spam-problem is over.
User avatar
Elitzur
I've Been Banned!
Posts: 323
Joined: Sat Sep 15, 2007 7:49 am
Location: Europe, UK.
Contact:

Re: The humanizer

Post by Elitzur »

This MOD works fine W00T!
Its awsome.
Post Reply

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