ci-bonfire/Bonfire — Issue #273: Activities: Log guest users activities, auto remote addr
Author: elyess
Created: 2011-12-23 20:36:39+00:00
State: open

Hi,

One of the features I was in need is being able to store guest user activities, example:
Guest - Product View ID#11 - DATE

the activities module doesnt allow using 0 values as user id so as a workaround i created a user guest => role guest, end on each front controller load, it checks if $this->auth->user_id() == 0 and set the user_id as "Guest user id".

Additionally, Guest means different users, so an ip address log was needed.

My suggestion is that the ip address is pushed automatically when logging an activity, this avoid the need to set it on activity (as of site settings changed from x.x.x.x)

Thank you.