bonelifer wrote: Or you could email them the passcode.
Well I don't know their e-mail addresses... and they'd be suspicious of me collecting them.
Ah well it doesn't matter, it's just too easy to fire up phpmyadmin
Line 50, function show_coppa()
Line 51, {$invite_code, $email
Code: Select all
function show_coppa($invite_code, $email)
{
global $userdata, $template, $lang, $phpbb_root_path, $phpEx;
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Reg_agreement'] = '
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<FONT COLOR=RED><CENTER><B>ATTENTION! REGISTRATION TO THIS FORUM IS BY INVITATION ONLY!<BR />If you have not received an invitation containing an invitation code then you will not be able to register!</B></CENTER></FONT><BR /><BR />
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Code: Select all
if (!empty($board_config['invite_only']))
{
$template->assign_block_vars('switch_invitation_only', array());
// should you need the negative:$template->assign_block_vars('switch_invitation_free", array());
}
Code: Select all
$template->assign_vars(array(
...
'BOARD_INVITATION_ONLY'=> $lang['Invitation_info'],
...
Code: Select all
<!-- BEGIN switch_invitation_only -->
<FONT COLOR=RED><CENTER><B>ATTENTION! REGISTRATION TO THIS FORUM IS BY INVITATION ONLY!<BR /> {BOARD_INVITATION_ONLY}
</B></CENTER></FONT><BR /><BR />
<!-- END switch_invitation_only-->
Code: Select all
$agreement_text = lang['Reg_agreement'];
if (!empty($board_config['invite_only']))
{
$agreement_text = lang[Invitation_info'];
}
$template->assign_vars(array(
...
'AGREEMENT' => $agreement_text ,
"...
);
everythin works fine except when i list the invites it does not show "User who used this invite" and it is not writing data to the invite_users table but i still get a list. why would that be? i dont like postgreSQL...Argg!
an you more than one email address in the invite, if so what character is used to seperate the email addresses?
Excellent question. I have little experience with Postgres. However, the invite_users table only responsibility is the "users who used this invite" column.
Is the "uses" number decremented correctly? Because it sounds a little like the database update part doesn't get executed for some reason.
Code: Select all
$emailer->reset();
}
$db->sql_freeresult($result);
}