 |
 |
 |
 |
#115566 - 08/26/03 06:10 PM
Re: Making customfield3 into a dropdown?
|
Master Hacker
Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
|
new gameplan, now that I looked at the file FIND: ===== if (($vars_registration{custom4_field_use} ne 'DEL') && ($vars_registration{customfield3} ne '')) {
if ($vars_registration{custom3_field_use} eq 'REQ') {
$B1 = '<b>';
$B2 = '</b>';
} else {
$B1 = '';
$B2 = '';
}ADD AFTER: ========== if($user_profile[18] eq 'Male') {
my $maleselect = qq! selected="selected"!;
} else {
my $maleselect = qq! !;
}
if($user_profile[18] eq 'Female') {
my $femaleselect = qq! selected="selected"!;
} else {
my $femaleselect = qq! !;
}
if($user_profile[18] eq '') {
my $femaleselect = qq! selected="selected"!;
} else {
my $femaleselect = qq! !;
}THEN FIND: ========== <input type="text" name="customfield3" value="$user_profile[18]" size="35" maxlength="80" /> AND REPLACE IT WITH: ==================== <select name="customfield3">
<option>$vars_wordlets_mods{gender_select}</option>
<option>$vars_wordlets_mods{gender_selector}</option>
<option value="Male" $maleselect>$vars_wordlets_mods{gender_male}</option>
<option value="Female" $femaleselect>$vars_wordlets_mods{gender_female}</option>
</select>try that
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#115567 - 08/26/03 06:29 PM
Re: Making customfield3 into a dropdown?
|
Wizard
Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#115569 - 09/06/03 05:31 AM
Re: Making customfield3 into a dropdown?
|
Wizard
Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#115571 - 09/06/03 11:19 AM
Re: Making customfield3 into a dropdown?
|
Master Hacker
Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
|
ok, you just asked for public_register_form.pl so here find:
$vars_registration{customfield3}, "", "customfield3", "text", 35, 80, 0);
replace with:
$vars_registration{customfield3}, "", "customfield3", "radio", { Male => $vars_wordlets_mods{male_option}, Female => $vars_wordlets_mods{female_option} }, [qw(Male Female)], Male);
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|