Display user country flag
I would like to show country information from users in our forums next to their name.
The country information is taken from the profile fields.
Is to show the country name directly from the profile field data.
I’ve almost got this done by putting this snippet in the loop-single-reply.php
<div id="country"> <?php echo bp_member_profile_data('field=country'); ?></div>
However this displays the country of the user that started the topic, not who made the reply.
This would be a bit more difficult but preferred. And that is showing a country flag.
I’m stuck on how to continue. Other topics about this are super outdated and don’t provide an answer. Any suggestions?
- You must be logged in to reply to this topic.