Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • aashwin Friend
    #135911

    I am not sure if this is possible but I love how this template looks with the date written beneath the logo.

    My question is, would it be possible to have the actual current date displayed like this, with out having to change it manually every day? It would look really cool.

    scotty Friend
    #281174

    Backup files before modifying!!!

    Open ja_pyrite/index.php and find on line 125…
    [php]<!– END: HEADER –>[/php]On a new blank line immediately AFTER add…
    [php]<div class=”ja-day”>
    <?php
    echo ” <div>”.date (‘l’).” “.date (‘d’).date (‘S’).” “.date (‘M’).” “.date (‘Y’).” </div>”;
    ?>
    </div>[/php]Open ja_pyrite/css/template.css and at the very end add…

    /*Date*/
    .ja-day {
    background:#FFFFFF none repeat scroll 0 0;
    color:#666666;
    font-family:"Segoe UI",Arial,Helvetica,sans-serif;
    font-size:90%;
    letter-spacing:5px;
    position:absolute;
    text-align:center;
    text-transform:uppercase;
    top:132px;
    width:100%;
    }

    If you just want the date and not the day then add this to index.php instead of the code above…
    [php]<div class=”ja-day”>
    <?php
    echo ” <div>”.date (‘d’).date (‘S’).” “.date (‘M’).” “.date (‘Y’).” </div>”;
    ?>
    </div>[/php]

    aashwin Friend
    #281265

    OMG! That is absolutely brilliant – thanks Scotty! 😀

    I wouldn’t have figured this out in a million years. This place is restoring my faith in internet forums (and humanity in general).

    So, is the date coming from my system clock?

    scotty Friend
    #281266

    Your welcome!

    Yes the date is from the visitors PC rather than the server clock.

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

This topic contains 4 replies, has 2 voices, and was last updated by  scotty 15 years, 11 months ago.

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