Quote:
Originally posted by Erwin
Easy. 
In userrate.php, find:
PHP Code:
} elseif ($rateduser[allowrate]==0) {
eval("standarderror(\"".gettemplate("error_norate")."\");");
exit;
Underneath, add:
PHP Code:
} elseif ($bbuserinfo['userid'] == $rateduser[userid]) {
eval("standarderror(\"".gettemplate("error_samerate")."\");");
exit;
Then, add a new template called:
error_samerate
with this contents:
Code:
You are not allowed to rate yourself! Press the back button to return to where you were.
Done!
|
I tried this, Erwin, but I'm getting a parse error with this line, and I'm not sure why...
} elseif ($bbuserinfo['userid'] == $rateduser[userid]) {
? That looks ok to me?