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
Feed system like facebook - user action log if we talk game
- UnknownUser
- Posts: 51
- Joined: Tue Sep 08, 2009 2:54 pm
Feed system like facebook - user action log if we talk game
When a programming language is created that allows programmers to program in simple English, it will be discovered that programmers cannot speak English. ~Author Unknown
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Feed system like facebook - user action log if we talk g
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.
The indelible lord of tl;dr
- UnknownUser
- Posts: 51
- Joined: Tue Sep 08, 2009 2:54 pm
Re: Feed system like facebook - user action log if we talk g
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?
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?
When a programming language is created that allows programmers to program in simple English, it will be discovered that programmers cannot speak English. ~Author Unknown
- UnknownUser
- Posts: 51
- Joined: Tue Sep 08, 2009 2:54 pm
Re: Feed system like facebook - user action log if we talk g
might be able to work with hidden values + get/post + http referrer.
as well.
as well.
When a programming language is created that allows programmers to program in simple English, it will be discovered that programmers cannot speak English. ~Author Unknown
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: Feed system like facebook - user action log if we talk g
Are you wanting something like status updates? Or did I just confuse myself entirely...
- UnknownUser
- Posts: 51
- Joined: Tue Sep 08, 2009 2:54 pm
Re: Feed system like facebook - user action log if we talk g
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..
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..
When a programming language is created that allows programmers to program in simple English, it will be discovered that programmers cannot speak English. ~Author Unknown
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Feed system like facebook - user action log if we talk g
I would just make a function or a class that handles the DB updating and you just pass in the time, user, and action.

