Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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

Category: Add-On Releases - Version: 4.0.x Rating:
Released: 12-03-2009 Last Update: 05-29-2012 Installs: 594
Template Edits
Code Changes Additional Files Translations  
No support by the author.

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:
Code:
                    <span class="usertitle">
                        {vb:raw post.usertitle}
                    </span>

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

Code:
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>

(upto vB4.0.5) ADD BELOW:

Code:
<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldX']"> <dt>Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" alt="Users Country Flag" border="" /></vb:if>
<!-- Wy Flags End -->
(for vB4.0.6 AND 4.0.7) ADD BELLOW:

Code:
<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldX']"> <dt>Country</dt> <img src="http://www.YOURFORUM ADDRESS.com/forum/images/buttons/flags/{vb:raw post.fieldX}.GIF" alt="This is {vb:raw post.username}'s Country Flag" border="" /></vb:if></p>
<!-- Wy Flags End -->
(Also adds the Username to the 'alt' Code on Mouseover).

(for vB4.0.8):

Code:
<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldX']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" align="middle" alt="Users Country Flag" border="" /></vb:if>  
<!-- Wy Flags End -->
(Thanks to Krusty1231 for this).

(for vB4.1.0 , 4.1.0 PL2 & 4.1.1)

Code:
<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldX']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" align="middle" alt="{vb:raw post.fieldX}" border="" /></vb:if>  
<!-- Wy Flags End -->
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

File Type: txt OPTIONS.txt (2.5 KB, 2240 views)
File Type: zip flags1.zip (2.00 MB, 2583 views)
File Type: zip flags3.zip (280.6 KB, 2299 views)
File Type: zip flags2.zip (2.00 MB, 1013 views)

Screenshots

File Type: jpg AdminCP.jpg (100.7 KB, 0 views)
File Type: jpg Postbit_Legacy.jpg (30.0 KB, 0 views)
File Type: jpg FieldID.jpg (88.5 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
Baja, beertruck, BlueCheri, farru, Macgiber, mohammadxxx

Comments
  #532  
Old 08-14-2012, 04:58 AM
vb50kgpoo vb50kgpoo is offline
 
Join Date: Aug 2011
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChrisTERiS View Post
I'm very sorry reading your post. I do really believe (and feel) your bad situation. But sorry, I'm not accepting your excuses, as what I read are all excuses. Read on to get what I mean:


I'm 56 and growing.


Why are you looking only to be employee? Why you don't try on your own? Are you feeling safer knowing that month by month you'll have your standard salary? I'm pround that after 15 years in airlines (Olympic Airways), I gave up this permantent job, because I believed to myself. Maybe the others don't know it, but you, as Greek, you know that Olympic Airways had to highest salaries. I was the first (and remained the only) who re-asigned from Olympic Airways.

.

Sorry for it. But yes, most probably, this will be your next job if you continue to look for "employee type" job. Otherwise the market is open. There is so much work available that you can't imagine. But are you ready for it? eg I'm working at least 12 hours a day, everyday (including weekends and holidays), and the last time that I "offered" myself vacation was on September 2004 for 5 days. Yes, 7 years and 11 months now I'm working non-stop even for a single day. And this is because I don't have the luxury to stop as my clients are waiting their projects.


I thank the God that I born here.


Have a dozen of offers to go for work abroad. Never even thought to discuss any of them.

Christos
Jeez!

I think they should add a white flag to Country Flags, and one with ear defenders.

PS Do a Google on Christos Teriakis
Reply With Quote
  #533  
Old 08-14-2012, 10:25 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Antique-Swords

Because I respect your time, just see the attachment. This will helps you to understand that your posts are going to nowhere.

I'm also advising the other users to read all posts from Antique-Swords. They'll easily understand that he is just a rude person, ready to argue with all, and never feeling happy for anything that the other coders gave him for free. I'm just wondering. How is possible to have server errors with all hacks. Ok, I know that my hacks are rubbishes (as he said). But all others are the same? Maybe his superior server of $1 per year is not so superior?

Chris
Attached Images
File Type: jpg david.jpg (25.6 KB, 0 views)
Reply With Quote
  #534  
Old 08-14-2012, 10:56 AM
ikorolis's Avatar
ikorolis ikorolis is offline
 
Join Date: Sep 2006
Location: Athens , Greece
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChrisTERiS View Post
I'm very sorry reading your post. I do really believe (and feel) your bad situation. But sorry, I'm not accepting your excuses, as what I read are all excuses. Read on to get what I mean:


I'm 56 and growing.


Why are you looking only to be employee? Why you don't try on your own? Are you feeling safer knowing that month by month you'll have your standard salary? I'm pround that after 15 years in airlines (Olympic Airways), I gave up this permantent job, because I believed to myself. Maybe the others don't know it, but you, as Greek, you know that Olympic Airways had to highest salaries. I was the first (and remained the only) who re-asigned from Olympic Airways.

.

Sorry for it. But yes, most probably, this will be your next job if you continue to look for "employee type" job. Otherwise the market is open. There is so much work available that you can't imagine. But are you ready for it? eg I'm working at least 12 hours a day, everyday (including weekends and holidays), and the last time that I "offered" myself vacation was on September 2004 for 5 days. Yes, 7 years and 11 months now I'm working non-stop even for a single day. And this is because I don't have the luxury to stop as my clients are waiting their projects.


I thank the God that I born here.


Have a dozen of offers to go for work abroad. Never even thought to discuss any of them.

Christos
Working fine is VB 4.2.0 PL2

I am sorry for OFFTOPIC message last to me

Dear Christos

Thank you to reply

first im using your products and member of your site

now i am answer your questions

yes i am 40 year my age

yes i am unemployement but no my option (my ex job is IT (employer) to public with contract no expire time) this contract the new and old goverment is expire and fired all (myself and many other people)

I am computer expert (system/network) what is job find? 40 year age old guy no one hire to work? i am cost too much to hire any business hire young guys to cost low and pay low.

Personal don't see dozen offers to job or market is open sorry i see only closed doors or jobs low payment (3 or 4 EUR per Hour) part time or full time

I think you are forgot uneployment to greece is to over 1 million people (23%)

Many people have contact to me via phone and ask to go interview and take my cv but no one call again to offer job.

You are say why no open my own business dont have money for this and me profession is computers the cost is high to open business

i know my future now (after 40 age) i am lucky to find job is security guard this only job can do it now.
Reply With Quote
  #535  
Old 08-15-2012, 05:05 AM
vb50kgpoo vb50kgpoo is offline
 
Join Date: Aug 2011
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChrisTERiS View Post
@Antique-Swords

Because I respect your time, just see the attachment. This will helps you to understand that your posts are going to nowhere.

I'm also advising the other users to read all posts from Antique-Swords. They'll easily understand that he is just a rude person, ready to argue with all, and never feeling happy for anything that the other coders gave him for free. I'm just wondering. How is possible to have server errors with all hacks. Ok, I know that my hacks are rubbishes (as he said). But all others are the same? Maybe his superior server of $1 per year is not so superior?

Chris
1) Chris Teriakis respects nothing; happy that he does not read them.
2) Yes, please read all my posts, including on the "Paid For Services" area where I had to get someone else to do the work Teriakis failed to do.
3) What came first, my "rudeness" or Chris Teriakis a) Convincing me to go for his paid services in Jan 2012, b) taking my money in Jan 2012, c) failing to deliver, d) his customer base email saying he was switching to Invision in Feb 2012, e) his sites and email ady going belly up (stopped working) for over 6 weeks, f) my having to get and pay another developer, g) the accusations from this Greek that I had hacked his scripts when no-one had done anything to them (the other developer had not then started work on fixing the bugs)

