I could swear the output was empty, but maybe I just had a typo or something in my code
UPDATE:
Ok, so now I want to track if somebody posts a visitormessage. I created a plugin with the hook "visitormessagedata_postsave" and "visitor_message_post_complete", but none of them runs my query :/
Digging into the files right now "visitormessage.php" & class_dm_visitormessage.php...
Plugin Code
Code:
if($vbulletin->userinfo['userid'] == 2){
$vbulletin->db->query_write("INSERT INTO
" . TABLE_PREFIX . "activities VALUES(
NULL,
'" . time() . "',
'" . $vbulletin->userinfo['userid'] . "',
'NEW VISITOR MESSAGE')");
}
UPDATE 2:
ok it works now... what I forgot was that my forum setup uses the ajax version, and so I had to use the "visitor_message_post_ajax" hook"
--------------- Added [DATE]1319040016[/DATE] at [TIME]1319040016[/TIME] ---------------
Alright, got these plugins running now:
- thread creation
- posting a new reply
- posting a message on somebodys wall
- uploaded pictures to an album
- joined a group
and these are missing, since until now I couldnt figure out which hook would be best/works at all
- changing avatar
- created a picture album
- created a new blog entry
the working ones need fine tuning of course, right now they just react to the associated actions and run my test query. after I got all plugins doing the query, I will do the fine tuning and will code up the real querys.
so if you guys want to help me, you can point me into the direction for the 3 missing plugin hooks. thing is, the "blog entry" is a bit difficult, because my main forum (vb 3.x) has no blog and afaik vb4 has a blog as default? if this is right, the blog option will be not available in the vb 3.x version of my addon.