Join · Login ·

Tutorial

This is for Boonex Dolphin 6.1x

By default Dolphin 6.1x will display the first 5 comments in all areas of your site. So when 6 or more are left a small link with "Show 6-10" will appear. If you have more than 11, then another link after that will appear with 11-15, etc...etc.

Now some people don't even realize this is there or see it. Maybe you want to show 10 on a member's profile page before the next link instead of 5. The first 10 visible, after that a link for "Show 11-21" will become available.

You can do this to a member's profile page only. Or maybe you want to show 10 comments on a profile page. 7 in the audio/video area. 6 in classifieds area, and maybe 6 in the blogs.

So lets change the number of comments to show in sets of 10 instead of 5 on a profile page.

First backup the file:

/inc/classes/BxDolCmts.php

Then open the file with a text editor such as notepad or word pad and find near the top:

'profile' => array (

'system_id' => 1, // this system id

'table_cmts' => 'CmtsProfile', // table with comments

'table_track' => 'CmtsTrack', // table to track duplicate ratings

'allow_tags' => 0, // allow tags in comments or not

'nl2br' => 1, // convert all new line caracters to <br /> tags

'sec_to_edit' => 90, // number of seconds to allow edit comment after submit, 0 - do not allow edit

'per_view' => 5, // comments per view, like paginate

'is_ratable' => 1, // allow rate comments or not

'viewing_threshold' => -3, // below this value comment is hidden by default

'animation_effect' => 'slide', // animation effect : slide, fade or default

'animation_speed' => '2000', // speed of animation effect in ms (1000 == 1 second)

'is_on' => 1 // is voting enabled or not

),

Find:

'per_view' => 5,

Change to:

'per_view' => 10,

Like so:

'profile' => array (

'system_id' => 1, // this system id

'table_cmts' => 'CmtsProfile', // table with comments

'table_track' => 'CmtsTrack', // table to track duplicate ratings

'allow_tags' => 0, // allow tags in comments or not

'nl2br' => 1, // convert all new line caracters to <br /> tags

'sec_to_edit' => 90, // number of seconds to allow edit comment after submit, 0 - do not allow edit

'per_view' => 10, // comments per view, like paginate

'is_ratable' => 1, // allow rate comments or not

'viewing_threshold' => -3, // below this value comment is hidden by default

'animation_effect' => 'slide', // animation effect : slide, fade or default

'animation_speed' => '2000', // speed of animation effect in ms (1000 == 1 second)

'is_on' => 1 // is voting enabled or not

),

Save file and re-upload over writing the original.

Simply refresh a member's profile with more than 5 to see the changes.

You can do the same to the other areas:

'sharedPhoto' => array (
'sharedMusic' => array (
'sharedVideo' => array (
'classifieds' => array (
'blogposts' => array (

Other things you can change you will see notes to the right of each area.

'viewing_threshold' => -3,

If there are comments with -points they will be hidden if they have more than -3 negative points. A link becomes available that a member will have to click on. To show these anyway change -3 to a larger number such as -10.

Below is an Screen Shot of a default profile section. Here you can see the first 5, and the "Show 6-10" Link at the bottom. Applying the above changes will show the first 10 here instead.

Also notice the -4 points, and you can't see the actual comments unless you click on "toggle". If you want these to show anyway then change the 'viewing_threshold; => -3 to -10 or similar.

 

More Comments

 



Also see these other guides I recently wrote and posted for:

How to Hide Comment Points

Show Newest Comments First at Top

Stay Tuned for more!!

 
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Recommend