wall comments

Ok, I know its there, but I cant find it.

How do you put a limit on wall comments,

maybe thats not worded right! Ok say you have 20 comments on your wall, and you dont want to show any more, just the latest 20 comments, how can I put a limit on the latest comments.

Because I see pages and pages of comments that no one will ever go back and look at!

Any suggestions!

Thanks

Derrick

Back to pulling my hair out! (ouch, ouch,ouch)
Quote · 21 Aug 2010

limit it right at the query? bxwaldb.php function getCommentsCount... LIMIT 20

hide the paginate via display:none; in css?

there are many ways to achieve the same result

have fun

I have video tutorials to help you mrpowless.com
Quote · 24 Aug 2010

Thanks Mr powerless!

This is where I am. This is the only file that I have found that is close;

modules/boonex/wall/classes/BxWallDb.php

I checked in phpadmin, but no luck.

so at line 156 or so, i found below, and changed to 20, but nothing seem to happen.

I wish to have only 20 saved comments, and I would assume I would also change the wall events limit also if I am using the wall as a site wall too?

function getCommentsCount($iId) {
$sSql = "SELECT COUNT(`cmt_id`) FROM `" . $this->_sPrefix . "comments` WHERE `cmt_object_id`='" . $iId . "' AND `cmt_parent_id`='0' LIMIT 1";

limit it right at the query? bxwaldb.php function getCommentsCount... LIMIT 20

hide the paginate via display:none; in css?

there are many ways to achieve the same result

have fun

I thought about hiding it as you spoke of, but I am trying to keep from my database from filling up with useless comments, so I would like to just limit the saved messages,

am I in the right file?(probably not)

Thanks,

Derrick

Back to pulling my hair out! (ouch, ouch,ouch)
Quote · 28 Aug 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.