PDA

View Full Version : Solved Flags location



MicroHellas
12-11-10, 08:21
Hello,

When I was using your free version I had modified the template to use .png flags bigger than the original, as I was using around 10 languages. Then I've changed $path$code.gif to $path$code.png and everything was ok.

In the pro version, I can't find anything similar. Could you please tell me how I can use again bigger flags?

Thank you
Maria

kamilkurczak
12-11-10, 10:34
Hello,
You have your own bigger flags in .png format, right?
similar code you can find in vbenterprisetranslator_flag template.

MicroHellas
12-11-10, 11:06
Hello,
You have your own bigger flags in .png format, right?
similar code you can find in vbenterprisetranslator_flag template.

I don't think that it solves the issue. At that template there is only one line, and the src values dosen't says anything that can be changed except the dimensions:


<img class="vbet-flag vbet-$flagCode" width="24" height="24" src="{$flagspath}clear.gif" alt="$flagName"**********

As I seen there is a css file in the flags directory. The problem is that I can't modify it as I can't calculate the positions.


.vbet-flag {
background: url(allflags.gif) no-repeat top left;
}
.vbet-af { background-position: 0 0; }
.vbet-ar { background-position: -17px 0; }
.vbet-be { background-position: -34px 0; }
.vbet-bg { background-position: -51px 0; }


Could you please give me a step by step guide on what I need to change, having in mind that:
1.- Laguage filename are same
2.- Only the extention is different (png instead gif)
3.- Flag dimensions are 24 X 24 pixels.

Thank you
Maria

kamilkurczak
12-11-10, 11:40
ok but I don't have this file in your size and format (.png)
but your can try to save your file as .gif format and replace with our vbet flags and change
width="24" height="24" in vbenterprisetranslator_flag template.

you can test it. after that you can change positions in css file

MicroHellas
12-11-10, 11:50
ok but I don't have this file in your size and format (.png)
but your can try to save your file as .gif format and replace with our vbet flags and change
width="24" height="24" in vbenterprisetranslator_flag template.

you can test it. after that you can change positions in css file

It was so easy in the Free version. Just an extention change. Why you did it so complicated in the Pro version?:cool:

kamilkurczak
12-11-10, 12:02
ok, but if you make:
admincp->styles & templates-> search
vbenterprisetranslator_flag

find:

<img class="vbet-flag vbet-$flagCode" width="16" height="11" src="{$flagspath}clear.gif" alt="$flagName"
and replace with

<img width="24" height="24" src="{$flagspath}{$flagCode}.png" alt="$flagName"

is it work?

MicroHellas
12-11-10, 16:18
ok, but if you make:
admincp->styles & templates-> search
vbenterprisetranslator_flag

find:

<img class="vbet-flag vbet-$flagCode" width="16" height="11" src="{$flagspath}clear.gif" alt="$flagName"
and replace with

<img width="24" height="24" src="{$flagspath}{$flagCode}.png" alt="$flagName"

is it work?

YES!! It was showing the all flags background but I removed the background from the top of css file, and now is everything ok.
[EDIT] ...but unfortunatelly, by removing the all flags background from css, it disappears the flags from all other points that flags are used (eg registration form).

Thank you
Maria

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages thanks to vBET Translator 4.10.1