Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Here is a port of Login History for Drupal 6.
Attached is a .tar.gz for the module, and a patch to show the differences between the D7 version (with #1691474: Convert files to unix line endings applied first).
I'd also like to volunteer to help maintain the D6 and D7 versions of this module.
Comment | File | Size | Author |
---|---|---|---|
#12 | user_track_persistent_exposed_filter.png | 25.13 KB | star-szr |
#5 | login_history-1700140-5.tar_.gz | 2.92 KB | star-szr |
#3 | Screenshot from 2012-07-31 13:25:23.png | 72.72 KB | a_thakur |
#2 | Screenshot from 2012-07-31 13:25:14.png | 112.75 KB | a_thakur |
login_history-d6_port.patch | 11.12 KB | star-szr | |
Comments
Comment #1
greggleshi cottser - thanks for the code and many patches! I hope to review these in the near future.
I've asked another potential co-maintainer to review the patches so I guess we'll go from there :)
Comment #2
a_thakur CreditAttribution: a_thakur commentedHi,
Is there a bug in the d6 port but when I went through the code and functionality of d7 version, it has the same bug.
In case the admin navigates to http://example.com/user/2/login_history (I am taking an example for a user with uid 2). In this case the login history of the user with uid should be displayed but the results show the login history of all the users(attached screen shot would give a better overview). The user is test in this case, but the results show the login history of admin too. The same bug is present in d7 version too.
Apart from that, "_" should be avoided in menu items, instead it should be replaced with "-". So the menu item would be
There is a coding standard error on line# 87 in login_history.pages.inc, else statement should begin on a new line.
Thanks,
Ashish
Comment #3
a_thakur CreditAttribution: a_thakur commentedSorry, wrong screenshot attached. The above one is for d7, please find the attached screenshot for d6.
Comment #4
star-szrI'd be happy to fix the coding standard issue and re-post if you like.
I didn't touch hook_menu() at all in the port, and reported the bug you saw in #1691412: Per-user login history report shows data from all users. If we update both of these I think they should be fixed in the D7 version as well, so perhaps we can open a follow-up issue to convert the menu items from underscores to dashes.
Comment #5
star-szr@a_thakur, thanks for the review. Attached is an updated version of the D6 port that fixes the coding standard issue.
Opened #1707200: Change user login history menu item to use a dash instead of an underscore as a follow-up issue for updating the menu items.
Comment #6
gregglesSo, @Cottser proposed becoming a co-maintainer in this issue and @a_thakur proposed it to me via email.
I'm inclined to add both of you as maintainers. Let me know if you have any more ideas or concerns on that.
Comment #7
a_thakur CreditAttribution: a_thakur commentedThanks @greggles for considering us to co-maintain the module.
I think views integration would be good initiative which was also raised in #1402266:Statistics and maybe views integration .
@Cottser: Could you please review my sandbox module: User Track which has views integration and it also takes into consideration failed login. I think some of the features can be merged here.
@greggles: I would be great in case you permit us to go ahead with views integration and other features which are implemented in my sandbox module.
Thanks,
Ashish
Comment #8
greggles@Cottser - what do you think? I'm still inclined to add you both as maintainers?
Comment #9
star-szr@greggles - While I greatly appreciate the code review here by @a_thakur, at this time I can't confidently recommend him as a co-maintainer of this module. My opinion is based only on his patch submitted in #1691412-1: Per-user login history report shows data from all users and looking briefly at his User Track module, so I could be wrong :)
@a_thakur - Please let me know if I've misjudged the situation in any way. I currently have Login History deployed on over a dozen production D6 and D7 sites so #1691412-1: Per-user login history report shows data from all users made me a bit nervous!
Comment #10
a_thakur CreditAttribution: a_thakur commented@Cottser: It would be great in case look the User Track module in depth: code + functionality. As I believe I have been really careful while developing that module and has all the drupal coding standards expect at two places where the line exceeds 80 characters. All other issues like per user login history and other permissions are taken care of.
One thing I could think of is that we could maintain a new branch(the users would not be suggested to use this branch). where both of us could push the code and do a peer review of the code as well as the functionality and once we are sure enough the code is bug free we could merge the code to rc or the stable branch.
Comment #11
a_thakur CreditAttribution: a_thakur commented@Cottser: I hope you have had time to look at User Track in depth.
@greggles: I would be really great in case you could too, have a look the code and give your feedback. I think the method suggested in comment #10 is a good idea to go forward.
Comment #12
star-szr@a_thakur - Thanks for following up. I took some time to review your User Track module more in depth. A few things I noticed:
Comment #13
star-szr@greggles - My offer to help maintain still stands. I'm about to deploy the module on two new Drupal 7 sites :)
Comment #14
greggles@Cottser, you're now a co-maintainer. Thanks!
Comment #15
star-szrThanks @greggles! I'll try to get a dev version of the 6.x port up, once that's done I'll mark this as fixed.
Comment #16
star-szrCommitted! The dev snapshot should be live within 12 hours according to the docs.