Country Flag
This thread is in the Modification Graveyard.
Well, i looked all over the forums but couldn't find this countryflag mod; however, i found it on vb.org instead. I wonder why did awesome hack ain't officially released here for vb members.
![]() All credits go to SmartGnome for orginal hack and AJR, Pingu and Stasik who made the hack for vb 2.2.x. Go to AdminCP > Profile Fields > Add new Profile field > Single Select Menu > Title > Country Description > This shows your country flag in postbit. Options: copy and paste list of country in flag_list.txt to this option field Default Option: Yes, but not blank Display Page: Thread Viewing ----------------------- Optional: Run this following query to set Undisclosed as default for all users or it would displays images as X's. HTML Code:
UPDATE `userfield` SET `fieldX` = 'Undisclosed'; Templates edit: in postbit(_legacy) FIND HTML Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div> HTML Code:
<if condition="$post[fieldX] != Undisclosed"><div>Country: <img src="$stylevar[imgdir_misc]/flags/$post[fieldX].gif" alt="$post[fieldX]" align="center" /> </div></if> Upload /flags to /images/misc/flags of your forum dir Note: Image: <if condition="$post[fieldX] != Undisclosed"><div>Country: <img src="$stylevar[imgdir_misc]/flags/$post[fieldX].gif" alt="$post[fieldX]" align="center" /> </div></if> Text: <if condition="$post[fieldX] != Undisclosed"><div>Country: $post[fieldX]</div></if> Download No files for download. |