Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2007, 01:25 PM
Nik_s3 Nik_s3 is offline
 
Join Date: Oct 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Add more than one field in registration phase...help me please

Hi. I'm trying to add more than one filedset in the registratione phase (like in the image that I've uploaded).

Every field will contain something different:

1th Forum Rules
2nd Privacy informative
3rd Sensible Data Treatment
ecc...

What I hope to do is that:

every field must have two options (accept VS don't accept) (like in the image...)

and the rigistration will continue only if all accept checkbox are checked.

At this moment I've understood how replicate filedsets but I don't know ho to set up another checkbox.


This is the code for the checkbox but I don't know how to change phrase read_agree_abide_by_rules...
HTML Code:
<div><label for="cb_rules_agree"><input type="checkbox" name="agree" id="cb_rules_agree" value="1" /> <strong> <phrase 1="$vboptions[bbtitle]">$vbphrase[read_agree_abide_by_rules]</phrase></strong></label></div>
Better: I don't know how to create another variable to insert in this code (that rapresents: I don't accept).

Moreover I don't know how to join all the chosen of the (more than one) fieldsets:
in this condition, in order to proceed to the registration, is sufficiet to check only one "I accept the rules". I want that a new user is able to proceed only if He checks all the "I accept" options.

Sorry for my english and thank you.
Attached Images
File Type: jpg Immagine (Large).jpg (53.0 KB, 0 views)
Reply With Quote
  #2  
Old 01-20-2007, 01:30 PM
Nik_s3 Nik_s3 is offline
 
Join Date: Oct 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mmmm... I've forgotten one thing:

I've replicated the checkbox copying more than one time that code. I've set value="1" to value="0". In this case someone that checks this box couldn't proceed.

This in the link: http://forum.audirsclub.it/register.php
Reply With Quote
  #3  
Old 01-21-2007, 09:54 AM
Nik_s3 Nik_s3 is offline
 
Join Date: Oct 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'va created one table with two fileds and their own choices:

Accept...
Dont' accept

The only problem now is this:

obligate the users to check all the checkboxs. At this moment It's sufficient to check just one checkbox (with Accept option) and the user can continue the registration.
Attached Images
File Type: jpg NewPoint.jpg (57.2 KB, 0 views)
Reply With Quote
  #4  
Old 01-22-2007, 09:09 PM
Nik_s3 Nik_s3 is offline
 
Join Date: Oct 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Reply With Quote
  #5  
Old 01-24-2007, 12:34 PM
Nik_s3 Nik_s3 is offline
 
Join Date: Oct 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No one wants to help me?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04120 seconds
  • Memory Usage 2,221KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (2)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete