WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Pierre's Wordspew] Need help adding support for CubePoints

[Plugin: Pierre's Wordspew] Need help adding support for CubePoints

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anyone?

    ** Crickets **

    Plugin Author Pierre_02

    @pierre_02

    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.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Pierre's Wordspew] Need help adding support for CubePoints’ is closed to new replies.