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

Reply
 
Thread Tools
Flags - Country and Region Details »»
Flags - Country and Region
Version: 1.00, by Carpe Carpe is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.8 Rating:
Released: 08-13-2007 Last Update: 08-15-2007 Installs: 212
Template Edits
Code Changes Additional Files  
No support by the author.

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

Show Your Support

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

Comments
  #72  
Old 01-24-2008, 10:15 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only way I can think of to do that would be to make the field optional. Then it will only show if the user has filled out the field.
Reply With Quote
  #73  
Old 01-24-2008, 11:54 PM
ashley53680 ashley53680 is offline
 
Join Date: Dec 2003
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought of that, but I need this field to show in the profiles. It seems redundant to have them fill the information out twice.

I tried to look at the coding on the birthday/age field. There is an option on what of that to display or hide. So I thought I could possibly do it with this as well. I am not a coder, so I am sorry if this seems a bit dense. lol
Reply With Quote
  #74  
Old 01-26-2008, 03:26 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I meant was, you can still change the existing fields you already have to an optional setting, and that way users who don't want it showing can, er, "unfill" the option in their User CP.

Then you can add an if conditional like if condition="$post[fieldX]" around the code, where X is the field ID. That way, if they fill it out, it shows, if they don't it doesn't.
Reply With Quote
  #75  
Old 01-26-2008, 03:48 PM
ashley53680 ashley53680 is offline
 
Join Date: Dec 2003
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes that's what I thought you meant, however they *have* to have this filled in. I just want to give them the option to show it in their postbit or not.
Reply With Quote
  #76  
Old 01-27-2008, 07:14 AM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
Took me a while to get around to this. I updated my Regions folder with what I believe to be the correct names and spellings and capitalization. Thought I'd share it with you. Note, your users will have to reselect their flag, and until they do, a broken image will show up. I just went ahead and grouped them altogether.

This should work on any version of vB you have. It's just a template modification. For those having trouble with it, make sure your adding the modifications to the right template. Some of you are using postbit and some of you are using postbit_legacy. If you do the modification to one template, and your forum isn't using that layout, then, naturally, it's not going to show up.
Installed! :up:
Reply With Quote
  #77  
Old 01-27-2008, 02:56 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ashley53680 View Post
Yes that's what I thought you meant, however they *have* to have this filled in. I just want to give them the option to show it in their postbit or not.
Ah, I see. Well, I just tried something on my forum, and it may work for you. Try this out if you like.

Create a new profile field with the question of whether they would like the flags to show in their profile. Make the field a multiple-selection check box, but only create one option: "Yes". Put in the instructions to leave it blank if they don't want it to show. Make sure to make it mandatory and to put it on the same page as the flag options, show during registration, etc.

Then wrap your flag code with <div> tags and put an IF condition around the div. Sort of like so:

Code:
<if condition="$post['fieldX']">
<div>
<if condition="$post[field8]"><img src="images/flags/$post[field8].gif"></if>
<if condition="$post[field9]"><img src="images/region/$post[field9].gif"></if>
</div>
With X being the ID of the new field you just created. What will happen is the DIV wont display unless the user has filled it out: checked "Yes". And since the div wont show, the contents wont either, even if they're a mandatory field.

Hrm, maybe don't make it mandatory. It will HAVE to filled in then. Just make sure to put it on the same page.
Reply With Quote
  #78  
Old 02-01-2008, 07:54 AM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just been informed by one of my members that there's one incorrect flag in your update, Digital Jedi (and also presumably in the original hack too).

Georgia (the country) should be Attachment 75279. It changed in 2004, here's the Wikipedia article for verification.
Reply With Quote
  #79  
Old 02-01-2008, 02:46 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, R-D. I updated the zip in my post
Reply With Quote
  #80  
Old 02-06-2008, 03:22 PM
hunter88 hunter88 is offline
 
Join Date: Jan 2008
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

first: thank you!

Second, i have small questions:

1. its possible to make the flags "hover", do dislpay the flag-name if users take the mouse over the flag? How to make it?

2. its possible to make the flag-name displayed over/under the flags (with Font size 1)?

This is default:



and this is what i want (made by GIMP ):



How to change the code in the templates?

Thanks,

Hunter

(sorry 4 my poor english)
Reply With Quote
  #81  
Old 02-08-2008, 11:35 PM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
Thanks, R-D. I updated the zip in my post
Thank you for the updates of this mod, it is much appreciated.
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 06:12 AM.


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.15246 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete