hacking registration

Discussion forum for MOD Writers regarding MOD Development.
Locked
esj1234
Registered User
Posts: 3
Joined: Tue Sep 07, 2010 11:35 pm

hacking registration

Post by esj1234 »

I posted this in the mods forum but it seems to have vanished so I guess it was the wrong place. Forgive me if this is also the wrong place to ask this request.

I want to do something that should be trivial (3-6 hours worth) but I've spent much more than that and I'm still not done. All this time is been spent trying to figure out why PHPbb is giving me random errors. this is not our problem. It's adding one field to the registration screen, e-mailing that field, and throwing an error only if the field contains a wrong value.

What I'm looking for right now is someone I can pay to do this for me or walk me through what's wrong with my changes. How does one find a developer knowledgeable in PHP and PHP BB?
Drummer
Registered User
Posts: 199
Joined: Wed Jul 21, 2010 11:49 am

Re: hacking registration

Post by Drummer »

Post your code.
esj1234
Registered User
Posts: 3
Joined: Tue Sep 07, 2010 11:35 pm

Re: hacking registration

Post by esj1234 »

Drummer wrote:Post your code.
I figure out enough on my own that I got almost everything working. The last is this little tidbit

// send a mail message with data to goldmine
include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);

$messenger_gold = new messenger(false);

$messenger_gold->template('goldmail_template', $data['lang']);

$messenger_gold->to('x@y.c', 'goldmine mail import');

$messenger_gold->headers('Content-Type: application/x-gm-impdata');
$messenger_gold->headers('X-AntiAbuse: Board servername - ' . $config['server_name']);
$messenger_gold->headers('X-AntiAbuse: User_id - ' . $user->data['user_id']);
$messenger_gold->headers('X-AntiAbuse: Username - ' . $user->data['username']);
$messenger_gold->headers('X-AntiAbuse: User IP - ' . $user->ip);

// buildout template variables
$messenger_gold->assign_vars(array(
'COMPANYCODE' => htmlspecialchars_decode($data['companycode']),
'USERNAME' => htmlspecialchars_decode($data['username']),
'EMAIL' => htmlspecialchars_decode($data['email']),
));
$messenger_gold->send(NOTIFY_EMAIL);

this is inserted in ucp_register.php at roughly line 375 (section for sending e-mail messages). If I comment out the send method, everything runs and I get the appropriate completion to the registration process. If I comment, I get an invisible error to pop back into the registration screen.

In the morning, I can start hacking with the standard PHP mail function unless you have a really quick solution for the problems I'm having with this one.
Locked

Return to “[3.0.x] MOD Writers Discussion”