MyBB Central

Full Version: Country Flags in Postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7
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

Find
PHP Code:
{$post['user_details']} 

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.
Thanks Labrocca
Thanks Labrocca
cant get them to show flag , I am a novice & not sure if done template code ok
Hey, I have problem. Tried it to make it show. But didn't work. Here is my code (I have warning level mod):

Code:
<tr>
<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
{$post['user_details']}{$post['lsop']}{$post['fws_w_level']}
</td>
<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']}">
<p>
{$post['message']}
</p>
</div>
{$post['attachments']}
{$post['signature']}
<div style="text-align: right; vertical-align: bottom;">
{$post['editedmsg']}
{$post['iplogged']}
</div>
</td></tr>
</table>
</td>
</tr>
<tr>
<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>
    </tr>
    </table>
</td>
</tr>
{$seperator}
thank you for this.
I guess I have to have 2 post to download.
Thanks Labrocca i hope that work for me
Mmmmm!

Think I'm gonna need some help with this.. Smile
Very nice will be trying this one
Pages: 1 2 3 4 5 6 7