13
Hi I think I have fixed the rating problem.
Please open ratelink.php and overwrite following lines
le="color: #000000"><?php if (!empty($HTTP_POST_VARS['submit'])) { $eh = new ErrorHandler; //ErrorHandler object if (empty($xoopsUser)) { $ratinguser = 0; } else { $ratinguser = $xoopsUser->getVar('uid'); } //Make sure only 1 anonymous from an IP in a single day. $anonwaitdays = 1; $ip = getenv('REMOTE_ADDR'); $lid = (int)$HTTP_POST_VARS['lid']; $cid = (int)$HTTP_POST_VARS['cid']; $rating = (int)$HTTP_POST_VARS['rating'];
with this lines
le="color: #000000"><?php if (!empty($_POST['submit'])) { $eh = new ErrorHandler; //ErrorHandler object if (empty($xoopsUser)) { $ratinguser = 0; } else { $ratinguser = $xoopsUser->getVar('uid'); } //Make sure only 1 anonymous from an IP in a single day. $anonwaitdays = 1; $ip = getenv('REMOTE_ADDR'); $lid = (int)$_POST['lid']; $cid = (int)$_POST['cid']; $rating = (int)$_POST['rating'];
the problem is this piece of php "$HTTP_POST_VARS"