WordPress.org

Support

Support » Plugins and Hacks » Donate to author in post comment box

Donate to author in post comment box

Viewing 6 replies - 1 through 6 (of 6 total)
  • Gabriel
    Participant

    @designbymerovingi

    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.

    allinfinite
    Member

    @allinfinite

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

    Gabriel
    Participant

    @designbymerovingi

    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.

    allinfinite
    Member

    @allinfinite

    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

    Gabriel
    Participant

    @designbymerovingi

    So your “Donate” module is not working?

    allinfinite
    Member

    @allinfinite

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Donate to author in post comment box’ is closed to new replies.