Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Joined: Apr 2000
Posts: 5
Junior Member
Junior Member
Offline
Joined: Apr 2000
Posts: 5
That screwed me up to

at the top of the file change
Code
code:
to
Code
code:

Sponsored Links
Joined: Apr 2000
Posts: 5
Junior Member
Junior Member
Offline
Joined: Apr 2000
Posts: 5
Cool hack,
I have changed the code a little so it opens in a javascript window, No demo because my board is local, It wont take long to do add but backup your files first [Linked Image]

First open Utimate.cgi

Find:
Code
code:
Put below:
Code
code:
Find:
Code
code:
Put below:
Code
code:
Sorry to put all this code here but I the file upload didnt work
make a new file called 'worldtime.cgi' overwrite your old one if you have got it and paste this into it
Code
code:
Sorry!
Good luck [Linked Image]

Joined: Mar 2000
Posts: 14
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 14
I'm sure it's just me - but i cant find the code in ubb_library.pl to put the inserted code after.

die( &StandardHTML("Invalid characters in your submitted variables. The time and IP was logged.") );
}
return 1;
} # end SR

The above code just doesn't seem to be there. Is there a line number or an approximate area someone can refer me to to find it? I've gone thru the thing about 20x. I'm using v5.40.

Thanks.


Eagles may soar, but weasels don't get sucked into jet engines.
Joined: Apr 2000
Posts: 5
Junior Member
Junior Member
Offline
Joined: Apr 2000
Posts: 5
line: 2279, in 5.44a

Joined: Mar 2000
Posts: 26
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 26
The following is my new error in the control panel after I submit a time offest. Can someone tell me what is wrong now. Also put a list of teh time offsets used already.


Error including required files: Can't locate tzvariables.file. in @INC (@INC contains: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 .) at cpanel2.cgi line 49. Make sure these files exist, permissions are set properly, and paths are set correctly.

Sponsored Links
Joined: Mar 2000
Posts: 14
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 14
Great, i dont have a line 2279 in v 5.40. The last line is 2182. Can i just put it at the end?


Eagles may soar, but weasels don't get sucked into jet engines.
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Nevex - did you upload the tzvariables.file to where your other variables files are? Did you chmod it 777? Did you add the "require tzvariables.file" statement to both cpanel.cgi and cpanel2.cgi?

Mikal - yes you can just add that subroutine to the end of ubb_library.pl.

------------------
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Moderator
http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi

Joined: Mar 2000
Posts: 14
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 14
Like Nevex, I'm getting an error message of::

Error including required files: Can't locate tzvariables.file in @INC (@INC contains:
/usr/libdata/perl5/i386-bsdos/5.00402 /usr/libdata/perl5 /usr/libdata/perl5/site_perl/i386-bsdos
/usr/libdata/perl5/site_perl /usr/libdata/perl5/site_perl/i386-bsdos/include .) at cpanel.cgi line 43. Make sure
these files exist, permissions are set properly, and paths are set correctly.

Except mine came when I just click on the 'time zones' link - not when i actually submit any offsets. I double checked - the permissions are correct on cpanel and cpanel2, both have the require tzvariables.file line. Paths to perl are correct on both files.


Eagles may soar, but weasels don't get sucked into jet engines.
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
You put the the tzvariables.file where your other variable files are correct? (I'm just asking all the basics here to make sure nothing was overlooked)

------------------
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Moderator
http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi

Joined: Mar 2000
Posts: 14
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 14
Yes, its with the other .files, in the ubb folder (as opposed to the cgi-bin folder).


Eagles may soar, but weasels don't get sucked into jet engines.
Sponsored Links
Joined: Mar 2000
Posts: 26
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 26
Yeah I did do that, I followed directions to the letter. I also sent you and email with my files to view.

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
I don't know what to say guys, I've looked through the code like 50 times and I can't see a problem. If it was a universal problem, everybody would be complaining, so that leads me to believe you are leaving something out, although I can't figure out what it is.

------------------
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Moderator
http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi

Joined: Mar 2000
Posts: 26
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 26
Do me a favor and answer my email and look at my code. You might find your answer there.

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Find send it to me again and I will try to look at it a bit later.

------------------
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Moderator
http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi

Joined: Mar 2000
Posts: 14
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 14
GOt mine going - seems i very carefully and intentionally put hte tzvariables file in the ubb not the cgi-bin folder...sigh...and THEN missed that it was in the wrong place - thru THREE checks of my work no less *dies of embarrassment* -thanks for your help - got it working now.


Eagles may soar, but weasels don't get sucked into jet engines.
Joined: Jan 2000
Posts: 5
SNA Offline
Member
Member
Offline
Joined: Jan 2000
Posts: 5
In yer tzvariables.file the first line reads

$TimeZoneDisplay = "no;"

might wanna take a look at that.

almost deleted the whole hack cause of that little erorr.

------------------
Jason [AW3CPID: SNA]

Joined: Jan 2000
Posts: 5
SNA Offline
Member
Member
Offline
Joined: Jan 2000
Posts: 5
sigh...


6. Now open "cpanel2.cgi". Look for the following:

require "ubb_library2.pl";

Right under that, add this:

require "tzvariables.file.";

See if u see anything wrong with the require line.

Is there anything other erros? Sheesh



------------------
Jason [AW3CPID: SNA]

Joined: Mar 2000
Posts: 6
Junior Member
Junior Member
Joined: Mar 2000
Posts: 6
I just d/l'ed this hack today and the error was still included in the zip...

Code
code:
[/B]


This is also still there:
Quote
quote:
Fixed those two errors and now after submitting tz changes I am returned a blank html doc [Linked Image]



[This message has been edited by dieKetzer (edited April 12, 2000).]

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Will fix the zip, thanks for catching the typos.

------------------
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Moderator
http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
I can't add mat-t's javascript version of this. It screws up my UBB. Any help?

Joined: Sep 2001
Posts: 5
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 5
port to ubb6? I'll have a try

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
That would be good. I don't even think the World time hack was made for 6.0

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
will this not work as is with 6.1.x.x ?

would love to have it available for 6.1.x.x !!!

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
It hasn't be released yet for 6.1.0.

Joined: Dec 2001
Posts: 51
Member
Member
Offline
Joined: Dec 2001
Posts: 51
Yes it would be great to see this ported over

*hint hint nudge nudge*


Joined: Nov 2001
Posts: 198
Member
Member
Offline
Joined: Nov 2001
Posts: 198
lol I was making something like that for 6.1, but have been delayed by homework frown

EDIT:
it is actually ready to release, but unfortunately it don't work when the cache is enabled, so that's a problem, to say the least wink

[ 01-02-2002 02:33 PM: Message edited by: pumpkin ]


Just another boring 17-year-old
and yes, I like smilies/graemlins
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
*the anticipation builds*



can't find peace of mind but every corner's got a mcdonalds?!
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
quote:
Originally posted by actfact:
Yes it would be great to see this ported over

*hint hint nudge nudge*

laugh

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
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)