Alright, where to begin. I am working on developing my custom user profile page, and have run through some development issues that I would like to share with everyone. Hopefully together we can work through them, and post the solutions for everyone to see.
For starters, lets keep in mind that all of this will be refrencing use in 4.7.(3), and preferably snippet codes that can be used anywhere on the site; example: user_profile.tpl.php.
1. How to display user roles?
One of the option fields I would like to display, is the user's role. For example, authenticated users, site administrator, w.e. I set through the normal system roles / access control administrator fields.
2. User Points?
Simply display the # of userpoints that a user has.
3. Status?
Display online or offline, if the user is currently logged in on the site or not.
4. Last Login?
The time in years/months/weeks/days/hours/minutes that the user was last logged into the site.
5. Recent Blog Posts?
More then just the users recently created nodes, but specifically their recentley created blog entries.
6. Recent Forum Posts?
More then just the users recently created nodes, but specfically their forum posts.
6. Recent Comments?
Same as above but comments
7. Modified/Cleaner Buddy List display.
The code that I am currently using is as follows:
<?php
/* if you want to change which category you grab just change the following line */