|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
It's not like White's version. Thanks to White and XPerT. Name: UBB™ Thinking Clock. Description: Shows a ticking clock with both UBB and local time. Link: Text File or MultiHack File Demo: http://www.lkubb.dns2go.com Requirement: UBB™ 6.2.0 Beta Release 1.0 To get it to work with 6.1.0, just remove &Template sub and instead of %%stuff%%, use "+local+" or "+server+".
|
|
|
|
Joined: Jun 2001
Posts: 442
Member
|
Member
Joined: Jun 2001
Posts: 442 |
hey I've already go that 
Audi-Sport.net the only forum guaranteed to kill any server!
|
|
|
|
Joined: Oct 2001
Posts: 224
Spotlight Runner-Up
|
Spotlight Runner-Up
Joined: Oct 2001
Posts: 224 |
didnt work on 6.1.0.3, going to try again...
|
|
|
|
Joined: Oct 2001
Posts: 224
Spotlight Runner-Up
|
Spotlight Runner-Up
Joined: Oct 2001
Posts: 224 |
in public_forum_summary.pl, the java script edit creates a conflict with the lightbulbs, and they wont show up, same for the clock.
Could someone please adapt this hack to UBB6.1.0.x? Its a good hack, but I cant seem to make it work on 6.1.0.3...
[ 01-26-2002 04:22 PM: Message edited by: Unnamed ]
|
|
|
|
Joined: Dec 2000
Posts: 595
Member
|
Member
Joined: Dec 2000
Posts: 595 |
great job lk
might i suggest adding date also
i wanted to add ip too, theres an easy javascript for this i believe
|
|
|
|
Joined: Aug 2001
Posts: 155
Member
|
Member
Joined: Aug 2001
Posts: 155 |
ooooo spiffy... 
I'm not really back. I went away again.
|
|
|
|
Joined: May 2001
Posts: 197
Member
|
Member
Joined: May 2001
Posts: 197 |
Thanks for this improvement really great job. COntinue the good work 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Found a bug, fixed a bug. Rehack public_forum_summary.pl.
|
|
|
|
Joined: Apr 2001
Posts: 18
Junior Member
|
Junior Member
Joined: Apr 2001
Posts: 18 |
I can't find the vars_wordlets_mods.cgi. I searched in the cgibin and in templates and nowhere to be found.
|
|
|
|
Joined: Nov 2001
Posts: 31
Junior Member
|
Junior Member
Joined: Nov 2001
Posts: 31 |
Really useful, I used it on the UBB at JCF
|
|
|
|
Joined: Oct 2001
Posts: 224
Spotlight Runner-Up
|
Spotlight Runner-Up
Joined: Oct 2001
Posts: 224 |
LK, could you please make UBB6.1.0.3 Thinking Clock 4 dumies instructions [ 01-27-2002 03:03 PM: Message edited by: Unnamed ]
|
|
|
|
Joined: May 2001
Posts: 15
Junior Member
|
Junior Member
Joined: May 2001
Posts: 15 |
Hi, I tried to install this, but it won't show up. I only get 1 border and error's on the page. For a link, its http://www.animegamerz.com/ultimatebb.cgi . Also, how do I get vars_wordlet_mods.cgi to be reconized?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Don't use +2 in the GMT offset, use just 2 (without the +).
|
|
|
|
Joined: May 2001
Posts: 15
Junior Member
|
Junior Member
Joined: May 2001
Posts: 15 |
Ok, I've done that and it still doesn't work. I think its the Clocks border, but I can't tell...
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I don't know if it matters, but you accidently pasted it twice:[code][/code]
|
|
|
|
Joined: May 2001
Posts: 15
Junior Member
|
Junior Member
Joined: May 2001
Posts: 15 |
Ugh, nope, that doesn't do anything... I'll start all over hacking it.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Remove the 2nd instance of: [code][/code]If it doesn't work, try to remove the JavaScripts from the footer and tell me if it fixes it.
|
|
|
|
Joined: May 2001
Posts: 15
Junior Member
|
Junior Member
Joined: May 2001
Posts: 15 |
ugh, I know I probally sound annoying, but how do I do that? I've rehacked it and it still doesn't work...
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Open CP - Style Templates - choose template - Footer. Try to cut everything there, if it works, paste and tell me it works, if not.. hmm.. paste and tell me it doesn't 
|
|
|
|
Joined: May 2001
Posts: 15
Junior Member
|
Junior Member
Joined: May 2001
Posts: 15 |
Yeah, that worked. I deleted it right away though because it didn't look to good, but it did show up.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Lk,
I installed your hack on a clean 6.2 and the time does not show up. I placed the offset in the control panel but that only lets the light bulbs be shown. The time area is still a thin line?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
How can I help if you already removed it? 
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Nope I was recoding it incase I made a mistake which I did not. I see your there looking around it is back and same mistake again. I will await your fix 
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
The problem lies in the wordlets I will tell you that much. I am trying to fix it but everything I do does not work.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
I finally got it. I see alot of people are having problems with the same thing one way or another. I don't know exactly what I did but it was the hardest time I ever had updating the mod wordlets file. Every time it kept emptying it out. I finally got it to go through. Nice Hack
|
|
|
|
Joined: Sep 2000
Posts: 111
Member
|
Member
Joined: Sep 2000
Posts: 111 |
I had the same problem, please post your solution.
Mr. Bill
|
|
|
|
Joined: Jul 2001
Posts: 14
Junior Member
|
Junior Member
Joined: Jul 2001
Posts: 14 |
Where can I find the Mod Wordlets file? I tried this site, http://dpk.b000.net , but apparently it's closed. Thanks in advance!
|
|
|
|
Joined: Oct 2001
Posts: 199
Member
|
Member
Joined: Oct 2001
Posts: 199 |
Hi LK quote:
To get it to work with 6.1.0, just remove &Template sub and instead of %%stuff%%, use "+local+" or "+server+".
I'm trying on 6.1.0.3 and I cannot find &Template sub or %% in any of the edited files. Where can I find these?
Thanks
Rainner
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
my $option1 = &Template($vars_wordlets_mods{time_localboard}, { USERTIME => '"+local+"', SERVERTIME => '"+server+"' });
my $option2 = &Template($vars_wordlets_mods{time_current}, { TIME => '"+local+"' });
And the Wordlets have %%stuff%%.
|
|
|
|
Joined: Oct 2001
Posts: 199
Member
|
Member
Joined: Oct 2001
Posts: 199 |
|
|
|
|
Joined: Oct 2001
Posts: 199
Member
|
Member
Joined: Oct 2001
Posts: 199 |
Hi Lk, Sorry ot bother you again. I now removed from public_forum_summary.pl: quote:
my my $option1 = &Template($vars_wordlets_mods{time_localboard}, { USERTIME => '"+local+"', SERVERTIME => '"+server+"' });
my $option2 = &Template($vars_wordlets_mods{time_current}, { TIME => '"+local+"' });
And replaced the %%stuff%% in vars_wordlets_mods.cgi quoted below: quote:
'time_localboard' => "Your Time: %%USERTIME%%. Board's Time: %%SERVERTIME%%", 'time_current' => "Current Time: %%TIME%%",
to:
'time_localboard' => "Your Time: +local+. Board's Time: +server+", 'time_current' => "Current Time: +time+",
Is this correct?
Thanks
Rainner
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
No, use '+stuff+' (with '')
|
|
|
|
Joined: Jan 2002
Posts: 21
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 21 |
i don't know if this is correct but i replace
thelement.innerHTML = (local != server) ? "$option1" : "$option2";
with
thelement.innerHTML = (local != server) ? "Your Time: "+local+". Board's Time: "+server+"" : "Current Time: "+local+"";
it's seem to be working ok on 6.1.0.3
|
|
|
|
Joined: Oct 2001
Posts: 224
Spotlight Runner-Up
|
Spotlight Runner-Up
Joined: Oct 2001
Posts: 224 |
LK, the javascript that you ask to add the public_forum_summary.pl creates a conflict with the lightbulbs. If I separate the scripts in two and lightbulbs work, but the clock still wont show up.
I am trying to install this on ubb6.1.0.3...could you help me somehow?
|
|
|
|
Joined: Oct 2001
Posts: 199
Member
|
Member
Joined: Oct 2001
Posts: 199 |
I'm having the same problem as Unnamed. Lights go away and the clock dosn't show. I thought it was because I wasn't getting the previous problem corrected properly.
Rainner
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
Here are the error messages I received when I installed it on a test 6.2.1 test board> The outline of the table shows, but no script, and the lights go away:
1) For line beginning var session_dt - Warning 5001, global variable "session_dt" already defined in global scope
2) For line beginning var session_j - Warning 5001, global variable "session_j" already defined in global scope
3) For line beginning var_pacif=check 24 - error 1005, expressioin expected
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
Thank you for replying. I was able to fix the javascript so that the lightbulbs now work. However, the clock is not working yet. The test board is at http://www.karass.nu/cgi-bin/ubb/ultimatebb.cgi I would appreciate any suggestions you can offer.
|
|
|
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,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|