geeky

b2 comments disabling

i wrote a b2 comments disabling hack. since i don’t have a computer at home right now. i did this at work really fast. it’s understandable there might be error but it’s working for me.

it’s really annoying to implement tho. this is mainly for gaile. but if you want it, feel free to use it.

here’s the hack

also, if you want to list your comments newest at the top instead of the default oldest at the top. just open your b2comments.php
change:

$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date";

to:

$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date DESC";

i hope the hack works for you coz i won’t be able to fix anything until monday.

10 thoughts on “b2 comments disabling

  1. hey, if you have problems installing it or making it work, please let me know what the problem is, i will try to find time to look at them. email me 😉

  2. hehe, well, the comments desc hack worked for me, but for some reason the disabling hack didn’t work for me. I have the latest version of b2, can that be the problem?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s