|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Very simple script, suggested by gero: Open ubb_lib_time.cgi. Find: return qq~ <script language="JavaScript1.3" type="text/javascript"> document.writeln(timestamp(new Date($datestring), $dfrm, $tfrm, $dclass, $tclass, $rev, $noadj)); </script>~; Replace with: my $noscript = $dfrm eq 'dfrm' && $tfrm eq 'tfrm' ? &DateFormat($_[0]) . " " . &TimeFormat($_[1]) : $dfrm eq 'dfrm' ? &DateFormat($_[0]) : $tfrm eq 'tfrm' ? &TimeFormat($_[1]) : ''; return qq~ <script language="JavaScript1.3" type="text/javascript"> document.writeln(timestamp(new Date($datestring), $dfrm, $tfrm, $dclass, $tclass, $rev, $noadj)); </script><noscript>$noscript</noscript>~;
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thanks LK, giving it a shot right now
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Question, would this prevent it from continuing to go out of whack--like it did the other day here at UBBDev?
Sue adwoff.com
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
this fixes it for your users using older copies of IE or IE with javascript turned off.
|
|
|
|
Joined: May 2002
Posts: 35
Member
|
Member
Joined: May 2002
Posts: 35 |
I just upgraded to 6.5.. added a few hacks... everything is going fine and then people start telling me that they can't see the timestamps... I can see them fine in Mozilla.. but people with IE can't see them... anyone have any ideas?
I compared the html with ubbdev's and it looks the same (I can see it in ie 6 on ubbdev, but not on my page... none of the time stamps on any pages)
Tried this code, still doing the same thing... I am lost.
edit: seems that clearing out the cookies fixes it...
edit 2: or not... goes back to not displaying the dates, logging out and back in also seems to fix it... and it looks like it's not just ie, but Mozilla at times too
one more edit: going to your profile and updating the settings SEEMS to fix it...
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Aye... edit the profile, log out, clear the cookies, then log back in. That fixes most of the time problems.
UBB.classic: Love it or hate it, it was mine.
|
|
|
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: 449
Joined: February 2008
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|