Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 7 of 7

Thread: Flags location

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    13

    Default Flags location

    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

  2. #2
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    Hello,
    You have your own bigger flags in .png format, right?
    similar code you can find in vbenterprisetranslator_flag template.

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Posts
    13

    Default

    Quote Originally Posted by kamilkurczak View Post
    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:
    Code:
    <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.
    Code:
    .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

  4. #4
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    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
    Code:
     width="24" height="24"
    in vbenterprisetranslator_flag template.

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

  5. #5
    Junior Member
    Join Date
    Nov 2010
    Posts
    13

    Default

    Quote Originally Posted by kamilkurczak View Post
    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
    Code:
     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?

  6. #6
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    ok, but if you make:
    admincp->styles & templates-> search
    vbenterprisetranslator_flag

    find:
    Code:
    <img class="vbet-flag vbet-$flagCode" width="16" height="11" src="{$flagspath}clear.gif" alt="$flagName"
    and replace with
    Code:
    <img width="24" height="24" src="{$flagspath}{$flagCode}.png" alt="$flagName"
    is it work?

  7. #7
    Junior Member
    Join Date
    Nov 2010
    Posts
    13

    Default

    Quote Originally Posted by kamilkurczak View Post
    ok, but if you make:
    admincp->styles & templates-> search
    vbenterprisetranslator_flag

    find:
    Code:
    <img class="vbet-flag vbet-$flagCode" width="16" height="11" src="{$flagspath}clear.gif" alt="$flagName"
    and replace with
    Code:
    <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
    Last edited by MicroHellas; 12-11-10 at 17:00.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •