Tutorial

For some sites and people the Point Rate + | - in comment areas of profile, blogs, gallery photo's, gallery music, gallery video, and classifieds just are not needed.

It really don't do much anyway. You can give someone a + positive for a comment or a - negative. There is no grand tally or area that you can see that you have the most points. Some like it some don't. To me the points are pointless.

These are different from rating profiles, photo's, video or music.

I am referring to only comment rates.

Here is a screen shot of a blog post from this site with the points (+|-) available:

With Points

 

And here is a screen shot of the same blog post with the points (+|1) hidden and unavailable:

Without Points

This is very fast and simple to hide these. You have the option to hide them in the following areas:

Profile comments
Shared Photo Gallery comments
Shared Music Gallery comments
Shared Video Gallery comments
Classified comments
Blog Post comments

You can hide them in all of the above areas or a combination, show some - hide some.

 

This is for Dolphin 6.1x

 

This is a simple edit but you probably should back up the original file just in case.


/inc/classes/BxDolCmts.php

In this example I will hide the Points in a Blog Post.

Open the file and near the top find:
 
        'blogposts' => array (
            'system_id' => 6,                            // this system id
            'table_cmts' => 'CmtsBlogPosts',            // 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
        ),


change to:
        'blogposts' => array (
            'system_id' => 6,                            // this system id
            'table_cmts' => 'CmtsBlogPosts',            // 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' => 0,                            // 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 overwriting the original.

Now simply refresh a Blog Post and the Points are not there anymore.

If you want to do the same to the other areas just change the same thing:

'is_ratable' => 1,

To:

'is_ratable' => 0,

In each of the areas:
'profile' => array (
'sharedPhoto' => array (
'sharedMusic' => array (
'sharedVideo' => array (
'classifieds' => array (
'blogposts' => array (

Good Luck!!

 
Written By
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
Sponsored Links
Recommend