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
SimplePress 5 - CubePoints Integration Plugin
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 7, 2011 - 4:33 pm

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

I can come up with lots of ideas Cool

So have you found the pluging api fairly easy to use? not withstanding the lack of api documentation currently...

Avatar
cubehouse
Member
Free Members
sp_UserOfflineSmall Offline
Jul 7, 2011 - 4:37 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 7, 2011 - 4:44 pm

oh it is. and very grateful for you doing it!

Avatar
cubehouse
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2011 - 9:16 am

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!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2011 - 3:20 pm

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

Avatar
cubehouse
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2011 - 3:28 pm

ok, was just curious what this update_vote hook was, wrote the code assuming it might never trigger in the way I was thinking. So will have a little play with it later and update 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2011 - 3:29 pm

changed. users cant vote on own posts now.

Avatar
zajaczek
Guest
Guests
Feb 5, 2012 - 4:30 pm

Its any posibility that integration showing posts with cube points?
Like :  To se some topics you should have 50points.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 5, 2012 - 4:35 pm

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

Avatar
zajaczek
Rookie
Free Members
sp_UserOfflineSmall Offline
Feb 5, 2012 - 4:39 pm

Thanks 😉

So...I must to wait  🙁

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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625