|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
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.
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
Mines running on an IIS 5.0 server though.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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 ]
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
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?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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
Joined: Sep 2001
Posts: 35 |
Thx LK works perfect 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
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.
|
|
|
|
Joined: May 2001
Posts: 197
Member
|
Member
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 !
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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
Admin / Code Breaker
|
Admin / Code Breaker
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
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
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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
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
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
Joined: May 2001
Posts: 684 |
Thank you LK!!!
It works fine!!!
d-talk
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
I would love to see it released as a valid hack.
|
|
|
|
Joined: Oct 2001
Posts: 199
Member
|
Member
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: May 2001
Posts: 34
Member
|
Member
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
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I already said how - call "GetTime();" in function FDRcountLoads(e) in fader.js instead of .
|
|
|
|
Joined: Aug 2001
Posts: 25
Junior Member
|
Junior Member
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
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
It shouldn't happen, but put it after function ...., not after else {!
|
|
|
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.
|
|
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|