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.
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.
You are my PHP guru! 😀 *HUGS*! I’m going to install this today! XD! Thanks Dodo! :D!!!
Ooh, that sounds so useful! I’ll be sure to implement that hack in the future.
Thanks, dodo!
i wish i was half as good as php as you!
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 🙂
thats pretty cool you know in greymatter you dont need a hack to disable comments.
you php god-dess 😉 That is really neat. Very useful for those who don’t want the comments.
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 😉
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?
Wow, thanks for sharing! That’s a really useful script.
😦 maybe. i only did on my b2. arg.. i will talk to michel and hopefully he will add that function on his next release.