Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
[6.0.1]

w3t_Posts.B_LastEdit, w3t_Online.O_Last, and w3t_Subscribe.S_Last are int9. Should that be int11?

P.S. This reminds me of something I've been curious about. Why are numeric Unix timestamps used, rather than the built-in MySQL date/time column types?

Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
When originally creating the scripts I had thought that the number after the INT was how many places there were, like INT(11) would be an 11 digit integer. Actually it's a lot bigger than that. Even an INT(9) is probably too big. Need to figure out the actual size but haven't had a chance yet.

As for using the builtin mysql date/time columns, I wasn't sure if that was going to be flexible enough when first creating threads.


UBB.threads Developer
Joined: Oct 2000
Posts: 60
Power User
Power User
Offline
Joined: Oct 2000
Posts: 60
All INT(X) does is specify how many digits are actually shown. In MySQL, INT is always 4 bytes long, which means that it stores: -2147483648 to 2147483647, or when used with unsigned, 0 to 4294967295.

Bommer #219912 07/01/2002 2:38 AM
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
nice try with the cookie stuff. Luckily it won't work!

Joined: Oct 2000
Posts: 60
Power User
Power User
Offline
Joined: Oct 2000
Posts: 60
Actually, it did work until threadsdev was upgraded to 6.0.2... which is a frightening thought. It was my second (and more complex) example of why html in signatures is bad. You could tell whether that script could read your cookies based on whether you got the grin or frown image back (grin = it could read them, frown = it couldn't).

Last edited by powerlord; 07/01/2002 8:56 AM.
Sponsored Links
Bommer #219914 07/01/2002 9:04 AM
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
It worked before? I disabled HTML in my whole forum, but if it still works in signatures... Looks like I have to update to 6.0.2 asap.


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
Posts: 70
Joined: January 2007
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 20240430)