• Resolved vidderman

    (@vidderman)


    How do I reference the Country field value using PHP to get the name of the country a member used in their registration signup? Country is one of your default field choices so hopefully that is easy to reference.

    I want to reference that value in the Profile.tpl.php file. The part of the Profile which displays the member Avatar and username. In other words, that country value is displayed in a “Tab” and I would like it to display in the profile area where the avatar, cover image, username, and group name are displayed. That is all I need. I imagine that would require just referencing that field. I would be using it in the Default Group by the way. Thank you!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter vidderman

    (@vidderman)

    Just to be extra clear. I am only interested in displaying the country text value next to the profile name so it is part of the top profile. This is better than hiding it under a tab especially when the tab is not selected.

    Thread Starter vidderman

    (@vidderman)

    Are you seriously going to make me wait till Tuesday July 5th for an answer?

    I was planning to purchase the script this weekend and work on it while I have the time this Holiday weekend.

    Plugin Author ProfileGrid Support

    (@profilegrid0)

    Hello @vidderman,

    Apologies for keep you waiting for a response to your query. You may use the below code to retrive the country value :

    $pmrequests = new PM_request;
    $pmrequests->profile_magic_get_user_field_value(get_current_user_id(),’key’);

    Here the key is the ‘user_meta_key’ of the country field, which you can get from the country field settings from group fields. Please refer to the below steps to go to field settings:

    1) Login to the WordPress dashboard and go to the ProfileGrid menu.

    2) All Groups will be listed here, then go to the group Fields for a group.

    3) Next you will see the list of fields for that group. Edit a field and you will find the ‘user_meta_key’ of the field.

    You may display the country field value in the user profile, using the option “Display on Profile Page” in the field settings.

    I hope this helps, let us know if you have any other questions.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Are you seriously going to make me wait till Tuesday July 5th for an answer?

    @vidderman Please check your attitude. You are not anyone’s customer on this site and the developer does not owe you an answer at all.

    @profilegrid0 Enjoy the weekend and feel free to check out of the forums and not reply to anyone.

    Thread Starter vidderman

    (@vidderman)

    @profilegrid0 Thank you for your response and addressing my pre-sale question. I have purchased your bundle and will ask support questions at your dedicated support page for customers.

    @jdembowski “As you wish.” ?? Enjoy your weekend and feel free to check out of the forums and not reply to anyone. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Country Flags 2’ is closed to new replies.