|
Hello, I'm running a test instance of OSQA, and I noticed that a lot of the recent activity in some of my users are filled with log in events. I feel that log in events are irrelevant to the recent activity of a user. What file would I edit so log in events are no longer displayed in the recent activity list? Thanks! |
|
Hey guys, I came up with a workaround to solve this issue. Basically I created a custom template filter (filter_recent_activity) and give it as input the describe variable in activity.html:
With some simple text processing I was able to determine what activity was listed (below is the code for my custom template filter (which was added to the templatetags folder with filename filter_recent_activity.py)):
Basically, the describe variable is broken down to remove links and question titles. In essence, all you are left with is the core of the activity (i.e. logged on, edited, awarded badge, etc.), and using simple if or statements you can prevent certain activities from showing.
You can include code in text form by indenting it 4 spaces, this would make it easier to copy than an image...
(08 Aug '11, 05:57)
Rich Seller
Hey I changed the pictures to text, if you want to try it out, check out the edit.
(08 Aug '11, 12:43)
tractor
|