Support Forum
Tada!
Good API, was a little tricky to get the hang of, but all works in the end 🙂
Would like to know how to make "nice" error messages when CubePoints isn't detected.
http://cubehouse.org/blog/wp-c.....Points.zip
Thoughts/Feedback/Testing appreciated 🙂
Officially the first third-party Simple:Press 5 plugin 😀
I was hoping you were working on that! outstanding! have to give this a shot a bit later - but dont have cubepoints [Image Can Not Be Found]
so plenty of hooks and filters for you?
what do you mean by nice message? where do you want it? in the admin? on plugin page? banner at top? please advise and we can help
Visit Cruise Talk Central and Mr Papa's World
we do have a admin panel header area you can add messages... I just committed a change with a hook when its done so you can add stuff... after svn up, you will want
sph_admin_panel_header
Visit Cruise Talk Central and Mr Papa's World
well, arent you the guy who did the earlier integration of cubepoints and simple:press? for the 4.x version? it was a bit limited given the api we had...
Visit Cruise Talk Central and Mr Papa's World
couple questions on the plugin...
how do you deal with posts in moderation? or do you just get at point of post? wonder if we have a hook/action when the moderation occurs?
do you subtract points for deleted post?
looks good!
Visit Cruise Talk Central and Mr Papa's World
Nope! Never been involved with Simple:Press until recently. Just picked cubePoints because I'm planning on using it on my site in the near future. Mark me a Simple:Press noob with significant PHP/WordPress debugging skills 😉
Only deal with new post/topic at the moment.Is only basic so far. Not sure how to deal with eleted posts, since if you change the number of points for a new post, then delete it, the users loses more points... will probably add it in under the assumption admins dont reglarly change point values.
Don't know how moderation stuff works yet, when it's approved, does it call a different action then? Currently just picking out data from the $newpost object from the new post action hook.Basing the points added on $newpost->action == "topic" etc. (is it action/type? on my tablet atm... you know what I mean...)
yeah just add a hook for when posts approved... was there but not very friendly... new one is:
sph_post_approved
an array of approved posts since you can approve all posts in a topic at once...
so yeah when creating the post topic, if post_status == 0, it needs moderation, ie approval..
but you are hooked (its a filter) into: sph_new_forum_post
I would probably hook (an action) into: sph_post_create
which is actually after the topic or post has been created... you are currently before so it might get rejected as spam or other... you will still get $newpost passed to you...
if post_status == 1 then award points... if post_status == 0 then might wait for the post approval hook to actually award the points...
just food for thought...
Visit Cruise Talk Central and Mr Papa's World
and just for reference...
Visit Cruise Talk Central and Mr Papa's World