[drupal-support] last 5 per user

Earl Miles merlin at logrus.com
Sat Oct 22 16:42:53 UTC 2005


Jad Madi wrote:
> Hi,
> I'm trying to create a page contain list of users, and then last 5
> posts per user.
> any idea?
> --

Use the profile module and override theme_profile_profile() and use a simple 
query on the {node} table in the theme to get the last 5 posts; there are 
several examples of that kind of query on the in the page snippets section of 
the handbook, and example of overriding the the profile in the theme snippets 
section.



More information about the drupal-support mailing list