Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
#149253 01/24/2002 10:34 PM
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Well, I got it working with forms, but the install isn't very pretty. Click on the .org link in my sig to see it, and if anyone wants to take over from here I'll send some instructions for what I've done. Be warned I had to tell it the number of hours difference from GMT to do it and it won't change at daylight savings time automatically...

I'm just trying to throw some ideas in the ring.

Sponsored Links
#149254 01/24/2002 10:38 PM
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
then again there could be some use for my code https://www.ubbdev.com/ubb/ultimatebb.php?ubb=get_topic&f=20&t=000382

i suppose placing a $servertime in the wordlet would be nicer though; dunno how to prepare that either. (lk?...)

#149255 01/24/2002 10:44 PM
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Mines running on an IIS 5.0 server though.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I got XPerT's one to work with Newsfader and AMPM...

[ 01-25-2002 07:53 AM: Message edited by: LK ]

#149257 01/25/2002 10:06 AM
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
quote:
Originally posted by LK:
I got XPerT's one to work with Newsfader and AMPM...




Well....are you going to share?

Sponsored Links
#149258 01/25/2002 10:25 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I put the following in fader.js: (because I have newsfader, others should put it in public_forum_summary.pl or ubb_forum_summary.cgi or whatever)
[code][/code]And in function FDRcountLoads(e) {, I added:
GetTime();

return ((num <=> 9) ? ("0" + num) : num);

It should be with <=, but UBB said there is a parenthesis thing.

Joined: Sep 2001
Posts: 35
Member
Member
Offline
Joined: Sep 2001
Posts: 35
Thx LK works perfect

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
XPerT, the input's size should be 10, you have size="8" class="clrfrms"> and I can't see 'M' letter.

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Thanks, I can't seem to get to my .org board AGAIN...crappy host. I'll change it when I can see it again.

#149262 01/26/2002 12:52 AM
Joined: May 2001
Posts: 197
Member
Member
Offline
Joined: May 2001
Posts: 197
Thanks everyone for your help can anyone make a remake or a final version of it please cause I'm all confuse now

Thanks all !

Sponsored Links
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hi,

I have the following problem with this hack:

The time is shown as: 10:7 AM

the "0" is not there...10:07 AM

What can I do?

I use the second javascript of the hack, becouse I use the newsfader Hack!

Please help me!!

d-talk


Webmaster of d-talk & Kabel-Forum.com
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
"return ((num <=> 9) ? ("0" + num) : num);

It should be with <=, but UBB said there is a parenthesis thing." did you change it to <=?

BTW, now I'm using and :
[code][/code]

[ 01-26-2002 06:07 AM: Message edited by: LK ]

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
XPerT/White, I improved it a bit: if servertime == localtime, show only one. Can I release it in a new thread after I'll add Wordlets and CP support? (to -5)

Joined: Oct 2001
Posts: 199
Member
Member
Offline
Joined: Oct 2001
Posts: 199
LK,

IS that one going to show server time?

Thanks

Rainner

Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hi LK,

I use the 2nd script of the hack:

Current Time is:
< LANGUAGE="JavaScript">
Today = new Date;
Heure = Today.getHours();
Min = Today.getMinutes();
Message = Heure + "h" + Min;
document.write(Message);


How have I to modify it to get the "0" here?

Thanks


Webmaster of d-talk & Kabel-Forum.com
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Rainner: yes
d-talk: oh, that's something else... try to add "

if (Min < 10) { Min = "0" + Min; }

Joined: May 2001
Posts: 197
Member
Member
Offline
Joined: May 2001
Posts: 197
Lk That whould be great I'm simply not enough good to make it work in the cp

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
okay LK

I am lost with instructions. If I take your hack above that shows server time where in public_forum_summary do I put it and what code do I use to make it visiable and is there a way to make it look like Xperts org board .

Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Thank you LK!!!

It works fine!!!

d-talk


Webmaster of d-talk & Kabel-Forum.com
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
I would love to see it released as a valid hack.

#149273 02/02/2002 12:07 PM
Joined: Oct 2001
Posts: 199
Member
Member
Offline
Joined: Oct 2001
Posts: 199
Hey LK

I'm guessing it was released, whats it called and where is it? I can't seem to locate it...

Rainner

#149274 02/02/2002 12:10 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
It's in 6.2 forum

Joined: May 2001
Posts: 34
Member
Member
Offline
Joined: May 2001
Posts: 34
Has anyone figured out how to get the Clock script to run with NewsFader....????

There's a conflict when both hacks are installed....at least for me.

Thanks,

Panda

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I already said how - call "GetTime();" in function FDRcountLoads(e) in fader.js instead of .

#149277 02/05/2002 11:30 PM
Joined: Aug 2001
Posts: 25
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 25
Thanks LK.....I missed your post about NewsFader in this thread.....I'm on my way to make the changes....

Appreciate it!

Panda

Update:

LK,

I added the code you listed for fader.js....

[code][/code]NewsFader went blank and the clock is working.....Did I miss something? I left the other code out since I'd rather have an AM/PM clock.

Can you help me with this?

Thanks,

Panda

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
It shouldn't happen, but put it after function ...., not after else {!

Page 2 of 2 1 2

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
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)