WordPress.org

Ready to get started?Download WordPress

Forums

Pierre's Wordspew
Need help adding support for CubePoints (5 posts)

  1. Tosh
    Member
    Posted 3 years ago #

    All I really need is where I can stick this code chunk so when a new message is submited it runs this code so they get 1 point for it:

    // Cubepoints Support
      if( function_exists('cp_alterPoints') && is_user_logged_in() ){
        cp_alterPoints(cp_currentUser(), 1);
        cp_log('Chat', cp_currentUser(), 1, LiveChat);
      }

    http://wordpress.org/extend/plugins/pierres-wordspew/

  2. Tosh
    Member
    Posted 3 years ago #

    Anyone?

  3. Tosh
    Member
    Posted 3 years ago #

    ** Crickets **

  4. Pierre_02
    Member
    Plugin Author

    Posted 3 years ago #

    Hi xberserker,

    sorry to have been so long to give you my answer but like i can't help with CubePoints because i don't know at all... this explains it ;).

    So, if you want to do something after the insertion of a message in the shoutbox you could add your code at line 392 (in wordspew.php) just right after jal_deleteOld($shout_cat); and do your test ;).

    PS. The line i'm talking about is in the last release (5.61).

    Hopping it will help.

    Amicably,

    Pierre.

  5. Tosh
    Member
    Posted 3 years ago #

    Thanks for the response. I put that code there. Seems like the right place too. But no points ... ah well. I'll let you know if I figure it out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic