Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
plugin to rate topics only
Avatar
Oscar pitarch
Member
Free Members
sp_UserOfflineSmall Offline
Oct 6, 2014 - 7:51 pm

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

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 6, 2014 - 8:52 pm

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...

Avatar
Oscar pitarch
Member
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2014 - 4:43 am

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2014 - 9:31 am

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...

Avatar
Oscar pitarch
Member
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2014 - 12:11 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2014 - 9:47 pm

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...

Avatar
Oscar pitarch
Member
Free Members
sp_UserOfflineSmall Offline
Oct 8, 2014 - 5:56 pm

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?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 8, 2014 - 6:06 pm

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..

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 8, 2014 - 7:48 pm

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...

Avatar
Oscar pitarch
Member
Free Members
sp_UserOfflineSmall Offline
Oct 8, 2014 - 9:11 pm

ok, I understand. thanks to all

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625