the golf space golf social networking logo
Advertisement

KARMA 1.0 IS BACK E-mail
Written by Tony Korologos   
Tuesday, 08 July 2008
KARMA FIXED? DISCUSS IN THE TGS FORUM HERE

I don't want to get too excited because I'm not 100% sure. But after over two weeks of working on it, I believe I may have finally gotten KARMA 1.0 back online and working. I tried to hire three professional coders to no avail. They were too busy. I tried to get two friends to look at it, but our schedules didn't work. I went over thousands of lines of code, changed versions of php from 4 to 5 to 4, changed configurations dozens of times, installed, deleted, reinstalled, changed variables, looked at the old site and server code etc...

Finally, over my morning coffee I found a pointer embedded in the comments in another module which only admins can see, which tracks user's IP's for security. It said there were two different ways to track the IP's. I replaced the non working code in karma's file with the alternate code and voila, the IP's posted to the database correctly. The user IP's are posting to the DB again and it all seems to be working right in a few tests.

TAKE KARMA FOR A TEST DRIVE

Try it out and vote up your TGS pals. Make sure you vote for someone that someone else has already voted for. If you can vote for somebody who has already been voted on in the same 24 hour period, we're golden.

Since the karma was messed up last month and into this month, I'm combining June & July's contest and I'll throw in some goodies on top of the regular prize.

Once again, sorry for the trouble. How is one to know that after switching servers that this code would no longer work:

Code:

$myIP = $GLOBALS['REMOTE_ADDR'];
and that this code would:
Code:

$myIP = $_SERVER['REMOTE_ADDR'];
Geez.
 
< Prev   Next >
Beta 1.7 | © Copyright 2006-2008 The Golf Space | Design and concept by Tony Korologos | Visit our sister site Hooked On Golf Blog | Hosted by TKServer.
Terms Of Service | Privacy | About | Advertise | Contact | Rules | Help