Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Country Flags - Postbit & Postbit_Legacy. vB 3.8.X Details »»
Country Flags - Postbit & Postbit_Legacy. vB 3.8.X
Version: 1.00, by Welshy2008 Welshy2008 is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.x Rating:
Released: 03-21-2010 Last Update: 03-24-2010 Installs: 95
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

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:

https://vborg.vbsupport.ru/showthrea...02#post2008102



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 Now

File Type: txt OPTIONS.txt (2.4 KB, 451 views)
File Type: zip flags1.zip (1.99 MB, 660 views)
File Type: zip flags2.zip (1.99 MB, 592 views)
File Type: zip flags3.zip (279.8 KB, 561 views)

Screenshots

File Type: jpg AdminCP.jpg (93.1 KB, 0 views)
File Type: jpg Postbit.jpg (24.1 KB, 0 views)
File Type: jpg FieldID.jpg (66.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 07-05-2010, 06:31 AM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's right. You have to start with a capital letter the .GIF has to be in capitals too.

But, Thank You for updating us on your situation.
Reply With Quote
  #53  
Old 07-05-2010, 07:03 AM
goshalim goshalim is offline
 
Join Date: Oct 2007
Posts: 470
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are welcome but they should found a solution for the optio list.
User that are using 3.8.1 version they will have a problem.

Because there are a lot of ways how to write a name ......correct ?
Reply With Quote
  #54  
Old 07-14-2010, 09:11 PM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm, thanks man
Reply With Quote
  #55  
Old 08-16-2010, 03:43 AM
Nephalim Nephalim is offline
 
Join Date: Apr 2005
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi how do you get this to work with blog? I keep getting errors when we post a blog. vb 3.8.4
Reply With Quote
  #56  
Old 10-13-2010, 07:55 PM
cheech47's Avatar
cheech47 cheech47 is offline
 
Join Date: Oct 2006
Location: In Hell
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Just to let you know the Cambodia flag is missing

Cheers
Reply With Quote
  #57  
Old 10-21-2010, 07:25 PM
soroush soroush is offline
 
Join Date: Nov 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
Many of my forum users are from Iraq and Iraq's flag get changed recently; how could I find an updated one with same motion as in the current one?
Reply With Quote
  #58  
Old 12-20-2010, 08:43 PM
ljd290 ljd290 is offline
 
Join Date: Apr 2009
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi
Any chance of a Columbia flag please?
Reply With Quote
  #59  
Old 01-02-2011, 08:07 AM
Diablo-Sat Diablo-Sat is offline
 
Join Date: Dec 2010
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this, only prob i had was when i finished the flag was under my name not under my stats but its ok
Reply With Quote
  #60  
Old 11-28-2011, 04:26 PM
Fluke667 Fluke667 is offline
 
Join Date: Feb 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can i use the Flags Display in Whos Online ?
Reply With Quote
  #61  
Old 12-02-2011, 07:50 AM
vwdforum vwdforum is offline
 
Join Date: Jun 2006
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any chance of a Switzerland flag please?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05504 seconds
  • Memory Usage 2,340KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete