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
  #112  
Old 03-10-2008, 08:59 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure you uploaded the flag images to the directory your style uses. That can be different from your main images directory.
Reply With Quote
  #113  
Old 03-12-2008, 03:48 PM
Magnusson2u Magnusson2u is offline
 
Join Date: Dec 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has been a really cool add-on! Can I suggest a text-over position that will have the country name show? This way users can become graphically educated as to what flag represents which country.

Thanks
Reply With Quote
  #114  
Old 03-13-2008, 07:24 AM
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 Magnusson2u View Post
This has been a really cool add-on! Can I suggest a text-over position that will have the country name show? This way users can become graphically educated as to what flag represents which country.

Thanks
You can add that by putting alt="$post[fieldX]" inside each <img> tag.
Reply With Quote
  #115  
Old 03-13-2008, 06:22 PM
Magnusson2u Magnusson2u is offline
 
Join Date: Dec 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool!

So you mean do this (I really know nothing)?
Code:
<if condition="$post[field26]"><img src="images/flags/$post[field26].gif"></if>

and make it:

<alt="$post[field26]"><img src="images/flags/$post[field26].gif"></if>
I know it's probably wrong, but it didn't work none the less.

Thanks DJ.
Reply With Quote
  #116  
Old 03-14-2008, 08:14 AM
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 Magnusson2u View Post
Cool!

So you mean do this (I really know nothing)?
Code:
<if condition="$post[field26]"><img src="images/flags/$post[field26].gif"></if>
 
and make it:
 
<alt="$post[field26]"><img src="images/flags/$post[field26].gif"></if>
I know it's probably wrong, but it didn't work none the less.

Thanks DJ.
Heheh, not exactly. You see alt is something that all <img> tags are supposed to have anyway, even if there's nothing in the quotation marks. It would look like this:

<img src="images/flags/$post[fieldXX].gif" alt="$post[fieldXX]" />
Reply With Quote
  #117  
Old 03-14-2008, 01:26 PM
Magnusson2u Magnusson2u is offline
 
Join Date: Dec 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...don't laugh at me. Haha!

Thanks, it worked perfectly! Now I realize how incorrect I am about matching flags to countries.
Reply With Quote
  #118  
Old 03-16-2008, 09:49 PM
aamirkhj aamirkhj is offline
 
Join Date: Feb 2008
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed and I am only getting the text of country name shows under the avatar no images i.e name of "usa" instead of the "usa flag", I checked all flags are uploaded correctly and fields are added according to the instructions but no idea why image of flag is not showing only name of the country displays.

Any idea what may be the reason?
Reply With Quote
  #119  
Old 03-16-2008, 10:37 PM
aamirkhj aamirkhj is offline
 
Join Date: Feb 2008
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Make sure you have <img src="images/flags/$post[fieldX1].gif"> instead of just $post[fieldX1]. I had the same thing happen as I was used to doing post fields all the same way, as text.
Well the entire coding is correct nothing seems to be working, I have spent already days on it.

Still could not figure out it does shows the text name of the country but no image,

here is the link

http://meraraabta.com/baithak/member.php?u=859
Reply With Quote
  #120  
Old 03-16-2008, 10:38 PM
aamirkhj aamirkhj is offline
 
Join Date: Feb 2008
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
Link?
http://meraraabta.com/baithak/member.php?u=859
Reply With Quote
  #121  
Old 03-20-2008, 06:44 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 aamirkhj View Post
Oh, okay. Well that's the problem then. This doesn't put the flag image in your Member Profile. You put this in the postbit or postbit_legacy templates and the images will show in your posts. It will only show as text on your member info page.
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 11:25 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.06316 seconds
  • Memory Usage 2,305KB
  • 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
  • (2)bbcode_code
  • (5)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
  • (1)pagenav_pagelinkrel
  • (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