Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+27 votes
13.9k views
in Plugins by
edited by

Still working on this one, here's an image of what it looks like so far:

 

What it does is add custom "incoming" events to the event logger database table (tied to the receiving user, rather than the triggering user), keeps a list of descriptions for all events, and outputs this list on a user profile (only visible to that user).  Kind of a combination of Stack Exchange's "reputation" and "activity" tabs.

Anyone interested? 

EDIT:  Okay, here's the first draft:

https://github.com/NoahY/q2a-history

seems to work okay, with a little testing.  Requires the event logger plugin set to log to database.

Features:

- shows almost all events in list
- shows incoming events (e.g. user's question voted on)
- shows points gained and lost for each event if applicable.
- option to replace old activity list
- set max age of events to show in admin/plugins
- set event exceptions to hide from profile owner and those to show to public, via admin/plugins
- css configurable, all strings configurable via admin/plugins

EDIT (Nov 2):

added new incoming event bubble to user name:

UPDATE:

added badges to history (requires badge plugin)

by
hi, all functions of the plugin work right now, thank NoahY for your excellent plugin and pixelgrain for your beautiful theme. I hope someday I have the chance to work with you.
by
this is such a great plugin! Love the yellow notification "event bubble"!
and the options, available from admin. no php hacking. respect!
by
how to show bubble after user name its not working noahy... Please help me
by
Hello, am using version 1.5.3, i've installed the plugin as per the instructions, but there's nothing being shown. What am i missing?

7 Answers

+4 votes
by
I'm interested..I seems very useful..Thanks
+2 votes
by
Nice, seems working ok, are you planning to include translation file ?
by
It's all translatable via admin/plugins... it's hidden, but if you click on "edit event descriptions" at the bottom, it will open up a list to edit.
by
Thanks. By translating descriptions i discovered little bug - x_flag and x_unflag are named as unflagged an x.
by
thanks... it looks like I forgot to finish my work there... some duplicate code.  fixed now.
by
edited by
Activity tab sees only profile owner. Is that should be so ?

"Activity types to show to public" option seems ignored.

"question answered" event description is not avaible (?).

 Question titles special chars are converted to "?" (like in older your plugins you fixed)
by
Fixed, fixed, fixed, and fixed :) thanks.
by
Thanks, thanks, thanks...

I don't know if it's becouse of this plugin, but i'm seeing /polls tab in every profile after intalling one of your plugins with tabs.
by
ah dear, that makes sense... I'll take a look at that.
by
strange... it's not happening for me; it's a bit of a fudge to get the polls tab to show up in the questions, so it may be a theme conflict?  Can you try with the default theme?
by
I will try with default theme later, now option "Tooltip text for new event notification bubble" text doesn't saves.
by
got it... missing the save call, thanks.  

If I get time, I'll look into finding a better way to get the polls tab to show up where it should... but again, it still shows up where it should for me :)
by
Issue may be in theme becouse my submenu is removed from where it should be in custom theme like this:

function nav_main_sub()
        {
            $this->nav('main');
            //$this->nav('sub');
        }

And placed $this->nav('sub'); into function main() function.
by
By the way what "c_claim" means ?
by
Yeah, that sounds right about switching navs... probably the best answer is to make the poll tab optional, then you'll have to use the main nav tab only.

c_claim = claims a comment, after posting it as an anonymous user.
0 votes
by

Hello NoahY.

Error search russian chars.

by
That's funny... it works for me.  Search for Ербол Сери shows the correct characters on my site.
by
question marks should be fixed in latest code.
by
Thanks NoahY ! ))
+1 vote
by
Probably not directly the intention of your plugin, but it might be an opportunity to add an auto-block feature for users without any activity for x days after their registration, or for those who received only negative points for the last x days. (I have some users with random-looking usernames who correctly registered and since then are idle, while it is not necessary to register in order to read the posts. I'm a bit afraid that these guys are just waiting for the day when they all will post spam.)
+1 vote
by
edited by

I've just installed History Plugin but I cannot active this :(, everytime a go to Admin > Plugins > History plugin options and check the "Show user activity list" check box and go to another page and go to the option again (or F5 the plugin page), every options don't change!

Note: I've checked Log events to qa_eventlog database table

by
not sure... it's working for me.  maybe check your php log?
+2 votes
by
How can I get notificaton number after user name same as your screen shot?
+3 votes
by
edited by

Dear NoahY, I implemented your plugin, great work!

Question 1: What about performance? Let's imagine you have 10 000 users, all activities logged, how much is this influencing the speed of the DB / server?

Question 2: Why have you chosen "Activity types to hide from profile owner". I think it would be better to only choose what to show. At least I'm hiding most of the activities from the users as they should not have the feeling of being spied!
My proposal: "Activity types to show to profile owner".

thx :)

 

PS: This is what I let the users see from their history:

q_post
a_post
c_post
q_flag
a_flag
c_flag
in_a_question
in_c_question
in_c_answer
a_select
a_unselect
in_a_select
in_a_unselect
q_vote_up
q_vote_down
a_vote_up
a_vote_down
in_q_vote_up
in_q_vote_down
in_a_vote_up
in_a_vote_down
u_confirmed
u_register

 

...