Hi,
Im working with a history module that should be able to show the latest status changes / profile updates.
Like:
1: J.Bond updated his fieldA to busy
2: J.Bond updated his fieldA to away
3: Dr.Evil updated his fieldA to idle
4: Dr.Evil updated his fieldA to busy
5: J.Bond updated his fieldA to idle
But how can I best track the changes? I want to be able to release the module on JED, so I dont want to do any core / cb hacks.
Im aware of the field "lastupdatedate" in comprofiler table, but it doesnt tell me anything about which field that is updated, and the values.
So far I have thought about 2 possible ways to go:
1: Is there any way to "hook / add" a listener to the "onAfterUpdateUser" trigger?
2: Write some sort of CB plugin that goes with the module. The CB plugin then have to detect the update, write to a own storage solution (db, ajax or cookie), which the module then can read out and display.
I hope for solution 1, since I have no experience of writing CB plugins. I cant find any form of documentation on it either, so its hard to get started
Any suggestion will be appreciated
Happy new 2011
-K-
Post edited by: krileon, at: 2011/01/03 17:23