Comments are not buried
| Project: | Simple Karma |
| Version: | 5.x-1.3 |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hi, first of all congratulations for this great mod. This is exactly what I've been looking for for quite a while now.
My problem is that the comment burying is not working, simply they are not changed to the HTML text I entered. Everything in the module works just fine except this.
When I go to /simple_karma/buried_comments in order to see all the buried comments, I get the right amount of buried comments but with no content, and one error message for each that says:
warning: Invalid argument supplied for foreach() in /var/home2/clrk/public_html/89/modules/node/node.module on line 504.
warning: implode() [function.implode]: Bad arguments. in /var/home2/clrk/public_html/89/modules/node/node.module on line 508.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /var/home2/clrk/public_html/89/includes/database.mysql.inc on line 172.
I followed the instructions step by step, have the correct JQuery version, and ran the update script when I updated to 1.3. What could be wrong?
Thanks for the module and thanks in advance for your help.

#1
Hi,
Somebody is using my module!
What is actually amazing, is that I released version 4 of this module WHILE you entered this bug report... and guess what version 4 does? :-D
Sorry about this - the comment went through a major rewrite since allowing node voting, and... well, this one slipped!
Please let me know if the new version works!
It works here...
Bye!
Merc.
#2
Marking this bug as "closed". Please let me know if it still gives you problems with version 1.4 of the module...
#3
Closing it. If I mark it as fixed, it stays open...!
#4
Hi,
I downloaded and installed the new version... now I get no errors in the buried comments page, but all comments, even those below the threshold, still appear in nodes. The module is working just fine in everything else, karma is recorded, etc, and I think I would be able to modify a hack I used for the vote up/down module in order to hide buried comments, but I would rather use the module's built in system.
I tried restoring comment.tpl.php back to the original one just in case my editing removed something necessary, but with no luck.
Thanks in advance, this module rocks. You'll see it in action in a few days. :)
#5
Hi,
OK, before I dive into the code: do you realise that the karma administrator sees *all* comments, even the ones that are buried?
So... can yo uplease do this for me:
* Make sure a comment gets enough bad karma to get buried
* Make sure the comment appears in the "Buried comments" page (fingers crossed!)
* View that comment is the actual node page as the karma administrator - you should be able to see it
* VIew that same page as a NORMAL user. And please confirm that the comment is actually buried :-D
Please let me know if ANY of the points above don't work!
Merc,
#6
Ok, now I feel really stupid. On hindsight, it was obvious that the admin was supposed to see all comments. I logged off and poof!... comments are buried.
Thanks a lot for all your help and all the effort in this module, I'll let you know when you can see your module live.
#7
Hi,
OK, no worries at all :-D
As I said, any improvement to the standard CSS file would be reaaaaalllyyyyy most welcome.
Especially because right now it doesn't fit very nicely in the "links" section, which is how most people (I assume) will use it...
Bye!
Merc.