If your url looks something like this: "yamoto-studios.com/forum&threadID=234"
then I'd guess that the script was written with the assumption that the php ini value for "register_globals" would always be "on". The assumption should be that it will always be "off", as having it on is deprecated and has been for a long time. In your script, change (after back-up) all occurances of "$threadID" to "$_GET['threadID']".
if that doesn't help then my guess is wrong.