senzacionale wrote: is it possible to ban this spam and is it posible that all mods will get email?
Oosterberg wrote: Is it possible to combine this mod with this one : http://www.phpbb.com/phpBB/viewtopic.php?t=375262
matt1206 wrote: Just installed the mod eith EasyMod, went on fine. Tested by trying to sign up and adding a url to profile information.....registration not gone through![]()
Very good mod
ITwizard wrote: I have a question.. how did you do this with Easy Mod?
Code: Select all
$template->assign_block_vars('switch_edit_profile', array());
}
only the
$template->assign_block_vars('switch_edit_profile', array());
without the closing curly brace
Code: Select all
$template->assign_block_vars('switch_edit_profile', array());
//----BEGIN Stop Spambot Registration MOD
if ( $mode == 'register' )
{
$template->assign_block_vars('switch_register', array());
$template->assign_vars(array(
'SPAMBOT_MESSAGE' => $lang['Spambot_message'],
'SPAMBOT_MESSAGE_EXPLAIN' => $lang['Spambot_message_explain'])
);
}
//----END Stop Spambot Registration MOD
if ($userdata['user_posts'] >= $cut_off)
{
$template->assign_block_vars('switch_edit_website', array());
}
breadtop wrote: so I put the code in like this:
Code: Select all
$template->assign_block_vars('switch_edit_profile', array()); //----BEGIN Stop Spambot Registration MOD if ( $mode == 'register' ) { $template->assign_block_vars('switch_register', array()); $template->assign_vars(array( 'SPAMBOT_MESSAGE' => $lang['Spambot_message'], 'SPAMBOT_MESSAGE_EXPLAIN' => $lang['Spambot_message_explain']) ); } //----END Stop Spambot Registration MOD if ($userdata['user_posts'] >= $cut_off) { $template->assign_block_vars('switch_edit_website', array()); }
Have I changed the code correctly?
Code: Select all
if ( $mode == 'editprofile' )
{
$template->assign_block_vars('switch_edit_profile', array());
if ($userdata['user_posts'] >= $cut_off)
{
$template->assign_block_vars('switch_edit_website', array());
}
}
What should I see if I attempt a non-bot registration, and what's the difference to look for (sorry if I'm being a bit dumb here).