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 <script> tags (in functions.php), the block of Javascript is dumped in the page before even the <head>, so unsurprisingly doesn't work.
I'm on a bit of a steep learning curve here with both PHP and Javascript so would really appreciate pointers as to where I'm going wrong!
Many thanks,
Rachael