WordPress.org

Ready to get started?Download WordPress

Forums

CubePoints
Donate to author in post comment box (7 posts)

  1. allinfinite
    Member
    Posted 1 year ago #

    Would love to see
    - donations as an alternative to "liking" a post
    - Donate to author, directly from the comment area of a post
    - have accumulated points public on the post
    - top ranked post widget

    How would I do this?? Please help!

    http://wordpress.org/extend/plugins/cubepoints/

  2. Gabriel
    Member
    Posted 1 year ago #

    All these things can be done by a custom module for CubePoints.

    - donations as an alternative to "liking" a post

    Would you "donate" a specific amount of points or as with the donations module, any number of points?

    - Donate to author, directly from the comment area of a post

    Your theme's comments.php file would be probably the place to insert this. There are a lot of different places this could be included, the question is where.

    - have accumulated points public on the post

    This really depends on where you want to display this information. You could write your own custom function in your themes functions.php file where you query for a particular posts "donated" points. The post would have it's authors ID under post_author and along with the post_id a simple SQL query would sort this out.

    - top ranked post widget

    Have a look in the WordPress Codex for how to make your own widgets. There are tons of nice tutorials out there.

  3. allinfinite
    Member
    Posted 1 year ago #

    Thanks for the response, Gabriel. I would want people to donate any amount just like the module, only it already knows who is getting the points, i'd also pit this on author pages.. you can take a look at my project as it is, now, online... http://humandalas.com
    Thanks for the tip about the codex, I'm a beginner programmer but might be ready for a task like this..

  4. Gabriel
    Member
    Posted 1 year ago #

    Another way to approach this would be for you to have the donate module included on all posts / pages that can be donated to and then insert a small javascript in the footer that auto-populates the donate module with a username.

  5. allinfinite
    Member
    Posted 1 year ago #

    I could figure that out, but truth is, i haven't been able to get the module to work at all.. Maybe there is a simple cause... idunno.. humandalas.com

  6. Gabriel
    Member
    Posted 1 year ago #

    So your "Donate" module is not working?

  7. allinfinite
    Member
    Posted 1 year ago #

    I get this

    Uncaught TypeError: Object function (e,t){return new v.fn.init(e,t,n)} has no method ‘prompt’ donate.js:109

    showDropdownSearchdonate.js:109

    cp_module_donatedonate.js:23

    onclickhttp://www.humandalas.com:315

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic