Back to vBulletin 3.8 Add-ons

Country Flags - Postbit & Postbit_Legacy. vB 3.8.X
Mod Version: 1.00, by Welshy2008

vB Version: 3.8.x Rating: (16 votes - 4.94 average) Installs: 95
Released: 23 Mar 2010 Last Update: 25 Mar 2010 Downloads: 618
Not Supported Template Edits Code Changes Re-usable Code Translations  

After receiving many PMs for me to do my version of this mod, I have obliged.

Original Credit for the Mod goes to Cobro.

If you use this Mod, Please click "Installed" and rate the Mod fairly.

This Mod is available for vb4.0.X here:

Spoiler (click to open)


Quote by Welshy2008
Hello,

This particular one will Not work on 3.8.X

I do have a version that I could do for you, (I have 3.8.4 PL2) and I will be upgrading to 3.8.5.

Yes, I do have the alt code to show the actual" Country Flag" name.

Bare with with me and I will do it as soon as possible for you and the others that has requested it.

If you want to try it on the 3.8.5, I am afraid you will be the Guinea pig. I can't see why it won't work, but I can't guarantee that. As ALWAYS, do a forum back-up BEFORE adding any Mods or changes to your board, but preferably, use a "Test" forum.

Welshy2008.
Welshy That be great if you do a 3.8.5 version as i can use it atm as i have downgraded to 3.8.5 due to V4 bugs lol

Close


Description:

This Add on, gives a selection of Countries that your Member (New or Existing) can choose from in a 'Drop-Down Menu'. The Country he/she selects, will be displayed as a Flag in their Postbit.

Instructions:

Firstly “Upload” ALL the Flag GIF pics to your forum root /images/buttons/flags folder.

IE: yourforumaddress.com/forum/images/buttons/flags

Please Note: Due to the flags folder being too large to upload as one - I have been forced to upload it as "flags1", "flags2" and "flags3" - Please ensure that you add a new folder to "images/buttons/" and name it "flags". Please copy the contents of ALL THREE (3) flags folders in the attachment below to the new 'flags' folder that you have just made. (DO NOT place them as 3 seperate folders!"


Then in your Admin Control Panel (ACP), please do the following:
ACP -> User Profile Fields -> Add New User Profile Field ->Profile Field Type -> Single-Selection Menu (select ‘Single-Selection Menu’ from the Drop-Down Menu) -> Please enter the following into the following fields (REMEMBER to make a note of the FieldID, because you will need to replace ALL the X’s in [fieldX] with it!!!
(Please see 'FieldID.jpg' attachment below).

Add New User Profile Field Single-Selection Menu:

Title = Country Flag
Description = Add your country flag to your profile:
Profile Field Category = (Uncategorized)
Options = Copy & Paste the Whole contents of the file attached below (OPTIONS)
Set Default = None
Display Order = You Select this (dependant on how many you already have)
Field Required = yes, at registration and profile updating
Field Editable by User = Yes
Private Field = No
Field Searchable on Members List = No
Show on Members List = Yes


Optional Input:

Allow user to input their own value for this option = No
Max length of allowed user input = 100
Field Length = 25
Regular Expression = Leave this Blank


Display Page:

Which page displays this option? = Edit Your Details

** SAVE **


Then, In your Admin Control Panel (ACP)...


For Postbit:

ACP -> Styles & Templates -> Style Manager -> <<>> -> Postbit Templates -> postbit

FIND:

Code:
				<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
				<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
				$template_hook[postbit_userinfo_left]

ADD BELOW:

Code:
<!-- Wy Country Flags Start -->
<if condition="$post['fieldX']">
	Country: <img src="http://www.Yourforum.com/images/buttons/flags/$post[fieldX].GIF" alt="$post[username]'s Flag is: $post[fieldX]" border="" />
</if>
<!--// Wy Country Flags End -->

For Posbit_Legacy:

ACP -> Styles & Templates -> Style Manager -> <<>> -> Postbit Templates -> posbit_legacy...

FIND:

Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</if>
			<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
			$template_hook[postbit_userinfo_left]

ADD BELOW:

Code:
<!-- Wy Country Flags Start -->
<if condition="$post['fieldX']">
	Country: <img src="http://www.Yourforum.com/images/buttons/flags/$post[fieldX].GIF" alt="$post[username]'s Flag is: $post[fieldX]" border="" />
</if>
<!--// Wy Country Flags End -->

BOTH of the codes above will give you the Username and the Name of the actual Users Country Flag on mouseover.

TIP: (If you find that you get the box with a "red x" like this , instead of seeing your image whilst using Option 1, Above - This means that the route to your images is wrong.


** Replace the ‘X’ with your FieldID number **
** Replace the ‘Red Text’ with Your Forum Address **

** SAVE Template **





And that's it - Enjoy!


Please do not forget to click "Install"

Download

File Type: %1$s OPTIONS.txt (2.4 KB, 453 downloads)
File Type: %1$s flags1.zip (1.99 MB, 662 downloads)
File Type: %1$s flags2.zip (1.99 MB, 594 downloads)
File Type: %1$s flags3.zip (279.8 KB, 563 downloads)

Screenshots

Click image for larger version
Name:	AdminCP.jpg
Views:	721
Size:	93.1 KB
ID:	114581   Click image for larger version
Name:	Postbit.jpg
Views:	1386
Size:	24.1 KB
ID:	114582   Click image for larger version
Name:	FieldID.jpg
Views:	1209
Size:	66.1 KB
ID:	114583  

Similar Mods

Add-On Releases Country Flags - Postbit & Postbit_Legacy. vB 4.0.x (Inc GO vBulletin 4.x Add-ons
Country Orb people (Country Flags) vBulletin Avatar Sets
Mini Mods Total Threads & posts shown in the postbit & postbit_legacy vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024