Results 1 to 4 of 4
  1. #1
    Senior Member JoeWa's Avatar
    Joined
    Mar 2012
    Location
    Prague, Czech Republic
    Posts
    172
    Thanks
    Received:13
    Given: 35

    Exclamation Where to change the date format for $user_joined

    In Czech the date is presented as: d.m.Y (which shows as 15.6.2012) for example. The date variable used in Pligg outputs March 15, 2012. I've looked in libs/user.php for this and all I can located is the line:

    Code:
    $main_smarty->assign('user_joined', get_date($this->date));
    ...which doesn't specify the output. Can you point me in the right direction? Many thanks!

  2. #2
    Senior Member/Coder/Designer cmstheme's Avatar
    Joined
    Jan 2007
    Location
    Philippines
    Posts
    732
    Thanks
    Received:15
    Given: 1
    Site
    http://www.oxythemes.com
    You can replace it with:
    PHP Code:
    $main_smarty->assign('user_joined'date("d.m.Y"$this->date)); 

  3. #3
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,513
    Thanks
    Received:87
    Given: 14
    Site
    http://pligg.com/demo/
    Smarter idea is to make the change in your template file so that it doesn't get overwritten by future Pligg updates.

    PHP Code:
    {php
        
    $joined $this->_vars['user_joined'];
        
    $time strtotime$joined );
        echo 
    date'F n, Y'$time ); // June 25, 2012
        
    echo date'j.m.Y'$time ); // 25.06.2012
    {/php
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  4. #4
    Senior Member JoeWa's Avatar
    Joined
    Mar 2012
    Location
    Prague, Czech Republic
    Posts
    172
    Thanks
    Received:13
    Given: 35
    Agreed Yankidank, thanks for the input from both of you.

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
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg