Go Back   vb.org Archive > vBulletin Styles and Graphics > vBulletin Graphic Sets > Miscellaneous Images
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Country Flag Gif's Details »»
Country Flag Gif's
Version: 1.00, by Cobro Cobro is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.0 Rating:
Released: 05-27-2008 Last Update: 05-27-2008 Installs: 140
Re-useable Code  
No support by the author.

This is not my work but i got these flags from my friend made them and he uses them on his forum and i just wanted to share it with you these are gif's so they are moving very cool just check them out and tell me what you think



hope you enjoy

Download Now

File Type: zip flags1.zip (1.86 MB, 1851 views)
File Type: zip flags3.zip (850.1 KB, 1388 views)
File Type: zip flags2.zip (1.15 MB, 1433 views)

Show Your Support

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

Comments
  #12  
Old 05-28-2008, 05:57 PM
MadK's Avatar
MadK MadK is offline
 
Join Date: Feb 2008
Location: Canada
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, very nice flags!
Reply With Quote
  #13  
Old 05-28-2008, 06:14 PM
ammoskumar ammoskumar is offline
 
Join Date: Apr 2007
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by megabyte366 View Post
I took flag's and applied to this code and it works.


Flags Install File - Country Only

1. Create Flags Profile Fields:

Go to AdminCP > Profile Fields > Add new Profile field > Single Select Menu
Title - Country Flag
Description - Select your Country Flag
Options - [copy and paste list of countries in country_flags_list.txt to this option field]
Set Default: None
Editable By User: Yes
Display Page: Edit Profile

Write down your field number, ie field8


2. Edit the postbit_legacy template:

Go to AdminCP > Styles & Templates > Style Manager
In your template list on the right select Edit Templates from the dropdown menu of the desired template
Double click Postbit Templates
Double click postbit_legacy

FIND:

<div>
$vbphrase[posts]: $post[posts]
</div>

BELOW, ADD:

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


Change X to the field id for your country flag.
ie, if your country flag is field8 the code will look like this:
<!-- / flags start -->
<div>
<if condition="$post[field8]"><img src="images/flags/$post[field8].gif"></if>
</div>
<!-- / flags end -->


3. Upload the folder flags to the images directory of your forum.
hey brother any demo on this i follow ur instruction but its not showing on postbit legacy??

plz help me on this..
Reply With Quote
  #14  
Old 05-28-2008, 06:18 PM
Kaleem's Avatar
Kaleem Kaleem is offline
 
Join Date: May 2006
Location: New Jersey
Posts: 324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ammoskumar View Post
hey brother any demo on this i follow ur instruction but its not showing on postbit legacy??

plz help me on this..
Try both post_bit and postbit_legacy.
Reply With Quote
  #15  
Old 05-28-2008, 06:19 PM
Soup^Dragon Soup^Dragon is offline
 
Join Date: Dec 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will only work if you are using postbit legacy, try the same in the postbit template
Reply With Quote
  #16  
Old 05-28-2008, 06:51 PM
ammoskumar ammoskumar is offline
 
Join Date: Apr 2007
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

k ill do right now...
Reply With Quote
  #17  
Old 05-28-2008, 06:55 PM
ammoskumar ammoskumar is offline
 
Join Date: Apr 2007
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LightInClouds View Post
Try both post_bit and postbit_legacy.
i tried both and still not coming up.... i have flags folder under the images....
do i have to rename the flag name or anything??

i want to show that flags images in the user postbit....

plz help thank you so much...
Reply With Quote
  #18  
Old 05-28-2008, 07:02 PM
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello!

something is wrong with file name (extension) GIF --- should be gif and how and where implement that code " {title}: <img src="./style_images/flag/flag_{key}.GIF" /> "

also must change all filenames to flags ... to countryname.gif

reg

macc

can some fix that and make wright code to put in postbit and postbit_legacy?
Reply With Quote
  #19  
Old 05-28-2008, 07:05 PM
ammoskumar ammoskumar is offline
 
Join Date: Apr 2007
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem i found it you have to rename the name flag_in.gif to india.gif

thanx a lot LightInClouds & Soup^Dragon

it came now up...
Reply With Quote
  #20  
Old 05-28-2008, 11:43 PM
stardotstar stardotstar is offline
 
Join Date: May 2008
Location: SYD, AU
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am new at modding vB - first one actually - and I had this mod on phpBB so I have added it according to the user profile custom field addition and then linking to the flag name in postbit_legacy - and this does indeed work if the file is renamed from the list provided ie:
flag_au.GIF --> Australia.GIF works but that requires renaming all the flags according to the names in the list whilst the original bundle already provides a translation key:
...
au=Australia
...
in phpBB this is done using a language key where anything called for as 'au' shows up as 'Australia'; then the menu list would be the list of keys
...
au
...
which is an easier job to edit than the actual file names - including the fact that there are spaces and capitalisation in the file names and also some exceptions to the two letter country code etc...

There must be some simple code that would allow the supplied list to be used in both the dropdown and the image file translation without a lot of editing?

Language key:
at=Austria
au=Australia
aw=Aruba
ax=Aaland

Drop down menu is then set up as

at
au
aw
ax

but displays to users as

Austria
Australia
Aruba
Aaland

and when one is selected by the language key in the profile it translates to:

flag_at.GIF
flag_au.GIF
flag_aw.GIF
flag_ax.GIF

or

flag_$post[fieldX].GIF

Sort of thinking out loud since I don't even know if this is where such a question should be asked...
Reply With Quote
  #21  
Old 05-29-2008, 08:03 PM
sweetguy2004's Avatar
sweetguy2004 sweetguy2004 is offline
 
Join Date: Feb 2007
Location: uk
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sort of thinking out loud since I don't even know if this is where such a question should be asked...

LOL
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 02:11 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.04746 seconds
  • Memory Usage 2,335KB
  • 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
  • (3)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
  • (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
  • (3)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