Results 1 to 2 of 2

Thread: 2.8.1 showing "added xxx days ago" instead of x years x months X days...

  1. #1
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default 2.8.1 showing "added xxx days ago" instead of x years x months X days...

    How can I make it display years/months/days instead of total number of days?
    If it's not fun, stop doing it!

  2. #2

    Default

    Hi,

    To showing date instead of total days in vShare, do the following.

    Open vShare/include/functions_insert.php file and find
    Code:
    $addtime = $tmp[$info['field']];
    replace with
    Code:
    $addtime = $tmp[$info['field']];
    return date("Y/m/d", $addtime);
    Then find
    Code:
    $mytime = $var['time'];
    replace with
    Code:
    $mytime = $var['time'];
    return date("Y/m/d", $mytime);
    To know more date formats, check the following link.

    PHP: date - Manual

    If you can't get it fixed. Open a support ticket at BuyScripts Helpdesk

    with your vShare admin and FTP login details.

    Thanks,

    Buyscripts Team.
    Last edited by vshare2; 12-12-2011 at 11:21 AM.

Bookmarks

Posting Permissions

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