Notifications
Clear all

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

4 Posts
3 Users
1 Likes
539 Views
mhbd
Posts: 1
 mhbd
Topic starter
(@mhbd)
New Member
Joined: 2 years ago

Please help me out!!!

Topic Tags
3 Replies
Tutrix
Posts: 827
(@tutrix)
Noble Member
Joined: 3 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;
}
Reply
2 Replies
meibukan76
(@meibukan76)
Joined: 2 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?

Reply
Tutrix
(@tutrix)
Joined: 3 years ago

Noble Member
Posts: 827

@meibukan76

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

Reply