Get a users field value?

12 years 10 months ago #82579 by Guevara
Get a users field value? was created by Guevara
Hello All!

(and sorry for my bad english!)

How can I get a field value from a user to display it in a special placement?

for example:
The user has a field for his age. but I don´t want to display the age in a tab. I want to display the age directly after the profile headline like "Jane´s Profile Page (20 Year´s old)". I also want to display in the profile headline the online status and the gender.

And a second topic: I have a radio button for the gender with the values "female" and "male" in registration/profile edit page. In the profile, I want to display the gender by icons instead of text. How is this possible?

Thanks for your advice!

Please Log in to join the conversation.

12 years 10 months ago #82596 by Deinticker

Please Log in to join the conversation.

12 years 10 months ago #82662 by Guevara
Replied by Guevara on topic Re:Get a users field value?
thanks for your tip...

but the fields I want to display in the headline are a little bit specific.

The line for the user profile headline is in the cb.core.php

Its $return = '<div class="contentheading" id="cbProfileTitle">' . sprintf( $title, $name ) . "</div>\n";

Now I can write something like:
$return = '<div class="contentheading" id="cbProfileTitle">' . sprintf( $title, $name ) . " $user->cb_gender $user->cb_geburtsdatum $user->userOnlineLastTime </div>\n";

to get the gender in headline.

BUT:
I want to display these 3 informations in the headline in a specific way:

1. The Gender, but I don´t want the text string, I want to show up an icon.
2. The Age: It´s a date field (the birthday), but I don´t want to display the birthday, I want to display the age (calculated by the birthday)
3. The Online Status: This isn´t saved in the database. its a calculation of the lastvisittime I think.

Any suggestions?

Please Log in to join the conversation.

12 years 10 months ago #82760 by Guevara
Replied by Guevara on topic Re:Get a users field value?
Anyone a suggestion?

for the age, I can write something like:

test$ = sprintf(_UE_AGE_YEARS, $user->cb_birthday);

return = '<div class="contentheading" id="cbProfileTitle">' . sprintf( $title, $name ) . " $user->cb_gender $test</div>\n";

So, I get the birthday in the titel...

But how I can say: Get the display_by value and print the birthday by age???

Please Log in to join the conversation.

12 years 10 months ago #82957 by Guevara
Replied by Guevara on topic Re:Get a users field value?
really no one can help me?

It cannot be so complicated to display the birtday by age???

Please Log in to join the conversation.

12 years 9 months ago #83923 by Guevara
Replied by Guevara on topic Re:Get a users field value?
no one have an idea???

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.177 seconds

Facebook Twitter LinkedIn