MyBB Community Forums

Full Version: flags in postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Is there somebody who can make the plugin flag in userspost (postbit) compatible with 1.6

http://www.mybbcentral.com/thread-1483.html

I allready change the mybb version from 1.4 to 1.6 but this does not work.
This plugin works on the same way as flags on index, also the images are on the same directory.
http://www.mybbcentral.com/thread-1497.html
This plugin is working for 100%

Both plugins works fine on 1.4 but after the update to 1.6 the plugin for flags in postbit does not work anymore
Open plugin file and find; (I do not have that plugin but I assume if its using postbit hook then it should have the similar structure)

($post)
and add an & before dollar sign $ , like this;
(&$post)
Here is the plugin
Right, then find;
function parse_country($post)
and Change it into;
function parse_country(&$post)

Next you've to edit your countries from UserCP > Edit Profile
Thanks a lot that works, only I lost all earlier users setting so all my users had to change it again.
The costum profile id was 12 and now it is 17. And I do not know if there still is something on id 12.

I have one question left, how do I change the size of the flag?
http://www.ikf-forum.eu/showthread.php?tid=10394
I can't see any flag on postbit. May be guest permissions issue ?
un: mybbtestuser
pw: mybbtestuser
Alright, to change the size you've to replace the ./images/flags/ FLAGS ICONS to the bigger sized flag icons. You've to use the .gif extension icons though.
I use on two places the flags from the same map:

1. flags on the index
2. flag in userprofile from postbit (in the front of the usersname)

The flags on the index are OK, but the flags in the postbit are to big.
Open plugin file and find;
$post['country'] = "<!-- Start: country --><img src=\"./images/flags/{$post[$source]}.gif\" title=\"{$post[$source]}\" align=\"center\">&nbsp;<!-- End: country -->";
and Change it into;
$post['country'] = "<!-- Start: country --><img src=\"./images/flags/{$post[$source]}.gif\" title=\"{$post[$source]}\" align=\"center\" width=\"19px\" height=\"15px\">&nbsp;<!-- End: country -->";

It will shrink the size of flags on postbit.
Pages: 1 2