UBB.Dev
Hey gang!

I have an idea I want to implement on my site but I am not understand the new code for UBB 6 as well as I did for UBB 5.

I want to have 8 additional profile fields which the members of my site can modify by editing their profile after registration. The settings will use an OPTION LIST with a drop down menu with the numbers 1-10 (see image below). These 8 additional fields, once submitted by the user, will update their profile.

[Linked Image]

I was thinking these 8 fields should be profile fields 41-48 in order to give UBB room to make additional profile fields on their own (or perhaps an even higher #).

I want these additional fields to display in the author's column of a post/reply.

Is someone willing to help me? It would mean a lot to me if you could! Thanks in advance!

[ May 21, 2001 05:10 PM: Message edited by: Seibertron ]
Not sure if I have time to help, but I believe starting with 6.1 they'll be reserving the first 50 fields for base ubb functions. smile
Then perhaps a higher string of profile fields (i.e. 91-98) would be better?
The image below is how I would want the final product to look when someone posts:

[Linked Image]

The numbers in the author's column are what I'm looking for.
is anyone able to help me on this hack? I just need some guidance or to be pointed in the direction of another additional fields hack so that I can make mine work. Thanks.
I'm still looking for help on this hack. Is anyone able to help me, please?
Well lemme see .. you want when updating your profile those will be in there? or they confirm the identity and its like a second profiel page.. or what ?
ill look at the files this afternoon and let you know how to add the new profile data. i did this before for a few (unreleased, unfinished) mods, its not too difficult.
Yes, I want the extra settings (i.e. the tech specs in this case) to be updated through "edit my profile". Then the results of the extra field(s) will be displayed in the author column of a post/reply.
k, here ya go. this is a general guidline/instructions for adding new profile fields that will be displayed under the username and member # on each post. if you have any questions problems, just post here and ill help out.

http://www.jordodesigns.com/newProfileFields.txt
Thank you very much Jordo. You rock!

I'm working on the hack still. There's a few things I'll need help with and a few bugs I'm working out as far as the code goes but I'll get back with you shortly.
well this is gonna help thanks jordo!
I can't get the added profile fields to print when you go back to your edit your profile.

I have tried what you gave me, but it doesn't seem to work. The option drop down menu doesn't display when I use the code you gave me. Here's the variable format: $tech_spec = $user_profile[91]

Here's the Option menu code for one of the added profiles:

Strength
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




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

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.
I tried your modifications and this is what I got:

Syntax error at ubb_lib_posting.cgi line 687, near "$rate_list" syntax error at ubb_lib_posting.cgi line 775, near "}"

Can you please help me fix that?
whoops, i forgot a ; in ubb_lib_posting.cgi

this :

$custom_user_fields = "Age:$user_profile[30]"

should be this:

$custom_user_fields = "Age:$user_profile[30]";

thatll fix your problem ellen
looks good to me Seibertron. i didnt realize that you wanted to show what the current cpec thay had was. looks like you got it set up real well smile
Like I said, Jordo ... YOU ROCK man!!! I'd give you 5 stars, but I can't because you have public display of ratings turned off. Thank you again for helping me out ... this hack encouraged me to install Who's Online and Live Chat last night as well. I've been a busy webmaster!
© UBB.Developers