document...."> document....">
 
Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Very simple script, suggested by gero:

Open ubb_lib_time.cgi.
Find:
Code
	return qq~
<script language="JavaScript1.3" type="text/javascript">
document.writeln(timestamp(new Date($datestring), $dfrm, $tfrm, $dclass, $tclass, $rev, $noadj));
</script>~;
Replace with:
Code
	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>~;

Sponsored Links
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 laugh


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
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? laugh


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.


- Allen wavey
- What Drives You?
Joined: May 2002
Posts: 35
Member
Member
Offline
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...

Sponsored Links
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.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)