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 Comments Leave a Comment

gaile [ Quote ]

You are my PHP guru! :D *HUGS*! I’m going to install this today! XD! Thanks Dodo! :D!!!

October 26th, 2002 at 6:14 pm
Sarah [ Quote ]

Ooh, that sounds so useful! I’ll be sure to implement that hack in the future.

Thanks, dodo!

October 26th, 2002 at 10:22 pm
ayaki [ Quote ]

i wish i was half as good as php as you!

October 26th, 2002 at 10:28 pm
Cine [ Quote ]

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 :)

October 27th, 2002 at 8:41 am
avril [ Quote ]

thats pretty cool you know in greymatter you dont need a hack to disable comments.

October 27th, 2002 at 5:52 pm
leah [ Quote ]

you php god-dess ;) That is really neat. Very useful for those who don’t want the comments.

October 28th, 2002 at 11:05 am
dodo [ Quote ]

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 ;)

October 28th, 2002 at 12:22 pm
gaile [ Quote ]

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?

October 28th, 2002 at 4:24 pm
Sam [ Quote ]

Wow, thanks for sharing! That’s a really useful script.

October 29th, 2002 at 3:41 am
dodo [ Quote ]

:( maybe. i only did on my b2. arg.. i will talk to michel and hopefully he will add that function on his next release.

October 29th, 2002 at 10:41 am

Leave a Comment Name, email and comment are required.
Email will never be displayed.

Leave a Comment
  1. :biggrin: :blank: :blush: :bored: :confused: :cool: :down: :evil: :frown: :grin: :grr: :laidback: :left: :mad: :right: :sad: :secret: :shock: :smile: :stress: :tongue: :up: :wink: :yawn: :cute: :dead: :film: :floppy: :glasses: :grumpy: :headphones: :heart: :lightbulb: :ouch: :tv: :upsidedown: :vodka: :yell: :yuck: :yummy: