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
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:
417
Joined: November 2001
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614Nov 14th, 2025
Currently Online 2813
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 5