Ok... I try with a specific question:
I've understood that I've to edit the register.php file.
In particular I've added a new variable agreeinfo . In order to obligate the users to select all the choiches for the two fieldsets.
This is the code:
// ############################### start register ###############################
if ($_REQUEST['do'] == 'register')
{
$vbulletin->input->clean_array_gpc('r', array(
'agree' => TYPE_BOOL,
//############## the new variable agreeinfo
'agreeinfo' => TYPE_BOOL,
'year' => TYPE_UINT,
'month' => TYPE_UINT,
'day' => TYPE_UINT,
'options' => TYPE_ARRAY_BOOL,
'who' => TYPE_NOHTML,
));
// Variables that are used in templates
$agree =& $vbulletin->GPC['agree'];
$year =& $vbulletin->GPC['year'];
$month =& $vbulletin->GPC['month'];
$day =& $vbulletin->GPC['day'];
$url = $vbulletin->url;
// ############### I've added this in the line below AND !$vbulletin->GPC['agreeinfo']
if (!$vbulletin->GPC['agree'] AND !$vbulletin->GPC['agreeinfo'] )
{
eval(standard_error(fetch_error('register_not_agre ed', $vbulletin->options['forumhome'], $vbulletin->session->vars['sessionurl_q'])));
}
This code has to work with the buttons:
<input type="radio" name="agreeinfo" value="1" /><strong><phrase 1="$vboptions[bbtitle]">$vbphrase[read_agree_abide_by_rules]</phrase></strong>
<input type="radio" name="agreeinfo" value="0" /><strong><phrase 1="$vboptions[bbtitle]">$vbphrase[read_dontagree_abide_by_rules]</phrase></strong>
Even if I do this modification to the register.php nothing seems to change.
I don't know .php code... It's correct the code?
It's sufficient to edit the register.php file and to overwrite It... or I've to do something else?
Thank you
Up....
|