Can someone tell me how to set "x" amount of comments in the comments box? I've searched the forums and have not seen a question or answer regarding this
Can someone tell me how to set "x" amount of comments in the comments box? I've searched the forums and have not seen a question or answer regarding this Ultra Newb reporting for duty. |
This is something my members have mentioned as well; actually they would like to set the number of comments that show on their profile pages in their settings. I looked through the code for some insight on this. bx_import('BxDolCmts' ); I guess one question is this set for all comments on other pages, such as photos and videos? Do I need to pull up BxDolCmts? It would be nice if I could set the number of comments to show on the profile comments independent of the number for photos and videos. I see this: 'per_page' => $this->getPerView(), Is that the number of comments to show at one time? Bringing up the BxDolCmts, I see this: function & getSystems () So in the database table sys_objects_cmts there is the PerView field which I guess is what controls how many comments should be displayed. Is this an accurate guess? So if we have a place to store these PerView where do we set this in the backend? Or do I have to edit the database directly? I would think there would be a place to set these; if not, would be easy peasy to add it. So, is there a place to change the PerView on comments? Or is it a database edit? Geeks, making the world a better place |
Playing with the database the answer is yes. However, is there no backend settings for comments? To answer my question about each member setting how many comments to show on their profile page, I need to just add a field to the profile table, add a setting in the profile edit page, and then when getting the PerView for profile comments check to see if a PerView exists in the member's profile and if so, use it instead of the one in sys_objects_cmts Geeks, making the world a better place |
Thank you Ultra Newb reporting for duty. |
You are welcomed. Isn't this code stuff so much fun! Geeks, making the world a better place |