REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Country Flags in Postbit
#1
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.


Attached Files
.zip   flags.zip (Size: 250.71 KB / Downloads: 196)
#2
Thanks Labrocca
#3
Thanks Labrocca
#4
cant get them to show flag , I am a novice & not sure if done template code ok
#5
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}
#6
thank you for this.
#7
I guess I have to have 2 post to download.
#8
Thanks Labrocca i hope that work for me
#9
Mmmmm!

Think I'm gonna need some help with this.. Smile
#10
Very nice will be trying this one


Possibly Related Threads...
Thread Author Replies Views Last Post
  Country Flags need help milad 2 2,654 Jun 22, 2008, 10:51 PM
Last Post: milad

Forum Jump:


Users browsing this thread: 1 Guest(s)