• Resolved vidderman

    (@vidderman)


    Is it possible to display a country flag based on the location that a member enters into their registration form. My community is a global one and I feel this is a useful part of the profile to have.

    I know you have a plugin for a mapping of members but I don’t that indicates geography when someone reviews a member’s profile

    Also would it be possible to take a value from a registration form questing and use it to customize the member profile page by using that value to link to an flag image. Example: Someone fills out their country as United States but the value in the form is “US”. Perhaps that value is used to embed an image of a flag named “US.png” that could be added to the html or php of the member profile.

    Thanks.

    • This topic was modified 2 years, 8 months ago by vidderman.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter vidderman

    (@vidderman)

    I think I have progressed to just needing the PHP CODE to display the country of a user in the profile section of the profile page. I believe that’s all I will need to reference the names of image flags in an image folder.

    Plugin Author ProfileGrid Support

    (@profilegrid0)

    Hello @vidderman,

    We have noted this requirement and forwarded it to our team for inclusion in our future updates.

    Let us know if you need any other assistance.

    Thread Starter vidderman

    (@vidderman)

    Thank you for your thoughtful reply. When it comes to the last sentence “Let us know if you need any further assistance” I am happy to let you know.

    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 (perhaps it uses a slug?)

    This is all I would need to do it myself. 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!

    Thread Starter vidderman

    (@vidderman)

    Perhaps this slips under the radar because it is in a post marked resolved hence Country Flags 2

    • This reply was modified 2 years, 8 months ago by vidderman.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Country Flag’ is closed to new replies.