Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2001
Posts: 39
Member
Member
Offline
Joined: Jan 2001
Posts: 39
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 ]

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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


- Allen wavey
- What Drives You?
Joined: Jan 2001
Posts: 39
Member
Member
Offline
Joined: Jan 2001
Posts: 39
Then perhaps a higher string of profile fields (i.e. 91-98) would be better?

Joined: Jan 2001
Posts: 39
Member
Member
Offline
Joined: Jan 2001
Posts: 39
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.

Joined: Jan 2001
Posts: 39
Member
Member
Offline
Joined: Jan 2001
Posts: 39
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.

Sponsored Links
Joined: Jan 2001
Posts: 39
Member
Member
Offline
Joined: Jan 2001
Posts: 39
I'm still looking for help on this hack. Is anyone able to help me, please?

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
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 ?

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Jan 2001
Posts: 39
Member
Member
Offline
Joined: Jan 2001
Posts: 39
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.

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Sponsored Links
Joined: Jan 2001
Posts: 39
Member
Member
Offline
Joined: Jan 2001
Posts: 39
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.

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
well this is gonna help thanks jordo!

Joined: Jan 2001
Posts: 39
Member
Member
Offline
Joined: Jan 2001
Posts: 39
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







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

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
Joined: Sep 2000
Posts: 159
Member
Member
Offline
Joined: Sep 2000
Posts: 159
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?

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: Jan 2001
Posts: 39
Member
Member
Offline
Joined: Jan 2001
Posts: 39
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!


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 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 20240430)