[RC1] Registration Auth Code (RAC)

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.
sikenward
Registered User
Posts: 10
Joined: Sun Jun 24, 2007 5:22 pm

Re: [RC] Registration Auth Code (RAC)

Post by sikenward »

I have modified usercp_register.php and lang_main.php, but when I load profile_add_body.tpl into notepad it displays without new lines in a bit of a mess.
It looks as if a small rectangle appears where lines should end.
I can locate the place where the extra code is to be added and paste it in but the appearance of that section of code is then diferent from the main code.
Any advice?
User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29334
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Re: [RC] Registration Auth Code (RAC)

Post by Marshalrusty »

Use Wordpad instead; Notepad does not handle formatting very well. If you want a slightly better tool, I suggest Notepad++
🇺🇦 Made in Ukraine, exported to the USA 🇺🇸

Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs
ColoradoGuy
Registered User
Posts: 5
Joined: Fri Jun 24, 2005 10:18 pm
Location: Buena Vista, Colorado
Contact:

Re: [RC] Registration Auth Code (RAC)

Post by ColoradoGuy »

WOW! It works, and I've had no spam at all today.

Thank you! :)

-Steve
Last edited by ColoradoGuy on Wed Jun 27, 2007 6:49 pm, edited 4 times in total.
csheakos
Registered User
Posts: 8
Joined: Tue Jun 26, 2007 3:22 pm

Re: [RC] Registration Auth Code (RAC)

Post by csheakos »

My boards are internal to my company. I'm looking and the profile_add_body.tpl and to me it looks fine. Here is the chunk from around where I added; if you see anything that looks wrong please let me know.

Code: Select all

