By Equ on
I've seen this on several websites, but didn't find any detailed information about how to create this in Drupal. Here is what I'm looking for:
User Posts (x)
User Comments (x)
I need X to be a link to a list of content (posts, comments), posted by specific user. I was looking into using Views, but I don't know how to make linking and display the count of posts/comments.
Any help gratefully received.
Comments
*bump*
*bump*
use user_stats
use user_stats module
http://drupalmodules.com/module/user-stats
I'm also trying to do this...
I'm also trying to do this... did you find a solution?
so far no results...
so far no results...
using views
I used the views module to show number of comments per user using arguments set to username and selecting summery + number of entries. As a result, it shows a list of users + number of comments for each user. However I want to add users picture there. does anyone know how can I do that?
it has to have the user
it has to have the user picture option when you choose add field feature when you work with views...
i think the thing that you're looking for is placed in PROFILES and USER category.
Just found this old issue and
Just found this old issue and decided to write how I solved this (in case if someone needs it).
User Posts (x):
User comments (x):
These snippets are used in user-profile.tpl.php
thanx, add this in custom
thanx, add this in custom field in views and works great.
Adriadrop Drupal development
How did you add the custom field?
Interested to know how you did add the custom field?
Jon
views customfiled module :-)
views customfiled module :-)
Adriadrop Drupal development
In Drupal 7 the syntax is
In Drupal 7 the syntax is slightly different. Here are snippets for using in your theme or module
Can you please explain
Can you please explain something more about your code? How can I print it out?
I tried to print it with print () function in my user-profile.tpl.php without results.
template.php
1. create 'template.php' file in you theme directory
2. copy above code into this file without '?>' at the end
3. replace 'yourmoduleortheme' with your theme's machine name
4. and then just call those functions in the place you need
Compatibility with Rules
Am I correct that the snippets you provided aren't compatible with the Rules 7.x-2.5 module? I can't find a data selector like 'user-comments-count' or something similar.
Use views and views_groupby
I use views and views_groupby (http://drupal.org/project/views_groupby) and group by user name, counting nid work like a charm!!!
Drupal experts in Argentina! www.tilon.com.ar