View Single Post
  #9  
Old 09-23-2006, 09:28 PM
racefan20's Avatar
racefan20 racefan20 is offline
Major General
 
Join Date: Jul 2005
Location: Concord, NC
Posts: 2,350
Default Re: Stop (Most) Spam Bot Registrations on phpBB

Here ya go, Trish!

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
#
$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#');
$unhtml_specialchars_replace = array('>', '<', '"', '&');

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

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

#
#-----[ FIND ]------------------------------------------
#
if ( !($row = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql);
}
$user_id = $row['total'] + 1;

#
#-----[ AFTER, ADD ]------------------------------------------
#
if( $website != '' )
{
die();
}

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_WEBSITE}:</span></td>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN only_show_notbot -->

#
#-----[ FIND ]------------------------------------------
#
<input type="text" class="post" style="width: 200px" name="website" size="25" maxlength="255" value="{WEBSITE}" />
</td>
</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- END only_show_notbot -->

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
__________________
My NASCAR Forum
Reply With Quote