Joined: Feb 2004
Posts: 182
Member
Member
Joined: Feb 2004
Posts: 182
Hi,
I find also to change the old date and time in ubbt 6.x more nicely than in ubbt 7.0 ... around the time you go in libs/ubbthreads.inc.php
##
##In ubbthreads.inc.php
##
#
# Find this:
#
// Is it today or yesterday? if( !$full && ($origtime > ($midnight - 86400)) && $diff > -1) { if( $origtime > $midnight ) { if ($diff < 3600) { $minutes = intval($diff / 60); $seconds = $diff - ($minutes * 60); if ($seconds == 1) { $seconds_print = sprintf($ubbt_lang['SECOND_AGO'],$seconds); } else { $seconds_print = sprintf($ubbt_lang['SECONDS_AGO'],$seconds); } $minutes_print = ""; if ($minutes) { if ($minutes == 1) { $minutes_print = sprintf($ubbt_lang['MINUTE_AGO'],$minutes) . " "; } else { $minutes_print = sprintf($ubbt_lang['MINUTES_AGO'],$minutes) . " "; } } $parts = array("","{$minutes_print}{$seconds_print} {$ubbt_lang['AGO']}"); } else { $parts = array( $ubbt_lang['TODAY_AT'], date( "$time_format", $time ) ); } } else { $parts = array( $ubbt_lang['YESTERDAY_AT'], date( "$time_format", $time ) ); } } if( !count( $parts ) ) { $parts = explode( '|', @date($timeformat, $time) ); } #
# Change to:
#
// Is it today or yesterday? if( !$full && ($origtime > ($midnight - 86400)) && $diff > -1) { /* if( $origtime > $midnight ) { if ($diff < 3600) { $minutes = intval($diff / 60); $seconds = $diff - ($minutes * 60); if ($seconds == 1) { $seconds_print = sprintf($ubbt_lang['SECOND_AGO'],$seconds); } else { $seconds_print = sprintf($ubbt_lang['SECONDS_AGO'],$seconds); } $minutes_print = ""; if ($minutes) { if ($minutes == 1) { $minutes_print = sprintf($ubbt_lang['MINUTE_AGO'],$minutes) . " "; } else { $minutes_print = sprintf($ubbt_lang['MINUTES_AGO'],$minutes) . " "; } } $parts = array("","{$minutes_print}{$seconds_print} {$ubbt_lang['AGO']}"); } else { $parts = array( $ubbt_lang['TODAY_AT'], date( "$time_format", $time ) ); } } else { $parts = array( $ubbt_lang['YESTERDAY_AT'], date( "$time_format", $time ) ); } */ } if( !count( $parts ) ) { $parts = explode( '|', @date($timeformat, $time) ); } Then you go to the Control Panel on Clear Cache and click the button below to clear the cached information.
Ready, now you have the date and time from ubbt 6.x
Attachments
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
danke micky
Joined: Oct 2006
Posts: 21
Newbie
Newbie
Joined: Oct 2006
Posts: 21
Hey Micky, thank you very much, nice to see
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Posts:
1,157
Joined: July 2001
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166Sep 15th, 2019
Currently Online
Topics Created
Posts Made
Users Online
Birthdays