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. I tired to install that hack, there is no errors but it doesn’t work 😦 I will try the comments thingy too but not right now 🙂

  2. 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 😉

  3. 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 )

Facebook photo

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

Connecting to %s