XF 2.2 Keeping a log when the user opens a thread

bytrislasis

Member
Hello guys, I do not speak english
that's why i use google translate.
I hope I can tell you.


Moderator records are kept in the forum with the code below.
Code:
\XF::app()->logger()->logModeratorAction('thread', $entity, "moderator log open thread");
This code only saves when the moderator opens a thread.


Since the user has opened the thread, I want to save it. Can you help me?

Thank you from now
 
I would not recommend to abuse the moderator log for user action logging.

You should create a new database table for that purpose.
 
Top Bottom