Support Forum

plugin to rate topics only

OP Oscar pitarch
Oscar pitarch
Member

there is a plugin to rate topics only, so +1?
So as to be rated the most interesting topic..

Thanks

10 Answers

New Answer

MP Mr Papa
Mr Papa
Member

just topics?  not sure how you rate a topic…  there is no content or context of a topic…  our post rating plugin allows uses to rate posts…   thumbs up/down or stars… and then aggregates the various post ratings into a topic rating…

OP Oscar pitarch
Oscar pitarch
Member

If true, I’ve tried the plugin, what it does is score posts. In my case, I have a web shop and forum is related to shopping. So I would be interested in some way able to score only the topic, not the post people, each person would be interested that topic or product, for example, bike xmb 250, people could give a single point, also see the interest of the people for that product.

a greeting.

MP Mr Papa
Mr Papa
Member

No, afraid we only have a post rating plugin… 

still a bit confused though…  how are you implementing your forum?  do you never have replies in a topic?  only the single post in a topic?  so your ‘product’ is the first post in a topic, but no replies?  if so, seems the post rating would still accomplish what you want…

if you have replies to your ‘product’ initial post in a topic, what are those replies and how do they affect the ‘product’?

helping understand what you are doing may allow us to come up with way using api for you to alter the behavior f the post rating plugin…

OP Oscar pitarch
Oscar pitarch
Member

That would be a part of the forum, but in my case important. I tell you as I would be interested to have it. A person either open a topic in that section ordering a product. Eg a bmx bike, you put a product description with pictures or whatever you want. Then other users could comment, that seems, if they like, if they know the bike and if the recommended. And if people would be interested in that product, which could give a point.

One way would be to just give a +1 point to the first post which is where the product description or give a point the topic at hand. Only positive points better..

If you could do something greatly appreciate it.

MP Mr Papa
Mr Papa
Member

Okay, try adding this to your spFunctions.php file of your sp theme you are using:

add_filter('sph_PostIndexRatePost', 'my_post_rate_check');
function my_post_rate_check($out) {
    global $spThisPost;
    if ($spThisPost->post_index != 1) $out = '';
    return $out;
}

as always, we strongly recommend you use a child theme or make your own theme instead of editing ours before making any theme changes so the changes are not overwritten on upgrades…

OP Oscar pitarch
Oscar pitarch
Member

Ok, fine. This can help me, thank you very much!
One more thing, if I update the default theme all votes would be lost? Or return the piece of code worth?

IK Ike
Ike
Member

I think the only thing you risk losing when updating the theme is the custom code change. Nothing else is stored directly in the theme..

MP Mr Papa
Mr Papa
Member

and as I mentioned, always best to create a child theme or make your own… only a few steps for either… keeps from code changes from getting over written…