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/
Pierre_02
Member
Posted 1 year 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.
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.