Support Forum
cool!
Now you just need to integrate it with the post rating plugin... so if someone rates a post positive, up goes the points.. and conversely...
I can come up with lots of ideas
So have you found the pluging api fairly easy to use? not withstanding the lack of api documentation currently...
Visit Cruise Talk Central and Mr Papa's World
Plugin API has worked a treat! Is very simple to use and follows nicely along the standard WordPress-style of doing things, which is nice.
Obviously with a beautiful fleshed out API documentation explaining all the bits and bobs it will be much better 😉
Will have a peak at the post rating plugin, haven't enabled that one yet. See what I can do at some point in the next few days. Thought this was a relatively simple plugin that would make a good start.
oh it is. and very grateful for you doing it!
Visit Cruise Talk Central and Mr Papa's World
Ok, I'm looking at the plugin for post-ratings and spotted something I'm not 100% sure about.
There's a lovely hook being called by the rating plugin (conveniently) "sph_post_rating_add"
But, it appears to be called by sp_add_postratings and sp_update_postratings, so if I were to hook into this, I'm guessing it will add points if the user updates their rating too, which could allow for some easy point building!
If there a way of perhaps passing the "post rating type" (i.e, new/update) to the action or something? Or perhaps I'm missing a more sensible approach to this.
Cheers!
first, any user can only vote once, but yes they can vote on their own posts... and you have the post id and the user id, so could easily check if the vote is for their own post and disregard...
guess I could look into how hard it would be to not let users vote on their own... makes sense...
Visit Cruise Talk Central and Mr Papa's World
changed. users cant vote on own posts now.
Visit Cruise Talk Central and Mr Papa's World
early in 5.0 someone was working a cubepoints integration... think they had it working, but not sure of status currently...
with the 5.0 plugin api, an sp plugin to integrate the two would not be that difficult... its on our list, but our list is long... hoping that the original person who started will finish...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)