MyBB Central
Country Flags in Postbit - Printable Version

+- MyBB Central (
+-- Forum: Archives (
+--- Forum: Mybb 1.2x Series Topics (
+---- Forum: Mybb 1.2x Plugins and Hacks (
+---- Thread: Country Flags in Postbit (/thread-48.html)

Pages: 1 2 3 4 5 6 7

Country Flags in Postbit - labrocca - Feb 21, 2007

Attached is a folder of 204 country flags. To have these shown in postbit follow these instructions.

1. Upload flag images folder to root/images/flags/
2. In admincp create a new Custom Profile Field.
a. Make is a "select box"
b. Paste the country.txt text into the select field
c. I advise a required field as well otherwise you will have a blank image spot in postbit
3. Edit your postbit template with the instructions below

PHP Code:

Add below (change the X of fidX to your custom profile ID for the country flag i.e fid4 instead of fidX)

PHP Code:
<img src="images/flags/{$post['fidX']}.gif" border="0" alt="{$post['fidX']}/><br /> 

You should now be all set.

Attached is the folder you will need with txt file and country gifs.

RE: Country Flags in Postbit - roy - Mar 04, 2007

Thanks Labrocca

RE: Country Flags in Postbit - Schumuckl - Mar 07, 2007

Thanks Labrocca

RE: Country Flags in Postbit - bluesurfer666 - Mar 09, 2007

cant get them to show flag , I am a novice & not sure if done template code ok

RE: Country Flags in Postbit - zzuzu - Mar 10, 2007

Hey, I have problem. Tried it to make it show. But didn't work. Here is my code (I have warning level mod):

<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<td class="{$altbg}" width="85%" valign="top">
<table width="100%">
<tr><td>{$post['posturl']}{$post['icon']}<span class="smalltext"><strong> {$post['subject']}</strong></span>
<br />
<div id="pid_{$post['pid']}">
<div style="text-align: right; vertical-align: bottom;">
<td class="{$altbg}" height="18" style="white-space: nowrap; text-align: center;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
<td class="{$altbg}" width="100%" valign="middle" height="18">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr valign="bottom">
        <td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}</span></td>
        <td align="right"><span class="smalltext">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['fws_warnlink']}</span></td>

RE: Country Flags in Postbit - gimmezell - Mar 10, 2007

thank you for this.

RE: Country Flags in Postbit - gimmezell - Mar 10, 2007

I guess I have to have 2 post to download.

RE: Country Flags in Postbit - ilbahja - Mar 12, 2007

Thanks Labrocca i hope that work for me

RE: Country Flags in Postbit - Lopalong - Mar 19, 2007


Think I'm gonna need some help with this.. Smile

RE: Country Flags in Postbit - Shaughn - Apr 03, 2007

Very nice will be trying this one