|
CountryFlag
This thread is in the Modification Graveyard.
Site: http://www.++++++.org
CountryFlag Mod for vb 3.5 This hack shows user's country flag in postbit, below the user name. Original by SmartGnome, AJR, Pingu and Stasik for vb 2.2.x. 1. Go to AdminCP => Profile Fields => Add new Profile field => Single Select Menu Title > Home Country Description > Tell people where you're from. Options: [copy and paste list of countries in flags_list.txt to this option field] Set Default: Yes, Include a First Blank Option Editable By User: Yes Display Page: Edit Profile Write down your field# . i.e field6 2. Open postbit(_legacy) template, FIND: HTML Code:
<div> $vbphrase[posts]: $post[posts] </div> HTML Code:
<if condition="$post[fieldX] != ''"><div> Country: <img src="images/flags/$post[fieldX].gif" title="$post[fieldX]" align="center"> </div></if> 3. Upload /flags to images/flags to your forum dir. <!--- That's it! ---> --------------------------------------- To show countryflag in profile: Open memberinfo template, FIND: HTML Code:
<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if> HTML Code:
<if condition="$userinfo[fieldX] != ''"><div> Country: <img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center"> </div></if> To Show User's Countryflag in Memberlist, see this following post: Spoiler (click to open)
Quote by Boofo
okie, this add-on is written as requested by bofo.
#------------------ Addon to show countryflag in Memberlist Open memberlist_resultbit template, FIND: HTML Code:
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a> HTML Code:
<if condition="$userinfo[fieldX] != ''"> <img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center"></if> Close
Download No files for download. |
|||||||||