Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

wpForo 1.x.x [Closed] How to add user location flag and have it show up under their picture when they are posting things.

4 Posts
3 Users
1 Reactions
1,037 Views
Posts: 1
 mhbd
Topic starter
(@mhbd)
New Member
Joined: 4 years ago

Please help me out!!!

Topic Tags
3 Replies
Tutrix
Posts: 1522
(@tutrix)
Noble Member
Joined: 5 years ago

@mhbd

you have to add the location to your used layout post.php
look here How do I ad Member Locations?

then you can add flags via css title attribute

css example for Germany

#wpforo #wpforo-wrap .wpfl-2 .wpforo-post .wpf-left .custom_field-2 a[title="Germany"]::before {
    background-image: url(/wp-content/uploads/foren-icons/germany_flag.png);
    background-repeat: no-repeat;
    display: inline;
    content: "";
    position: absolute;
    width: 24px;
    height: 15px;
    margin: 3px 0 0 -35px;
}
2 Replies
(@meibukan76)
Joined: 4 years ago

Eminent Member
Posts: 23

@tutrix is that something that needs to be done for each flag you want to be able to add? So, if there are 50 countries you want flags to show up for, you have to add the code and image for each?

Tutrix
(@tutrix)
Joined: 5 years ago

Noble Member
Posts: 1522

@meibukan76

yes, the css code has to be inserted for each flag