Back to Modification Graveyard

CountryFlag
Mod Version: 1.00, by tnguy3n

This thread is in the Modification Graveyard.
vB Version: 3.5.0 Rating: (10 votes - 4.80 average) Installs: 241
Released: 06 Oct 2005 Last Update: Never Downloads: 250
Not Supported  

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>
BELOW, ADD:
HTML Code:
				<if condition="$post[fieldX] != ''"><div>
					Country: <img src="images/flags/$post[fieldX].gif" title="$post[fieldX]" align="center">
				</div></if>
<!-- Don't forget to change X to the field id. -->

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>
BELOW, ADD:
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
Well, I for one am glad to see you releasing stuff again.

Is there a way to make this work in the memberlist, too?
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>
BELOW, ADD:
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.


vblts.ru supports vBulletin®, 2022-2025