Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Country Flags - Postbit & Postbit_Legacy. vB 4.0.x (Inc GO Details »
Country Flags - Postbit & Postbit_Legacy. vB 4.0.x (Inc GO
Mod Version: 1.00, by Welshy2008 (Designer) Welshy2008 is offline
Developer Last Online: Mar 2013 I like it Show Printable Version Email this Page

vB Version: 4.0.x Rating: (102 votes - 4.60 average) Installs: 594
Released: 04 Dec 2009 Last Update: 30 May 2012 Downloads: 4515
Not Supported Template Edits Code Changes Additional Files Translations  

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.

Credit for the Flags goes to Cobro. (I have renamed each and every flag to work with this Mod).


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 ** Please note that the vB4.0.4 Version does not show this option. Please select "Edit Profile" option. The selct your country flag option, I can confirm, Also shows on registration too.
** SAVE **


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

ACP -> Styles & Templates -> Style Manager -> <<>> -> Postbit Templates -> select the template that you use (ie Postbit or Posbit_legacy) – This is for the Postbit_Legacy…

FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


If you would like to place it under your number of user posts (to the right of your Postbit) then look for:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


(upto vB4.0.5) ADD BELOW:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(for vB4.0.6 AND 4.0.7) ADD BELLOW:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(Also adds the Username to the 'alt' Code on Mouseover).

(for vB4.0.8):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(Thanks to Krusty1231 for this).

(for vB4.1.0 , 4.1.0 PL2 & 4.1.1)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Even though I have not tested this in these versions, others have and have reported this mod to be working in them.[/B]

Please make sure the style and template edits are still there. Just one of the people can be seen on post 350


** 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"

Edit & Update TRACKER - Keep Upto date here:

** 30/05/2012 - Update "Flags2 to include correct name on Switzerland flag"..

** 27/09/2010 - Update on 4.0.6 "added code for the 4.0.6 Version, and instructions on how to place the flug under a user's postcount in posbit"..


** 12/07/2010 - Update on 4.0.4 "Which page displays this option"..

** 26/06/2010 - Updated Flag Names and Country Names in the "Options" text file. PLEASE Re-upload and overwrite all three flag folders and the options Text file...

** 15/01/2010 - Made all the Countries in the "OPTIONS.txt" in Alphabetical Order..

** 27/12/2009 - Changed the contents of OPTIONS.ZIP folder from a .docx file to a .txt file, as requested.

** 26/12/2009 - Option 2 Added
- Flag folder Updated (UK.gif changed to UK.GIF)


** 05/12/2009 - OPTIONS File Added.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	AdminCP.jpg
Views:	4061
Size:	100.7 KB
ID:	107172   Click image for larger version

Name:	Postbit_Legacy.jpg
Views:	7332
Size:	30.0 KB
ID:	107173   Click image for larger version

Name:	FieldID.jpg
Views:	5792
Size:	88.5 KB
ID:	107179  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Country Orb people (Country Flags) mac27 vBulletin Avatar Sets 101 02 Jan 2012 23:16

  #586  
Old 04 Dec 2014, 23:09
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
Wow, there is a name I have not heard in awhile.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #587  
Old 20 Jan 2015, 07:26
domainka domainka is offline
 
Join Date: Feb 2013
any vb 4.2.2 ? i installed the Mod and nothing was displayed
Reply With Quote
  #588  
Old 20 Jan 2015, 15:26
Kesha Kesha is offline
 
Join Date: Apr 2010
Originally Posted by domainka View Post
any vb 4.2.2 ? i installed the Mod and nothing was displayed
You need to follow the instructions and modify your postbit template. I'm running this product on 4.2.3 Beta without any issues.
Reply With Quote
  #589  
Old 21 Jan 2015, 04:00
domainka domainka is offline
 
Join Date: Feb 2013
I have followed the installation insructions, and still no flag is being displayed. any suggestion please ?

here is the snapshot of the code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #590  
Old 21 Jan 2015, 16:01
boss22 boss22 is offline
 
Join Date: Oct 2012

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

should be


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

try now

regards

bosss
Reply With Quote
  #591  
Old 12 Jun 2015, 14:12
Guardian Hope Guardian Hope is offline
 
Join Date: Mar 2015
I don't know if anyone has already posted this but I had to make a few adjustments to the what's inserted into the template to get it working in vBulletin 4.2.2 PL4 using Postbit Legacy naturally.

I chose to place it under the built in "Location" field but you can really put it anywhere you want.

In postbit_legacy find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add directly below:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace fieldX with the field you used for the Countries.

The last thing to note is that this assumes the location of the flags is /forums/images/buttons/flags so adjust accordingly.

Just a friendly "FYI" for anyone trying to get this running on 4.2.2. Works like a charm too.
Reply With Quote
  #592  
Old 21 Jul 2015, 18:50
SYGRecon SYGRecon is offline
 
Join Date: Apr 2014
Originally Posted by Guardian Hope View Post
I don't know if anyone has already posted this but I had to make a few adjustments to the what's inserted into the template to get it working in vBulletin 4.2.2 PL4 using Postbit Legacy naturally.

I chose to place it under the built in "Location" field but you can really put it anywhere you want.

In postbit_legacy find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add directly below:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace fieldX with the field you used for the Countries.

The last thing to note is that this assumes the location of the flags is /forums/images/buttons/flags so adjust accordingly.

Just a friendly "FYI" for anyone trying to get this running on 4.2.2. Works like a charm too.

I'm using 4.2.2PL4 and I got everything to work except I can't seem to get the pictures to show? It's just showing image error with the title of the file.. I put them into my public_html -> Images -> Buttons -> Flags

I extracted all the flag gif's into one folder, was I not supposed to do that? I don't know what I'm doing wrong.
Reply With Quote
  #593  
Old 22 Jul 2015, 07:20
friendlymela's Avatar
friendlymela friendlymela is offline
 
Join Date: Dec 2012
Real name: Zeeshan Shams
hmm nice mod
Reply With Quote
  #594  
Old 09 Aug 2015, 13:38
Fizzgig's Avatar
Fizzgig Fizzgig is offline
 
Join Date: Aug 2015
Real name: Chris
Works well
__________________
http://sandstormradio.org
Reply With Quote
  #595  
Old 04 Oct 2015, 03:02
bremereric's Avatar
bremereric bremereric is offline
 
Join Date: Aug 2011
Real name: Eric Bremer
Here we go...pictures are in the right location. The word of the flag lands in the correct position underneath the location. I posted screen shots of everything.

ScreenHunter_30 Oct. 03 21.46.jpg

ScreenHunter_31 Oct. 03 21.47.jpg

ScreenHunter_32 Oct. 03 21.49.jpg

ScreenHunter_33 Oct. 03 21.50.jpg

ScreenHunter_34 Oct. 03 21.53.jpg

ScreenHunter_35 Oct. 03 21.54.jpg
__________________
F Body Mopar Lover &
VB4.1.3 Newbie

Reply With Quote
  #596  
Old 04 Oct 2015, 06:40
ArcadeSyndicate's Avatar
ArcadeSyndicate ArcadeSyndicate is offline
 
Join Date: Oct 2008
hello, please check your uploaded images again.

i've taken a look at your website and for example

http://www.aspenandvolare.com/forums...gs/Germany.GIF

doesn't exist in that location too.
__________________
Reply With Quote
  #597  
Old 04 Oct 2015, 11:18
bremereric's Avatar
bremereric bremereric is offline
 
Join Date: Aug 2011
Real name: Eric Bremer
Yes I took the /forum out of the code because they were not there.

<!-- Country Flags Start -->
<vb:if condition="$post['field5']"><dt><style="text-align:left"> Country:</dt> <dd><img src="/images/buttons/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></dd></vb:if>
<!-- Country Flags End -->
__________________
F Body Mopar Lover &
VB4.1.3 Newbie

Reply With Quote
  #598  
Old 06 Oct 2015, 04:57
John Lester's Avatar
John Lester John Lester is offline
 
Join Date: Nov 2004
Looks like you fixed it
Reply With Quote
  #599  
Old 16 Oct 2015, 15:07
darksidemon2 darksidemon2 is offline
 
Join Date: Apr 2011
Thumbs up work to me

Originally Posted by wEbAddEr View Post
works this way with vb4.2.3.beta1


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
thanks
works this way with Version 4.2.3
Reply With Quote
  #600  
Old 08 Nov 2015, 17:51
ArcadeSyndicate's Avatar
ArcadeSyndicate ArcadeSyndicate is offline
 
Join Date: Oct 2008
replace Users Flag! with {vb:raw post.fieldX} to show countryname when hovering
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:46.

Layout Options | Width: Wide Color: