Support Forum

Beginner question: New column and showing it on profile

JO JohnnyNT
JohnnyNT
Member

One  (i hope) simple question. I have add new column in “wp_sfmembers” table. Now i need to show data from this column on user profile (whe user go to his profile, and tab “Profile”). I figured out how, i went in: “simple-press/forum/profile/forms/sp-form-overview.php” and copy/pasted few lines, and that is ok.

 And finaly, my qestion: how to “call” data from that new column in  wp_sfmembers table? This is part of code that need to show that data: http://pastebin.com/VTmCrpbd  (look at WHAT HERE? part 😀 )

 I know that i can use standard MySQL command to show this data ( “SELECT new_column_name FROM blahblah…”), but is there other way, more convinient (i am not very familliar with object oriented php, thats why i ask)?

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Why did you not use the Custom Profile Fields plugin?

JO JohnnyNT
JohnnyNT
Member

Well, as i can see, it is only for adding some sort of input fields to profile (or i dont understand something). Never mind, tnx anyway, i will figure something out.

EDIT: i got it, it is $spProfileUser->new_column_name 

MP Mr Papa
Mr Papa
Member

nice…

but the custom profile fields can be displayed anywhere…  it just puts the field for users to enter their data on their profile… dont confuse data entry with display…

but glad you solved it!