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

  1. Tosh
    Posted 5 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);


  2. Tosh
    Posted 5 years ago #


  3. Tosh
    Posted 5 years ago #

    ** Crickets **

  4. Pierre_02
    Plugin Author

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



  5. Tosh
    Posted 5 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

  • Pierre's Wordspew
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic