bbAntiSpam: Discuss how to stop web spam

The forum is retired.

bbAntiSpam Forum Index - Textual Confirmation - usercp_register.php - unable to locate code to replace..

Author Message
POLOMINT
Guest





Posted: Sat Jan 27, 2007 10:17 am    Post subject: usercp_register.php - unable to locate code to replace..  

Hi there can you help me?

I'm inplementing this solution as i think a great techique, anyway..

the instrucitons say:

Quote:
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'USERNAME' => isset($username) ? $username : '',
'CUR_PASSWORD' => isset($cur_password) ? $cur_password : '',


But i'm unable to locate that in my usercp_register.php file.. any recommendations to were to add the line:

Quote:
#-----[ REPLACE WITH ]------------------------------------------
#
tc_hook_template($mode, $template, $s_hidden_fields, $tc_question);
$template->assign_vars(array(
'TEXTUAL_CONFIRMATION_QUESTION' => isset($tc_question) ? $tc_question : '',
'L_TEXTUAL_CONFIRMATION_EXPLAIN' => isset($lang['tc_explain']) ? $lang['tc_explain'] : '',
'USERNAME' => isset($username) ? $username : '',
'CUR_PASSWORD' => isset($cur_password) ? $cur_password : '',


Thanks..

Version of PHPBB is 2.0.21

POLO
Guest






Posted: Sat Jan 27, 2007 12:15 pm    Post subject:  

Figured it out,

I was editing the local file which happened to be offsite to the remote file so i was editing an old backup henc the code wasn't there..

... oh well thanks great MOD BTW .. and great place St. Petersberg as well power cut last night wasn't there? i lost a server last cos of it..

POLO
Guest






Posted: Sat Jan 27, 2007 1:40 pm    Post subject:  

An the same note i also found a work around if anyonw else hasn't done it.. if your not able to locate that line to edit then search for:

Quote:
template->assign_vars(array(
'USERNAME' => $username,
'CUR_PASSWORD' => $cur_password,


and replace as normal with:

Quote:
tc_hook_template($mode, $template, $s_hidden_fields, $tc_question);
$template->assign_vars(array(
'TEXTUAL_CONFIRMATION_QUESTION' => isset($tc_question) ? $tc_question : '',
'L_TEXTUAL_CONFIRMATION_EXPLAIN' => isset($lang['tc_explain']) ? $lang['tc_explain'] : '',
'USERNAME' => isset($username) ? $username : '',
'CUR_PASSWORD' => isset($cur_password) ? $cur_password : ''



I've tested it and it works a treat... just figure i'd share, thanks once a again simple yet extremely affective no spam for over an hour nice

POLO
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Sun Jan 28, 2007 4:34 am    Post subject:  

Yes, the advice is right. Thanks for sharing it!
_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!

Ok.