Active
Project:
User Stats
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 May 2010 at 11:22 UTC
Updated:
5 Apr 2012 at 14:27 UTC
Hi,
I was wondering if this module is compatible with Views 3?
I'm looking to move over and find many major contrib modules have added compatibility.
Thanks!
Comments
Comment #1
robby.smith commentedCopy and pasting the threads where other contrib modules added compatibility (list was compiled by someone else)
CCK - http://drupal.org/node/670344
Flag - http://drupal.org/node/673508
Content Profile - http://drupal.org/node/670092
Better Exposed Filters - http://drupal.org/node/641964
Project - http://drupal.org/node/716656
Project Issue Tracking - http://drupal.org/node/716658
Hierarchical Select - http://drupal.org/node/729858
Date - http://drupal.org/node/698522
Comment #2
liam mcdermott commentedThanks for raising this, I haven't done any work on Views 3 compatibility, yet. Do you know if the API is stable?
Comment #3
robby.smith commentedHi Liam,
I have been using Views 3 a lot recently and haven't had much issues with those modules listed above and with others. There is a Views 6.x-3.0-alpha3 already released and the dev version is actively updated (I'm using dev at the moment). I'm not familiar with programming so not sure about your question about API being stable (sorry!). From reading through the other contrib modules that added compatibility, it seemed like some minor stuff like the function to save the options in the settings for relationships and filters etc. needed a change.
I find the User Stats module to be great as it adds the much needed user statistics and the views integration allows the info to be used as filters in displaying users on a site.
Thank you!
Comment #4
kwinters commented"API is stable?" = "will they change the names of functions and break all my hard work?"
Since it's on Alpha 3, the answer is: maybe, but probably not.
Comment #5
robby.smith commentedI see I see, they probably won't change as there are many modules depending on Views and the views team is very good about keeping things under control =)
Comment #6
YK85 commentedsubscribing
Comment #7
rburgundy commentedHi,
I don't see these in views 3:
days registered;
join date;
days since last login;
days since last post;
post count;
login count;
user online/offline;
IP address;
I only see these as fields
User Stats: Statistic name
User Stats: Value
And filters
User Stats: Statistic name
Im using view type: User
Thank you very much
Comment #8
rburgundy commentedany update? thanks so much
Comment #9
SeanBannister commented@rburgundy I noticed you mentioned that you only see:
in Views 3. Can you check what you see in Views 2 as I only see these two options in Views 2. I'm also interested in a Views 3 version. But the reason I found this post was for an unrelated reason, looking for "days registered" in views.
Comment #10
rburgundy commentedHi SeanBannister,
I'm not sure as I only use Views 3. But from your explanation it is the same problem in Views 2?
I wonder how to get these fields:
days registered;
join date;
days since last login;
days since last post;
post count;
login count;
user online/offline;
IP address;
Comment #11
rburgundy commentedI found out the below information from testing..very confusing stuff(!)
login count = User Stats: Value <= wish this was better named
days since last login; = User: Last login or User: Last access" with Date format as 'time ago'
user online/offline; = User: Is online
still can't find:
days registered;
join date;
Comment #12
SeanBannister commented@rburgundy: I ended up solving my problem, turns out Views calls it "User: Created date". Can't believe I missed it.
Comment #13
SeanBannister commentedopps
Comment #14
chuckbar77 commented+1 subscribing
Comment #15
Bilmar commented#910596: Views Cannot Sort by "Is Online" looks to also be a Views 3 compatibility issue.
subscribing
Comment #16
liam mcdermott commentedI am itching to get working on this, but am lacking time at the moment. I'll make time if someone can make a patch, however.
Comment #17
chuckbar77 commentedmarked #910596: Views Cannot Sort by "Is Online" a duplicate of here
hope someone with programming skills can help us out with this one =)
Comment #18
Amy_M commentedSubscribing
Comment #19
chuckbar77 commentedKindly bumping.
Comment #20
fadgadget commentedsubscribing
Comment #21
broncomania commentedsubscribing
Comment #22
ChrisValentine commentedI too am wanting this module to work (better) with Views 3. I want to add a block to a users' page to display all of the following:
Last login date (I have that working)
Date of last posting (or number of days ago)
Number of posts
Number of logins
I make use of "User Stats: Value" in the fields of the view but the number I get back appears meaningless. If I apply a Filter the block vanishes.
I also tried creating this just in a custom Block with the PHP filter enabled and example code snippets from the aPaddedCell site but that just resulted in the "UID is not a number error":
Post count: <?php print user_stats_get_stats('post_count', $node->uid); ?>Comment #23
reysharks commentedHey guys,
i've modified the file: views_handler_filter_is_online.inc for working with views 3. All i need is filtering online/offline users so this works only for the view filter but it can be useful.