Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
653 views
in Plugins by

I added my plugin with specific actions on question pages, if I use event-logger plugin I can add a custom event for register my custom plugin actions?

my plugin add any bonus points with these queries:

qa_db_query_sub('UPDATE ^userpoints SET bonus=bonus+'.((int)$post_points).' WHERE userid='.$userid);

and this for re-calculate points of user

qa_db_points_update_ifuser($userid,true);

how to I add trigger for pass to :

 

function process_event($event, $userid, $handle, $cookieid, $params) ....
 

 

Q2A version: 1.5

1 Answer

+1 vote
by

I didn't exactly understand what you want to do, but there's no problem throwing off custom events by calling qa_report_event(...) with your own $event value.

But it sounds like you just want to communicate between modules in your plugin, in which case see the bottom of this page.

...