As for the quips about my server. I have an email from Chris Teriakis saying his hosting company deleted his CP Panel by mistake which is why he says his sites were down for 7 weeks. Some hosting company. Some developer. Some support.

Again, do a Google on Chris Teriakis and see all the failed sites he has worked on, developed or operated, plus the warnings of course. A true Greek, reflective of that nation's "abilities" and readiness to take other people's money under false pretences?
Reply With Quote
  #536  
Old 08-16-2012, 09:46 AM
ikorolis's Avatar
ikorolis ikorolis is offline
 
Join Date: Sep 2006
Location: Athens , Greece
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First i am respect all guys (members , coders and staff)

Dear friend (Antique-Swords) I do not know if it is right or wrong to blame another friend (Chris Teriakis) that is not okay.

But as long as I am written in this website and I have used countless problems plug ins with or without never accuse another member of the site for a product problem even if it cost me on my own website in time and money.

you know how many times had problems from the company that hosted my website or create some problems plug ins I got from the VB.ORG while telling me of the VBULLETIN not to use them.

this is my personal opinion I do not know what you have personal differences among you and I can not take a position on these and refrain from any personal conflict between members on web pages.

Best Regards
Ilias Korolis

"Translation By Google" sorry my english is bad i know only greek.
Reply With Quote
  #537  
Old 08-17-2012, 09:11 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

theres no Antilles.GIF ??
Reply With Quote
  #538  
Old 08-23-2012, 07:43 PM
ArsMagnum ArsMagnum is offline
 
Join Date: Apr 2012
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Keysailor View Post
I have it working just fine on 4.2.0pl2, had to futz with the code to get it to work right. The basic code to display the flag is:
HTML Code:
<vb:if condition="$post['field8']"><img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field8}.GIF" align="middle" alt="{vb:raw post.field8}" border="" /></vb:if>
Which is what I used in the vbcms template "vbcms_postbit" and placed that right after the last closing span tag of "vb:raw post.posttime". This shows the country flag on CMS comments.

For the main postbit template, I used:

HTML Code:
<vb:if condition="$post['field8']"><dt><style="text-align:left"> Country</dt> <dd><img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field8}.GIF" align="middle" alt="{vb:raw post.field8}" border="" /></dd></vb:if>
and put that in right after the "template_hook.postbit_userinfo_right_after_po sts" entry. By using the style="text-align tag, you avoid having to create a rawphrase for the title. Be sure to leave out the colon, the div already takes care of it (if you leave it in you get double colons).

Thanks Welshy2008, great mod!
I'm having problems finding where to place the codes, can you give me a hand please?

Nevermind! xD i already get to install it :3
Reply With Quote
  #539  
Old 08-25-2012, 02:45 AM
zonaenlinea's Avatar
zonaenlinea zonaenlinea is offline
 
Join Date: Dec 2009
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have to help them look for the flags in 4.2.0

please help me thank you very much

I get the name but not the flag

Reply With Quote
  #540  
Old 09-29-2012, 11:21 PM
faisaly.com faisaly.com is offline
 
Join Date: Mar 2007
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the flag images need to be updated there is no country image for Antilles... i redownloaded the all the flags to make sure and did not find it. but auser selected on registration for his country so it was on list but no image...
Reply With Quote
  #541  
Old 09-30-2012, 12:57 AM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by faisaly.com View Post
the flag images need to be updated there is no country image for Antilles... i redownloaded the all the flags to make sure and did not find it. but auser selected on registration for his country so it was on list but no image...
http://www.abflags.com/_flags/flags-...20flag-XXL.gif
Reply With Quote
Reply

Thread Tools

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 11:22 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.09018 seconds
  • Memory Usage 2,388KB
  • Queries Executed 27 (?)
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
  • (6)bbcode_code
  • (2)bbcode_html
  • (5)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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