Drupal Association members fund grants that make connections all over the world.
I have a View overriding the User profiles and I also embed different views in user-page.tpl.php to produce an informative profile. Those views have the UID as an argument
Right now, this profile shows the following view blocks, with respective pages linked to:
My Data (simple CCK fields belonging to the profile).
My Articles (A CCK-enabled content type).
My Photos (A CCK-enabled content type).
My Bookmarks (Flag)
My Favorites (Flag).
To this profile page I want to add something like a header, rendering the total counts of every view, so-to-speak a statistic. In this setting it should output something like:
User (identified by UID) created 5 articles.
User created 3 photos.
User has 10 bookmarks.
User has 22 favorites.
Does anyone know how to achieve this? I looked around, but could not find any solution. I thought it would be rather trivial, given that I already have thoses embedded views.
I would think there must be some template function, where I can specify a view (it must be the page view since the result of the blocks here are limited to 5, hence a more link to the page) and the corresponding argument and get the total row count to display it.
Or maybe there is another alternative to this?
Thank you in advance.