<!-- BEGIN switch_edit_profile -->
	<tr> 
	  <td class="row1"><span class="gen">{L_CURRENT_PASSWORD}: *</span><br />
		<span class="gensmall">{L_CONFIRM_PASSWORD_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="password" class="post" style="width: 200px" name="cur_password" size="25" maxlength="32" value="{CUR_PASSWORD}" />
	  </td>
	</tr>
	<!-- END switch_edit_profile -->
	<tr> 
	  <td class="row1"><span class="gen">{L_NEW_PASSWORD}: *</span><br />
		<span class="gensmall">{L_PASSWORD_IF_CHANGED}</span></td>
	  <td class="row2"> 
		<input type="password" class="post" style="width: 200px" name="new_password" size="25" maxlength="32" value="{NEW_PASSWORD}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_CONFIRM_PASSWORD}: * </span><br />
		<span class="gensmall">{L_PASSWORD_CONFIRM_IF_CHANGED}</span></td>
	  <td class="row2"> 
		<input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="{PASSWORD_CONFIRM}" />
	  </td>
	</tr>
    <!-- Begin switch_user_logged_out -->
    <tr>
      <td class="row1"><span class="gen">{L_RAC_CODE}: * </span><br />
        <span class="gensmall">{L_RAC_LOCATION}</span></td>
      <td class="row2">
	    <input type="text" class="post" style="width: 200px" name="RAC" size="25" maxlength="32" />
      </td>
    </tr>
    <!-- END switch_user_logged_out -->
	<!-- Visual Confirmation -->
	<!-- BEGIN switch_confirm -->
	<tr>
		<td class="row1" colspan="2" align="center"><span class="gensmall">{L_CONFIRM_CODE_IMPAIRED}</span><br /><br />{CONFIRM_IMG}<br /><br /></td>
	</tr>
	<tr> 
	  <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 -->
	<tr> 
csheakos
Registered User
Posts: 8
Joined: Tue Jun 26, 2007 3:22 pm

Re: [RC] Registration Auth Code (RAC)

Post by csheakos »

DOH!!!!

I just found it after posting. I didnt have my BEGIN in all caps. Sorry for the trouble and thanks for the mods.
csheakos
Registered User
Posts: 8
Joined: Tue Jun 26, 2007 3:22 pm

Re: [RC] Registration Auth Code (RAC)

Post by csheakos »

Now that I actually went to test it I'm not having any luck. The box shows up, I enter info, click register, and a blank page appears and no user gets created. Not too sure where to go from here. Ideas? thanks
sikenward
Registered User
Posts: 10
Joined: Sun Jun 24, 2007 5:22 pm

Re: [RC] Registration Auth Code (RAC)

Post by sikenward »

I took a deep breath and installed the MOD. It seems to be installed without any problems.
Now let's see if it stops the spambots...

Many thanks for your help.
tom56700
Registered User
Posts: 13
Joined: Mon Apr 24, 2006 8:13 pm

Re: [RC] Registration Auth Code (RAC)

Post by tom56700 »

I attempted to install this mod. I'm sure I did everything required but now I get this message:

Parse error: parse error, unexpected '}' in xxxxxxxxx /phpBB2_qf/includes/template.php(127) : eval()'d code on line 73


I never modified this file so not sure what is going on:



Here is my includes/template.php file: line 58-98:

function Template($root = ".")
{
$this->set_rootdir($root);
}

/**
* Destroys this template object. Should be called when you're done with it, in order
* to clear out the template data so you can load/parse a new template set.
*/
function destroy()
{
$this->_tpldata = array();
}

/**
* Sets the template root directory for this Template object.
*/
function set_rootdir($dir)
{
if (!is_dir($dir))
{
return false;
}

$this->root = $dir;
return true;
}

/**
* Sets the template filenames for handles. $filename_array
* should be a hash of handle => filename pairs.
*/

Thanks is advance

Tom
csheakos
Registered User
Posts: 8
Joined: Tue Jun 26, 2007 3:22 pm

Re: [RC] Registration Auth Code (RAC)

Post by csheakos »

Read my post a few above; it looks like the same error I was getting. My problem was I didnt have my BEGIN in all caps for profile_add_body.tpl mods. I think your problem will be in there either way though.



Any have any idea why the registration screen comes up fine, but when I actually click to register I get a blank screen and no user created?
tom56700
Registered User
Posts: 13
Joined: Mon Apr 24, 2006 8:13 pm

Re: [RC] Registration Auth Code (RAC)

Post by tom56700 »

Figured it out wAS MISSING A < ;-)
csheakos
Registered User
Posts: 8
Joined: Tue Jun 26, 2007 3:22 pm

Re: [RC] Registration Auth Code (RAC)

Post by csheakos »

Cool, I managed to get mine figured out finally too. A good day for all.
njguy
Registered User
Posts: 1
Joined: Thu Jun 28, 2007 3:34 pm

Re: [RC] Registration Auth Code (RAC)

Post by njguy »

This mod was simple, even for a non-programmer like me, and IT WORKS! After dozens of bot registrations a day for years, I now don't have any. RAC should be part of phpBB. With the OCR bots, visual confirmation did absolutely nothing to stop them. RAC works, and you can use a simple code word that all the members of your group will know, but the bots will never guess. Thanks for the great mod!
sikenward
Registered User
Posts: 10
Joined: Sun Jun 24, 2007 5:22 pm

Re: [RC] Registration Auth Code (RAC)

Post by sikenward »

24 hours now and not a single spam user - I was getting 20+ a day!
Thanks Marshalrusty for a fantastic MOD and also the help in getting it installed.
User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29334
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Re: [RC] Registration Auth Code (RAC)

Post by Marshalrusty »

I'm very glad that it is working well for all of you :)
🇺🇦 Made in Ukraine, exported to the USA 🇺🇸

Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs
tom56700
Registered User
Posts: 13
Joined: Mon Apr 24, 2006 8:13 pm

Re: [RC] Registration Auth Code (RAC)

Post by tom56700 »

Yesterday my 2 boards got invaded with bot registrations For 3 hours I got one every 5 min. After installing the mod nothing...zero. This is truly a useful mod.

How can I get on this creators email list? I want to know when new great stuff is being released!

Tom
Post Reply

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