|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
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?
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
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
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.
|
|
|
|
Joined: Oct 1999
Posts: 282
Enthusiast
|
Enthusiast
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
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.
|
|
|
|
Joined: Oct 1999
Posts: 282
Enthusiast
|
Enthusiast
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.
|
|
|
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: 70
Joined: January 2007
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|