Previous Thread
Next Thread
Print Thread
Rate Thread







#######################
#######################

I'm sure there's a better way to write the above code so I'm open to further suggestions and/or ideas. It was the only way I could get it to work for the time being.

This code was additional to the above *.txt hack file.
Joined: Jan 2001
Posts: 39
Member
Member
Offline
Joined: Jan 2001
Posts: 39
In ubb_profile.cgi, I added the following text after
# request for user's own profile
$in{u} = $user_number;

There were 8 additional fields that I added. Profile lines 91-98.

#######################
#######################
# calibrate tech_spec1
$tech_spec = $user_profile[91];
foreach (qw(1 2 3 4 5 6 7 8 9 10)){
$select_list1{$_}='';
}
$select_list1{$tech_spec} = 'SELECTED';

# calibrate tech_spec2
$tech_spec = $user_profile[92];
foreach (qw(1 2 3 4 5 6 7 8 9 10)){
$select_list2{$_}='';
}
$select_list2{$tech_spec} = 'SELECTED';

# calibrate tech_spec3
$tech_spec = $user_profile[93];
foreach (qw(1 2 3 4 5 6 7 8 9 10)){
$select_list3{$_}='';
}
$select_list3{$tech_spec} = 'SELECTED';

# calibrate tech_spec4
$tech_spec = $user_profile[94];
foreach (qw(1 2 3 4 5 6 7 8 9 10)){
$select_list4{$_}='';
}
$select_list4{$tech_spec} = 'SELECTED';

# calibrate tech_spec5
$tech_spec = $user_profile[95];
foreach (qw(1 2 3 4 5 6 7 8 9 10)){
$select_list5{$_}='';
}
$select_list5{$tech_spec} = 'SELECTED';

# calibrate tech_spec6
$tech_spec = $user_profile[96];
foreach (qw(1 2 3 4 5 6 7 8 9 10)){
$select_list6{$_}='';
}
$select_list6{$tech_spec} = 'SELECTED';

# calibrate tech_spec7
$tech_spec = $user_profile[97];
foreach (qw(1 2 3 4 5 6 7 8 9 10)){
$select_list7{$_}='';
}
$select_list7{$tech_spec} = 'SELECTED';

# calibrate tech_spec8
$tech_spec = $user_profile[98];
foreach (qw(1 2 3 4 5 6 7 8 9 10)){
$select_list8{$_}='';
}
$select_list8{$tech_spec} = 'SELECTED';
#######################
#######################

This is the final text I used in public_edit_profile.pl for the 8 additional profile fields (91-98):

#######################
#######################


TECH SPEC SETTINGS


Strength

Intelligence

Speed

Endurance

Rank

Courage

Firepower

Skill
Sponsored Links
Entire Thread
Subject Posted By Posted
additional profile fields hack (different than other hacks) Seibertron 05/22/2001 12:08 AM
Re: additional profile fields hack (different than other hacks) AllenAyres 05/22/2001 12:11 AM
Re: additional profile fields hack (different than other hacks) Seibertron 05/22/2001 12:14 AM
Re: additional profile fields hack (different than other hacks) Seibertron 05/22/2001 12:23 AM
Re: additional profile fields hack (different than other hacks) Seibertron 05/22/2001 4:14 PM
Re: additional profile fields hack (different than other hacks) Seibertron 05/31/2001 5:28 PM
Re: additional profile fields hack (different than other hacks) Tech-Ni-Kal 06/01/2001 6:08 PM
Re: additional profile fields hack (different than other hacks) jordo 06/01/2001 7:36 PM
Re: additional profile fields hack (different than other hacks) Seibertron 06/01/2001 8:14 PM
Re: additional profile fields hack (different than other hacks) jordo 06/01/2001 11:04 PM
Re: additional profile fields hack (different than other hacks) Seibertron 06/02/2001 1:46 AM
Re: additional profile fields hack (different than other hacks) Tech-Ni-Kal 06/02/2001 3:39 AM
Re: additional profile fields hack (different than other hacks) Seibertron 06/02/2001 3:51 AM
Re: additional profile fields hack (different than other hacks) Seibertron 06/02/2001 6:17 AM
Re: additional profile fields hack (different than other hacks) Ellen 06/02/2001 3:10 PM
Re: additional profile fields hack (different than other hacks) jordo 06/02/2001 9:58 PM
Re: additional profile fields hack (different than other hacks) jordo 06/02/2001 10:04 PM
Re: additional profile fields hack (different than other hacks) Seibertron 06/02/2001 10:48 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)