GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   GFY post order problem...my solution for you Lens =) (https://gfy.com/showthread.php?t=410164)

Varius 12-29-2004 08:17 PM

GFY post order problem...my solution for you Lens =)
 
I have noticed that posts are being shown in bad orders and believe I know your problem.

If you have multiple servers, their times are probably not synchronized.

The solution is to use the database's native function, for example if it's a unix timestamp in MySQL have your coder modify the places it inserts the time to do this instead:

BEFORE
timestamp_field='$time'

AFTER
timestamp_field=UNIX_TIMESTAMP()

This will ensure that no matter what server the post comes from, it gets the current timestamp of the DB inserted....and no more post order mixup :thumbsup

If that's not your problem, then nevermind this post :upsidedow

Juicy D. Links 12-29-2004 08:24 PM

Keith your posts give me WOOD

Varius 12-29-2004 08:30 PM

Quote:

Originally Posted by Juicy D. Links
Keith your posts give me WOOD

Just trying to do my part so you can hit 100K without going insane from posts moving up and down :1orglaugh

Spunky 12-29-2004 08:30 PM

Quote:

Originally Posted by Juicy D. Links
Keith your posts give me WOOD

http://www.renegadetgp.com/fag.jpg

tungsten 12-29-2004 08:33 PM

didn't notice that yet.. :pimp

skelly 12-29-2004 09:44 PM

Quote:

Originally Posted by Varius
If you have multiple servers, their times are probably not synchronized.

One of the servers was off by about 30 seconds earlier. They are all sync'ed on an external NTP server now.

TheMob 12-29-2004 09:59 PM

juicy, wow you got your name changed..

xlogger 12-29-2004 10:14 PM

Quote:

Originally Posted by spunky

hotlink! :1orglaugh


http://www.renegadetgp.com/fag.jpg http://www.renegadetgp.com/fag.jpg http://www.renegadetgp.com/fag.jpg http://www.renegadetgp.com/fag.jpg http://www.renegadetgp.com/fag.jpg


All times are GMT -7. The time now is 09:47 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123