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 5 of 5

Thread: different style

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    18

    Default different style

    Hello,

    Is there any way to use different style just for translated (language) pages?

    Thank you

  2. #2
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    This applies to booth vBET 2.x (free) and vBET 3.x (commercial) versions.

    If you are on translated page it means that you have set $_GET['language'].

    That means that you are able to do ANY customization which will work only for translated pages. All you have to do is modification which will check does language is set before making any changes.
    Code:
    if ($_GET['language']) {
         DO SOMESTHING SPECIAL ONLY FOR TRANSLTED PAGES
    }
    This code you can include in plugin.

    You can also made special changes inside of templates:
    Code:
    <if condition="$_GET['language']">
         DO SOMESTHING SPECIAL ONLY FOR TRANSLTED PAGES  
    </if>
    Good example for template - handle translation tracking in java script + use internationalized RSS channel (only for vBET 3.x):
    Code:
    <!-- Lastest threads -->
    <script type="text/javascript" src="<if condition="$_GET['language']">/$_GET[language]/</if>external.php?type=js"></script>
    <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
      <tr>
        <td class="tcat">
          Last Posts
        </td>
      </tr>    
      <tr>
        <td class="alt1 bulletlinks">
    <script type="text/javascript">
    <!--
    	for (var i = 0; i < threads.length && i < 6; i++)
    	{
    		document.write('<a href="<if condition="$_GET['language']">/$_GET[language]/</if>showthread.php?t=' + threads[i]['threadid'] + '">' + threads[i]['title'] + '</a>');
    	}
    //-->
    </script>
        </td>
      </tr>    
    </table>
       <br/>
    <!-- Lastest threads END -->

  3. #3
    Junior Member
    Join Date
    Oct 2009
    Posts
    18

    Default

    Great, working fine for me.

    The last thing i need, how to place flags on header only on translated (language) pages please?

    I am really very appreciate your patience and cooperation.

  4. #4
    Junior Member
    Join Date
    Oct 2009
    Posts
    18

    Default

    Thats it

    $vbenterprisetranslatorflags


    Thank you

  5. #5
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Quote Originally Posted by Damas View Post
    Great, working fine for me.

    The last thing i need, how to place flags on header only on translated (language) pages please?

    I am really very appreciate your patience and cooperation.
    Use custom place for flags and place it where you want for translated pages, and where you want for not translated pages using opposite conditions.

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
  •