The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Ok... I'll try to find hel here... problem with code in register.php
Ok... I'll try to make a question at the higher possible level...
The problem is that I'm trying to insert a new variable in register.php here: // ############################### start register ############################### if ($_REQUEST['do'] == 'register') { $vbulletin->input->clean_array_gpc('r', array( 'agree' => 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; if (!$vbulletin->GPC['agree']) { eval(standard_error(fetch_error('register_not_agre ed', $vbulletin->options['forumhome'], $vbulletin->session->vars['sessionurl_q']))); } I've created this variable ('agreeinfo') in order to insert It in the If instruction (in AND with 'agree'). The problem is that: nothing happens and, even If I make modifications (I've tried to cut the 'agree' variable), the registration form works CORRECTLY. I've checked If the file is uploaded with my code... and It's all ok. What could be the problem? Thank you |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|