Closed (fixed)
Project:
User Stats
Version:
6.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2009 at 13:01 UTC
Updated:
15 Feb 2009 at 17:10 UTC
Jump to comment: Most recent
Comments
Comment #1
liam mcdermott commentedFirstly, just to check, are you trying to use Advanced Forum or Advanced Profile Kit? User Stats has its own way of integrating with them.
If not, use something like the following code:
arg(1)gets theuid; however your code may be easier to read if you got theuidfrom$profileinstead. The API docs have some code you can use to see what's stored in$profile: http://api.drupal.org/api/file/modules/user/user-profile.tpl.php/6Also see the User Stats documentation for a full list of the statistics available and how to use them. Hope this helps. :)
Comment #2
volf commentedThanks that works!
I'm not using advanced forum or profile kit. I recently changed from phpbb based sites to drupal so i have allot to learn still. Trying not to be dependant on to many big modules, instead i use small ones and do as much customising as i can to accomplish something close.
Comment #3
liam mcdermott commentedI applaud your method, you'll learn a lot more doing things that way. :)
Comment #4
liam mcdermott commentedComment #5
Anonymous (not verified) commentedFor the post count you can change the visibility of the profile field to public. No code changes required.