User action logs.... Suspicious activity.

David Athome Posted in Technical Support 12 months ago

Is it possible to have every user action logged.

Time, date, action. Post, edit, delete etc etc.

I have apache access logs but not forensic enough when it comes to odd goings on as I am experiencing at the moment .

Thanks.

Replies
French David Athome Replied 12 months ago

Hi, added a few componants.
It's probably me, but its happened about 3 times, keeping a strict eye on things at the moment.
Always my posts. Its like someone is playing with me.
The last two componants I have added recently.

Still learning to use OSSN so I expect it"s me.

Regards...

added extras

Indonesian Arsalan Shah Replied 12 months ago

You can log that https://www.opensource-socialnetwork.org/documentation/view/5589/action-load

<?php
function my_component_init(){
        ossn_register_callback('action', 'load', 'my_component_cb');
}
function my_component_cb($callback, $type, $params){
        //$params['action'] contains the action name
        if($params['action'] == 'wall/post/edit' || $params['action'] == 'wall/post/delete'){
            $username = ossn_loggedin_user()->name;
            $postID = input('guid');
            if($params['action'] == 'wall/post/delete'){
                $postID = input('post');
            }
            //Logging code goes here......
        }
}
ossn_register_callback('ossn', 'init', 'my_component_init');

Post disappears text, that is strange thing, unless user edits. Are you using some component like Sentimental, Link Preview etc? or your website have default components only?

Premium Version

Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.

$199 (Life Time)
Learn More

Other Questions