I'm currently displaying an activity feed on my user profiles using the activity_table function as specified in another thread on here.
It returns a two-column table with dates on the left and the activity on the right.
How do I get rid of the date column? I've tried looking at the module code to see if there's a line I can comment out, but I'm not sure what the heck that would be. Pleas advise. Thanks!
Comments
Comment #1
sirkitree commentedcall activity_get_activity() and format the results as you see fit.
Comment #2
bflora commentedUh, how? I don't see a handbook for the module explaining how I should format it. Are there parameters I should put in the function call that wil get rid of the dates?
Comment #3
jaydub commentedadd more themeable elements
Comment #4
liliplanet commentedHi,
I'm trying to show the user-profile picture instead of the date and the following works, yet the picture is the default profile picture (so they all the same) ..
In activity.module I added:
theme('user_picture', $this_user),
Any ideas please?
Look forward to any reply.
Lilian
Comment #5
jaydub commentedIf you are using the 5.4 branch which is where active development is focused then you don't have to modify the theme_activity_table function directly but rather you should override the theme function in your theme. I don't know whether or not you are familiar with the drupal theming system so I won't get into specifics of how to do this except to link to the theme documentation.
You can see this thread for more details specific to Activity:
http://drupal.org/node/323380#comment-1075140
http://drupal.org/theme-guide
And specifically for theme override concepts:
http://drupal.org/node/173880
Comment #6
jaydub commentedBy the way you have this code:
theme('user_picture', $this_user),
but the variable $this_user is not set anywhere so you would never get any result -other- than the default picture since $this_user provides no user context.
Comment #7
jaydub commentedComment #8
sirkitree commentedClosed for a month of inactivity.