vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=180741

ammoskumar 28 May 2008 19:55

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 28 May 2008 20:02

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 28 May 2008 20:05

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 29 May 2008 00:43

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 29 May 2008 21:03

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

LOL

iogames 30 May 2008 01:27

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

rigodiaz 30 May 2008 01:48

Thank you man!

stardotstar 30 May 2008 03:27

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 30 May 2008 17:15

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 30 May 2008 18:58

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 31 May 2008 13:47

Thank You Very Much!

CHEROKYE 31 May 2008 14:11

Is fantastic, Thanks

nokidding 31 May 2008 19:18

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

jewropa 31 May 2008 20:14

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 31 May 2008 20:38

1 Attachment(s)
Here: The first Folder


All times are GMT. The time now is 09:07.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.