vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Miscellaneous Images (https://vborg.vbsupport.ru/forumdisplay.php?f=125)
-   -   Profile Enhancements - Country Flag Gif's (https://vborg.vbsupport.ru/showthread.php?t=180741)

Cobro 05-27-2008 10:00 PM

Country Flag Gif's
 
1 Attachment(s)
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

https://vborg.vbsupport.ru/external/2008/05/3.gif

hope you enjoy

Charlie98902 05-28-2008 01:50 AM

What does this actually do besides put animated gif's somewhere?

Cobro 05-28-2008 01:51 AM

you have to get a plugin that puts the flag in postbit and stuff like that i just wanted to share the gifs

veenuisthebest 05-28-2008 03:12 AM

toooo beautifulll.. i am really loving this. the animation is just perfect :up:

7lanet 05-28-2008 03:44 AM

1 Attachment(s)
Please nominate images on behalf of the State
And replacement of the old name

For example
United States = United States.gif
from flag_us.gif for United States.gif
from flag_ye.gif for yemen.gif
I give her to me

look file

ShawneyJ 05-28-2008 07:12 AM

wow sweet, i already have most of these. but lets see which ones i havent got ;)

wWw.Fun2Wii.Com 05-28-2008 09:18 AM

Quote:

Originally Posted by 7lanet (Post 1533682)
Please nominate images on behalf of the State
And replacement of the old name

For example
United States = United States.gif
from flag_us.gif for United States.gif

I give her to me

look file


The same request

Thank

sensimilla 05-28-2008 03:43 PM

The graphics are stunning, thanks alot!

Phr34q 05-28-2008 04:47 PM

In the spirit of our hero Snoop dog, shiznizzle brotha!

[high]* Phr34q clicks installed *[/high]

Thanks a bunch, good idea sharing it here :)

iogames 05-28-2008 04:51 PM

Can I ask your friend how he made them? quite a job I see

MadK 05-28-2008 05:57 PM

Thank you, very nice flags! :)

ammoskumar 05-28-2008 06:14 PM

Quote:

Originally Posted by megabyte366 (Post 1534153)
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..

Kaleem 05-28-2008 06:18 PM

Quote:

Originally Posted by ammoskumar (Post 1534298)
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.

Soup^Dragon 05-28-2008 06:19 PM

will only work if you are using postbit legacy, try the same in the postbit template

ammoskumar 05-28-2008 06:51 PM

k ill do right now...

ammoskumar 05-28-2008 06:55 PM

Quote:

Originally Posted by LightInClouds (Post 1534303)
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...

macc 05-28-2008 07:02 PM

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?

ammoskumar 05-28-2008 07:05 PM

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... :)

stardotstar 05-28-2008 11:43 PM

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...

sweetguy2004 05-29-2008 08:03 PM

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

LOL

iogames 05-30-2008 12:27 AM

I want/need to know how the waving effect was made :)

rigodiaz 05-30-2008 12:48 AM

Thank you man!

stardotstar 05-30-2008 02:27 AM

Not sure what technique was used in this instance but I have used photoshop displacement/bump maps and lighting effects in the past. There are numerous tutorials around. eg using
http://www.nomadthepirate.com/tutorial/
you can very quickly get:
http://www.archeli.com.au/flags/anim_Australia_55.gif
http://www.archeli.com.au/flags/Ital...will_angle.gif
etc. (not as good as the ones in this post I know) but you get the idea.
This mod's flags are using a much higher frequency bump map and lighting effect and an angle on the effect which is partly why the flags look so good cropped as they are...


BTW great tutorial - thanks!

7lanet 05-30-2008 04:15 PM

I tried to amend country name, however things went wrong, plz re_arrange country names as following

United States = United States.gif
from flag_us.gif for United States.gif

Phr34q 05-30-2008 05:58 PM

aah damn, i really like this one, too much work for me to even begin with :o

anyone got the flags renamed that would like to share with me?

jewropa 05-31-2008 12:47 PM

Thank You Very Much!

CHEROKYE 05-31-2008 01:11 PM

Is fantastic, Thanks

nokidding 05-31-2008 06:18 PM

can anyone upload a new file with all the flags renamed?
thanks

jewropa 05-31-2008 07:14 PM

I think we can divide the pictures to 3 people, then if we rename it together it will be very quick work.
I rename now the folder: New Folder

jewropa 05-31-2008 07:38 PM

1 Attachment(s)
Here: The first Folder

7lanet 06-01-2008 01:31 AM

Thanks for the amendment, awaiting for completion of the rest.

wWw.Fun2Wii.Com 06-01-2008 12:00 PM

thanks

Goomzee 06-02-2008 06:17 AM

thankx but this flags are showing me on forums i think i have rename flags name and that's anoyying

wWw.Fun2Wii.Com 06-07-2008 11:24 PM

1 Attachment(s)
Names of all States has been modified


The rest of this, Did not know it

https://vborg.vbsupport.ru/

P.S: this Faroe Islands

shaynehammy 06-08-2008 12:27 AM

Anyone got this working in 3.7?

shaynehammy 06-08-2008 12:56 AM

Got it working.

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

needs to be

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

for any people that have Linux hosting systems

dt_truck11 07-18-2008 11:20 PM

Quote:

Originally Posted by wWw.Fun2Wii.Com (Post 1543594)
Names of all States has been modified


The rest of this, Did not know it

https://vborg.vbsupport.ru/

P.S: this Faroe Islands

the attached folders do not work. when i go to extract the files i get a message saying that there are no files to extract. o well will change the names myself

tommythejoat 07-23-2008 07:32 PM

Original folder 2 contains the map of codes to country names. The codes are the iso standard country codes.

MDK-Indy 07-29-2008 09:54 AM

Sal?,

the following Flag's are missing
  • Andorra
  • Cote d'Ivoire
  • Vatican City
  • The Faroes
Can you make it...?

greeting Indy

dt_truck11 07-29-2008 08:06 PM

1 Attachment(s)
Quote:

Sal?,

the following Flag's are missing

* Andorra
* Cote d'Ivoire
* Vatican City
* The Faroes

Can you make it...?

greeting Indy
correct me if im wrong but i think "Holy See (Vatican City State)" is the same as Vatican City. see attachment below


All times are GMT. The time now is 02:17 PM.

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.01292 seconds
  • Memory Usage 1,817KB
  • 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
  • (6)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