2005-12-26, 05:30 PM
Zaher1988 has totally changed the code and now it works perfect. Thanx Zaher soon he will release a plugin for it here is the code
Goto your User CP and Edit Profile
[attachment=1887]
[attachment=1886]
You can see it here http://www.amatorbalikci.net/showthread....193#pid193
Quote:1. Go to AdminCP => Custom Profile Fields => Add new Profile field
Name > Your Country
Description > An information where you're from.
Maximum Length : 0
Field Length :0
Display Order : You give the number
Field Type : Sellect Box
Selectable Options : copy paste the list in the country list.txt
Leave the rest as is;
Unzip flags.zip und upload the directory to your /images folder
Quote:open ./functions_post.php
find
if($post['avatar'] != "" && $mybb->user['showavatars'] != "no")
above it add
if ($post[fid4] != '') { eval("\$country = \"".$templates->get("postbit_country")."\";"); }
note that fid4 should be replace with ur correspondence one! fid5 6 whatever
now in the template manager
add a new template called postbit_country
add this code
<div>Country: <img src="images/flags/$post[fid4].gif" title="$post[fid4]" align="center"></div>
then in postbit template find
$post[userregdate]
below it add
$country <br>
Goto your User CP and Edit Profile
[attachment=1887]
[attachment=1886]
You can see it here http://www.amatorbalikci.net/showthread....193#pid193