Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • ger12 Friend
    #185886

    Hi, 🙂

    How can i change the date of ja topbar. it is possible ? :-[

    thank in advance

    Ger.

    pavit Moderator
    #486717

    Hi

    Goto this file templates/ja_Social/ blocks/topbar.php

    and find this code

    <p class="ja-day">
    <?php
    echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
    echo "<span class="date">, ".date ('m')." ".date ('d').date ('S')."</span>";
    ?>
    </p>
    <p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo T3Common::getLastUpdate(); ?></em></p>

    You can change the date format | date (‘m’).” “.date (‘d’).date (‘S’) | or remove what you don’t need to be showed

    Regards

    ger12 Friend
    #486962

    Thank you Pavit,

    How can i change 03

    i would like to show March instead 03

    How can i change the other months too.

    Thanks in advance.

    Ger.

    pavit Moderator
    #486974

    Hi

    Look at this GUIDE

    You need to change

    echo "<span class="date">, ".date ('m')." ".date ('d').date ('S')."</span>";

    to

    echo "<span class="date">, ".date ('F')." ".date ('d').date ('S')."</span>";

    Regards

    ger12 Friend
    #487099

    Thank you, i saw the GUIDE and i found that code:

    echo date(‘l jS of F Y h:i A’);

    shows like:

    Tuesday 19th of March 2013 08:02 PM

    Its ok for me, but how can put that in spanish, i try to put setlocale or strftime instead date but i dont get the result in spanish. :((

    What is the code to put Tuesday 19th of March 2013 08:02 PM in spanish ?

    Thank you in advance.

    Ger.

    pavit Moderator
    #487137

    Did you installed the Spanish language for your website ?

    ger12 Friend
    #487260

    No, where can i found the spanish language ?

    pavit Moderator
    #487293

    <em>@ger12 365467 wrote:</em><blockquote>No, where can i found the spanish language ?</blockquote>

    Hi

    Check this PAGE

    ger12 Friend
    #488872

    Thank you pavit,

    i install spanish language from that page.

    But i dont have any result using : echo date(‘l jS of F Y h:i A’);

    :((

    pavit Moderator
    #488880

    Hi

    Did you set the Spanish language as default for your front end ?

    Did you cleaned you cleaned your JaT3 cache ?

    If problem was still not solved could you send me via PM a temp super user account to your administrator page so i can better check what’s happening ?

    pavit Moderator
    #489001

    Hi

    I checked your website and the error was in the date format in this file templatesja_socialblockstopbar.php

    You used this format echo date(‘l jS of F Y h:i A’); echo takes server values and do not translate the date in spanish taking content from your ini file.

    you need to have it as is now

    <p class="ja-day">
    <?php
    echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
    echo "<span class="date">, ".date ('m')." ".date ('d').date ('S')."</span>";
    ?>
    </p>

    Then change your preferred settings values respecting the format
    e.g. date (‘m’) you can change in date (‘F’) to have Abril instead of 04

    ger12 Friend
    #489043

    Hi Pavit, thank you for your patience.

    I use that code:

    [PHP]<p class=”ja-day”>
    <?php
    echo “<span class=”day”>”.JText::_(strtoupper(date (‘l’))).”</span>”;
    echo “<span class=”date”>, “.date (‘d’).” de “.date (‘F’).” de “.date (‘Y’).”</span>”;
    ?>
    [/PHP]

    and show:

    I need ABRIL

    Thank you in advance.

    Ger.

    ger12 Friend
    #489366

    I dont know why the date show some part in spanish and another part in english…

    Ninja Lead Moderator
    #489394

    <em>@ger12 368296 wrote:</em><blockquote>I dont know why the date show some part in spanish and another part in english…</blockquote>

    You can try this way

    Open


    <p class="ja-day">
    <?php
    echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
    echo "<span class="date">, ".date ('d')." de ".date ('F')." de ".date ('Y')."</span>";
    ?>

    Change to


    <p class="ja-day">
    <?php
    echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
    echo "<span class="date">, ".date ('d')." de ".JText::_(date ('F'))." de ".date ('Y')."</span>";
    ?>

    Remember to clear cache from Admin area

    Let me know the result

    ger12 Friend
    #489461

    Work it!!

    Thank you.

    You are amazing!!! :-*:-*

Viewing 15 posts - 1 through 15 (of 15 total)

This topic contains 15 replies, has 3 voices, and was last updated by  ger12 11 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum