vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Flags - Country and Region (https://vborg.vbsupport.ru/showthread.php?t=155223)

Carpe 08-13-2007 10:00 PM

Flags - Country and Region
 
I took the code from the flag mods on older vB versions and combined the country and region flags.

Instructions for installing only the country flags without the region flags is also included.

1.01 Changes:
Corrected the spelling of california
Corrected the spelling of newfoundland
Added the flag of england to the country flags list

cairocairo 08-14-2007 04:50 PM

The amendment is very bad because it is confined to a limited number of States did not include any state from the Middle East, and I do not know why I hope that includes all nations, if that happens it will already magnificence

applyimage 08-14-2007 05:11 PM

Hi, I havn't installed yet, is it possible just to have the nations flag appear and not americans states? I highly doubt it will include the English countys for example.

Looks like a nice little mod though.

Carpe 08-14-2007 05:29 PM

Quote:

Originally Posted by cairocairo (Post 1317465)
The amendment is very bad because it is confined to a limited number of States did not include any state from the Middle East, and I do not know why I hope that includes all nations, if that happens it will already magnificence

When you say state I am assuming you mean country. I have updated the zip file to include every country I had. Hope yours is in there.

Carpe 08-14-2007 05:35 PM

Quote:

Originally Posted by applyimage (Post 1317477)
Hi, I havn't installed yet, is it possible just to have the nations flag appear and not americans states? I highly doubt it will include the English countys for example.

Looks like a nice little mod though.

If the users don't select a state/region flag one wont appear. You will only see the country flag. If you don't want the state flags at all use the attached instructions.

ahmedeldeep 08-14-2007 05:58 PM

thank you
but can i find a 3D flag pics ??

applyimage 08-14-2007 06:29 PM

Quote:

Originally Posted by Carpe (Post 1317491)
If the users don't select a state/region flag one wont appear. You will only see the country flag. If you don't want the state flags at all use the attached instructions.

I see! very good mod, thanks.

Carpe 08-14-2007 08:04 PM

Quote:

Originally Posted by ahmedeldeep (Post 1317505)
thank you
but can i find a 3D flag pics ??

I dont know of any, but if you find some all you have to do is replace the flags currently in the flags folder making sure the names are the same.

Magnumutz 08-14-2007 08:11 PM

I see you updated the mod... what's up?

iogames 08-14-2007 08:11 PM

So there's the option to display just Countries?

jluerken 08-14-2007 11:25 PM

Quote:

Originally Posted by iogames (Post 1317596)
So there's the option to display just Countries?

Yes, simply edit the template!

Carpe 08-14-2007 11:35 PM

Quote:

Originally Posted by Magnumutz (Post 1317595)
I see you updated the mod... what's up?

Due to the way people around the world view the word state (it can mean country as a previous poster used it) I repackaged the mod using the word and folder named region instead. Trying to avoid confusion. I also put instructions on installing only the country flags into the zip file.

iogames 08-15-2007 12:13 AM

Quote:

You have empty profile fields that are required to be filled in. Please visit your profile page to update these fields.
???

I see the problem but giving me big headaches :P

Khalid-B 08-15-2007 12:54 AM

nice little mod.
Installed and working great

Thanks

yaoren 08-15-2007 01:48 AM

**Installed**

But... I only get the text "usa" instead of the "usa flag"
Same with the state flag too.

Carpe 08-15-2007 02:34 AM

Quote:

Originally Posted by iogames (Post 1317725)
???

I see the problem but giving me big headaches :P

When you created your profile fields you changed the Field Required setting to yes. Go back into your profile field and change it to no.

Carpe 08-15-2007 02:37 AM

Quote:

Originally Posted by yaoren (Post 1317781)
**Installed**

But... I only get the text "usa" instead of the "usa flag"
Same with the state flag too.

Hmmm, im not sure what is going on. Look at the directions again and make sure you have everything set up right.

yaoren 08-15-2007 11:53 AM

oops, I inserted the "display order number" instead of the "field number"
All good now, thanks

Pirate45 08-15-2007 06:52 PM

I did the same thing as yaoren. Very easy to make this mistake! And, you have to do it twice on each line for a total of four times.

This is explained, but someone going too fast (like me) will miss this if not paying attention.

Carpe 08-15-2007 06:52 PM

Quote:

Originally Posted by Pirate45 (Post 1318316)
So far, me too. :(

I uploaded the images to

/images/flags
/images/regions

But, nothing showing. :(

Double check the directions and make sure you did everything correctly.

Endurer 08-15-2007 09:09 PM

Thanks, Installed. :)

I'd like to replace the location field with this one, will it work if I just changed the location field to show country flags instead? Or do I have to empty the contents of location field of all members first?

Carpe 08-16-2007 12:20 AM

Quote:

Originally Posted by Endurer (Post 1318432)
Thanks, Installed. :)

I'd like to replace the location field with this one, will it work if I just changed the location field to show country flags instead? Or do I have to empty the contents of location field of all members first?

The location field is a single-line text box and the flag field is a single-selection menu. There is no way I know of to change a field without deleting and recreating it. More advanced vB users may have more info on this. I have only been using vB for a week.:D

yahoooh 08-16-2007 06:10 AM

how to make it appear only in the user profile?

Pirate45 08-16-2007 08:37 AM

Carpe,

A couple of issues...
  • California was misspelled in the selection menu (calafornia) and a user told me it did not work. I did not confirm that but I changed it to "california" (proper spelling) and then he said it worked.
  • The Canadian province of Newfoundland is mis-spelled as "new foundland" in your menu. It should be one word.
  • A user has asked for the addition of the flag of England, which is not the same as the flag of the United Kingdom (he says).
Also, would it be possible to release a version with the proper capitalization?

I'm not complaining. It's just that USA looks better than "usa", etc.

It's an awesome mod and my users love it so far.

Thanks.

Carpe 08-16-2007 12:45 PM

Quote:

Originally Posted by yahoooh (Post 1318708)
how to make it appear only in the user profile?

No idea, I created the mod because I wanted it in the postbit. Im sure you can search for adding things to the user profile and then use the provided code.

Carpe 08-16-2007 12:50 PM

Quote:

Originally Posted by Pirate45 (Post 1318780)
Carpe,

A couple of issues...
  • California was misspelled in the selection menu (calafornia) and a user told me it did not work. I did not confirm that but I changed it to "california" (proper spelling) and then he said it worked.
  • The Canadian province of Newfoundland is mis-spelled as "new foundland" in your menu. It should be one word.
  • A user has asked for the addition of the flag of England, which is not the same as the flag of the United Kingdom (he says).
Also, would it be possible to release a version with the proper capitalization?

I'm not complaining. It's just that USA looks better than "usa", etc.

It's an awesome mod and my users love it so far.

Thanks.

Corrected california and newfoundland. The flag of england was in the region list, I added it to the country list and folder.

The list of country/region names has to match the name of the image associated with it. This means if I change the list to be properly capitalized I have to change every single flag name as well. I agree with you that it would look better, but I don't currently have the desire to change that many names, sorry. You could easily do it if you have the time. Just make sure the text you insert into the profile field matches the flag names exactly.

Tom_S 08-20-2007 02:35 AM

Very nice job!

Digital Jedi 08-22-2007 04:50 AM

I don't know if anyone will find this useful, but I took the country flag list and ran it through Microsoft Word. They've got a capitalization feature that not too many people know about. And I did a batch rename of the images folder so that all the names would match up. There were a handful of spelling errors in a few country names, so I made sure to correct those and match up the text file with the images. Everything should be formated and matched properly, but if it isn't let me know.

Like I said, I don't know if you'll find it useful, but since someone mentioned it, I'd thought I'd share what I did for my forum with you. I intend to do the regions folder next, just didn't have the time tonight. I'll post it when it's done.

Reflect 08-22-2007 12:59 PM

I installed this and it works for me.

But for some reason only admins can see the flags and not registered users. When they select there country i can see their flags, but they cant see their own or mine. Anyone know whats wrong?

tutusinghsohi 08-22-2007 02:29 PM

springfield va.....lol....
so close dude...
i'm in fairfax va...:p......

anyways..
very nice hack....installed and loving it :D..

b4p 08-30-2007 10:17 PM

I've installed it on my site, and used this code:
Code:

<!-- / flags start -->
<div>
<if condition="$post[field5]"><img src="images/flags/$post[field5].gif"></if>
<if condition="$post[field6]"><img src="images/region/$post[field6].gif"></if>
</div>
<!-- / flags end -->

but is it only display TEXT instead of the FLAGS
the fields name are correct!

Code:

<dt class="smallfont"><strong>Country Flag</strong>:</dt>
<dd class="smallfont">brazil</dd>
<dt class="smallfont"><strong>State/Region Flag</strong>:</dt>
<dd class="smallfont">au west australia</dd>

that is the output I am getting
can someone help me with it?

b4p 08-30-2007 10:35 PM

I've uploaded a screen shot just to confirm that I am doing things properly

Pirate45 09-08-2007 10:38 AM

You are probably making the mistake that a lot of us made in looking at the wrong numbers there. Check it again.

Battle_Ring 09-09-2007 08:36 PM

Word Country doesnt show up
http://www.sportscardforum.com/showthread.php?t=359957

vitrag24 09-15-2007 02:24 PM

Will It Work On Vb 3.6.4?

masterweb 09-17-2007 07:12 PM

Installed :D

djrichards 09-18-2007 04:03 PM

Quote:

Originally Posted by Pirate45 (Post 1334751)
You are probably making the mistake that a lot of us made in looking at the wrong numbers there. Check it again.

I don't get it. His field numbers and order numbers are the same (5 and 6 respectively). What else are you saying that he needs to look at?

I'm asking because I have the exact situation and none of my graphics display.

TIA,

DJ Richards

djrichards 09-18-2007 04:53 PM

Wasn't using postbit_legacy.

Doh!

PBX1 09-25-2007 06:43 PM

Quote:

Originally Posted by djrichards (Post 1341802)
I don't get it. His field numbers and order numbers are the same (5 and 6 respectively). What else are you saying that he needs to look at?

I'm asking because I have the exact situation and none of my graphics display.

TIA,

DJ Richards

Mine doesn't display either and I am putting the code in postbit_legacy.

tiredoff 10-12-2007 05:17 AM

Hi
Admincp > etc.......... it is ok
Options - [copy and paste list of countries in country_flags_list.txt to this option field] But where i can find it?
thank you


All times are GMT. The time now is 08:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01325 seconds
  • Memory Usage 1,834KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete