I’ve been trying to implement a solution for moderating comment karma from TrueSlant.
However, when I get to the section on triggering the AJAX using jQuery, everything goes wrong.
I’m including the various functions in functions.php, and when I paste the jQuery code in as shown on the True/Slant page, I get the PHP error message:
Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in (my-site-path)/functions.php on line 79.
If I enclose it in
<head>, so unsurprisingly doesn’t work.
- The topic ‘jQuery and functions.php problems: PHP errors OR script called before head’ is closed to new replies.