MyBB Community Forums

Full Version: Postbit Country Flags
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It would be most good to have a simple country flag icon appear in the users postbit area depending on what country they are from. I tried searching the site and found none and find that a bit sad heh.
This maybe: http://mods.mybb.com/view/ip2flag
You need to change compatibility. Change "14*" to "16*".
Thanks!
(2011-06-03, 10:48 PM)Aries-Belgium Wrote: [ -> ]This maybe: http://mods.mybb.com/view/ip2flag
You need to change compatibility. Change "14*" to "16*".

CAUTION: If you are going to use this, you are probably adding a nasty load on your forum pages. It searches the IP from each postbit, and if you've 10 posts on each page then it'll execute 10 queries and 10 fetching queries making it 20 queries on each page.
(2011-06-04, 06:49 AM)Yaldaram Wrote: [ -> ]
(2011-06-03, 10:48 PM)Aries-Belgium Wrote: [ -> ]This maybe: http://mods.mybb.com/view/ip2flag
You need to change compatibility. Change "14*" to "16*".

CAUTION: If you are going to use this, you are probably adding a nasty load on your forum pages. It searches the IP from each postbit, and if you've 10 posts on each page then it'll execute 10 queries and 10 fetching queries making it 20 queries on each page.

<snip> : never looked at the plugin before. I thought it'd be more simple than that as surely the IP's stored in the $post variable? Could be entirely wrong, but whatever Wink
(2011-06-04, 06:49 AM)Yaldaram Wrote: [ -> ]
(2011-06-03, 10:48 PM)Aries-Belgium Wrote: [ -> ]This maybe: http://mods.mybb.com/view/ip2flag
You need to change compatibility. Change "14*" to "16*".

CAUTION: If you are going to use this, you are probably adding a nasty load on your forum pages. It searches the IP from each postbit, and if you've 10 posts on each page then it'll execute 10 queries and 10 fetching queries making it 20 queries on each page.

It's not my plugin but I agree that it can be optimized. Although, if at least one of your plugins is doing the same thing, I find it a bit hypocritical to criticize someone else's plugin. That's my opinion.
(2011-06-04, 04:49 PM)Aries-Belgium Wrote: [ -> ]
(2011-06-04, 06:49 AM)Yaldaram Wrote: [ -> ]
(2011-06-03, 10:48 PM)Aries-Belgium Wrote: [ -> ]This maybe: http://mods.mybb.com/view/ip2flag
You need to change compatibility. Change "14*" to "16*".

CAUTION: If you are going to use this, you are probably adding a nasty load on your forum pages. It searches the IP from each postbit, and if you've 10 posts on each page then it'll execute 10 queries and 10 fetching queries making it 20 queries on each page.

It's not my plugin but I agree that it can be optimized. Although, if at least one of your plugins is doing the same thing, I find it a bit hypocritical to criticize someone else's plugin. That's my opinion.

I'm not criticizing, just giving my opinion though.

@OP: Instead of installing this plugin, you may Install this: http://www.mybbcentral.com/thread-1483.html which is a Updated version of this: http://mods.mybb.com/view/country-flag-in-postbit

Though this: http://mods.mybb.com/view/country-flag-in-postbit is quite old but can be edited to work in 1.6.x. Yes I've tested and its confirmed. Though its not adding the Flag icon based on User's IP but its far more suitable to install if you want to make your forum less weight.