Page 1 of 1

Feed system like facebook - user action log if we talk game

Posted: Sun Feb 19, 2012 3:26 am
by UnknownUser
hello guys, I'm just asking this because, in-short just wanna know all the ways you could do this,
a user action tracking system(feed) user action log, how I've done it before is.

The simple way is just to add a db like user-log and then on all the places you want to log action
add an db entries like for example if you edit picture post on feed user: ChickenLittle changed his profile picture.
and add the current date of that action and print it out, it made it post a lot of same thing's but fixed that.

With delete old post on check of a new entire basically it would run the script delete old ones and add new one
that way you did not have so many, but you can also update the one you had in db,

or you can do it the a tad bit difficult way, by logging all submits on specific pages you know you want a track on.
and just work from there and sort it out by logging the actions and appending notes for right action and so on.

and i know some other ways you could do this but if you don't mind just to satisfy my curiosity and more knowledge
to me and others i would greatly appreciate the knowledge of how you would do it!

Thanks in advance,
-UU

Re: Feed system like facebook - user action log if we talk g

Posted: Sun Feb 19, 2012 10:24 am
by Jackolantern
Me personally, if I was not working in a framework that included logging (almost all of the major frameworks do), I would just create a separate class that handles logging. I would set it up to possibly take a string or a constant that would trigger various types of logging or logging to different log files, perhaps set it up to take an array with items to put into the log file, etc.

Re: Feed system like facebook - user action log if we talk g

Posted: Sun Feb 19, 2012 12:58 pm
by UnknownUser
so for example if post is made put in a constant to react and log that event?.
and then may do an array to run a check for what typ of event it was profile edit.
for example and so on.. that's sound good :)

you could do an constant with a set of array example if result in post it would then run a check for pre-set expectation for that
action, or if it was example a picture change it would know by doing a check and matching action to pre-set
expectations,


sound good :)
any other ideas?

Re: Feed system like facebook - user action log if we talk g

Posted: Tue Feb 21, 2012 11:47 am
by UnknownUser
might be able to work with hidden values + get/post + http referrer.
as well.

Re: Feed system like facebook - user action log if we talk g

Posted: Tue Feb 21, 2012 9:49 pm
by SpiritWebb
Are you wanting something like status updates? Or did I just confuse myself entirely...

Re: Feed system like facebook - user action log if we talk g

Posted: Wed Feb 22, 2012 7:43 am
by UnknownUser
not status that you post your self automatic ones for each persons action.
for example if you go now and lets say edit your profile it will say,
spiritwebb has changed his profile - 10:00.
or something like that, it's like an event/action logger.
it tracks user movements sort off..

Re: Feed system like facebook - user action log if we talk g

Posted: Thu Mar 08, 2012 9:10 pm
by hallsofvallhalla
I would just make a function or a class that handles the DB updating and you just pass in the time, user, and action.