Module: User Info

Charles08

Joined: 2008-02-22
Posts: 25
Posted: Sun, 2011-01-30 10:21

User Info

http://codex.gallery2.org/Gallery3:Modules:user_info - Download & Screenshots


About
Logs User ID, User Name, IP Address, Date and Time, and Action when users Login, Logout, Failed Login Attempt, Admin Re-Authenicate, or when a user registers.


Features

  • Logs User Id, Username, IP Address, Date & Time, and the Action
  • Can click on the Username(if valid) and open the User Profile Page
  • Can click on the IP Address to do a reverse lookup.
  • Choose Default Records per Page
  • Choose Default Sort Column
  • Choose Default Sort Order
  • Choose to use the Gallery Date & Time or your own custom Date & Time
  • Choose what you want to log.
  • Choose the color of the Action

INSTALLATION
A link to the latest version can be found at the top of this post. Once downloaded upload the user_info folder to your Gallery3 installation. Once uploaded log in with your administrator account and proceed to the Modules section. Check the box next to User Info and click Update at the bottom of the page. Once installed under Settings will be a new User Info page.


KNOWN ISSUES

  • None that I am aware of.

CHANGE LOG

  1. Version 1
    • v1.0 Initial Release
  2. Version 2
    • v2.0 - 01/16/2011
      • Fixed the Installer file to uninstall correctly.
AttachmentSize
user_info v2.zip9.33 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2011-01-30 16:56

Cool! Thanks for the contribution and the codex page as well.
I have made some updates:
http://galleryproject.org/node/111914#comment-405564

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
engineer

Joined: 2005-09-13
Posts: 84
Posted: Wed, 2011-04-27 09:53

After update gallery3 from git today, admin dashboard can't display correctly.
If I disable the module, it display well.

The module may be reviewed to work with current gallery 3 core.

 
tenneck

Joined: 2011-03-10
Posts: 56
Posted: Sun, 2011-05-29 15:31

It doesn't work with gallery 3.0.2 !! :(

 
Charles08

Joined: 2008-02-22
Posts: 25
Posted: Sun, 2011-05-29 17:10
tenneck wrote:
It doesn't work with gallery 3.0.2 !! :(

I just saw the update to Gallery and will look into why it doesn't work.

Thanks for letting me know.

 
mikedbom

Joined: 2011-06-29
Posts: 9
Posted: Wed, 2011-06-29 03:20

Any luck getting this to work with G3.02? Was looking forward to its capabilities. Thanks.

 
mikedbom

Joined: 2011-06-29
Posts: 9
Posted: Wed, 2011-06-29 03:26

Also, the information this module provides will be located on the Dashboard? I see you can add to the center or the sidebar, just wondering if that is the only place. Any chance this module can trigger an email on new user registration? (i know it's a long shot but worth asking)

 
peszko

Joined: 2011-02-03
Posts: 4
Posted: Thu, 2011-06-30 21:11

I second the request, I relied on the information that this module provided.

 
kukrapok
kukrapok's picture

Joined: 2011-07-16
Posts: 32
Posted: Wed, 2011-08-10 13:13

Added to G3.0.2. I could modify some settings in the admin panel.. but I don't see where the user info is displayed.

 
Joraeim

Joined: 2011-08-22
Posts: 1
Posted: Mon, 2011-08-22 11:42

I realize this is an older thread, but has any progress been made on fixing User Info for G3.0.2? Mikedbom: I modified the user registration module to email me when someone registered. If you want it I can post a link to download it. A warning, it is a VERY poor modification. Everything is hard coded into the files.

 
engineer

Joined: 2005-09-13
Posts: 84
Posted: Mon, 2011-09-26 08:00

@Charles08, do you have any update? It is a really helpful module for admin to log user actions. But gallery admin dashboard can't display well if enable this module and add it to center or sidebar area. Thank you.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-09-27 04:08

I was able to get this to work by resetting the advanced options:
http://gallery.menalto.com/node/102327#comment-375181
then removing one block and then the new block shows up with the one I deleted.
not sure of the root cause but it did work for me.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-09-27 04:16

oh and line 48 of helpers/user_info_installer.php
module::set_version("user_info", 2);

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
engineer

Joined: 2005-09-13
Posts: 84
Posted: Tue, 2011-09-27 17:01

@floridave, unfortunately these two modifications can't solve my problem.
Finally, I find the problem is on the code in modules/user_info/views/admin_block_user_info.html.php, line 24

<td align="center" colspan="6"><?= $pager ?></td>

If I remove "<?= $pager ?>", i.e.

<td align="center" colspan="6">1</td>

The dashboard is displayed okay, user_info lists the log but the pagination doesn't work any more. There is still a problem but I don't know how to solve it.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2011-09-28 03:31
Quote:
but I don't know how to solve it.

nor do I as I never use this module and don't see this error you talk about.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mrf00rk
mrf00rk's picture

Joined: 2005-06-02
Posts: 158
Posted: Tue, 2011-10-11 09:37

Still wont work after floridave's tips. (In 3.0.2 and greydragon)
THis is my dashboard after I did what floridave is talking about:
[img]http://bildr.no/thumb/996890.jpeg[/img]

My other sandbox

 
DaveRH
DaveRH's picture

Joined: 2005-08-27
Posts: 18
Posted: Tue, 2011-10-11 15:38

I made these changes to get it to work:

line 48 of helpers/user_info_installer.php
------------------------------------------
module::set_version("user_info", 1);

change to

module::set_version("user_info", 2);
------------------------------------------

as per floridave's post above and

line 21 of views/admin_block_user_info.html.php
------------------------------------------
<? if ($number_of_records) { ?>

change to

<? if ($number_of_records > 0 ) { ?>
------------------------------------------

Dave Harris

This space accidentally left blank

 
KCFoto

Joined: 2011-11-12
Posts: 1
Posted: Sat, 2011-11-12 23:01
DaveRH wrote:
I made these changes to get it to work:

line 48 of helpers/user_info_installer.php
------------------------------------------
module::set_version("user_info", 1);

change to

module::set_version("user_info", 2);
------------------------------------------

as per floridave's post above and

line 21 of views/admin_block_user_info.html.php
------------------------------------------
<? if ($number_of_records) { ?>

change to

<? if ($number_of_records > 0 ) { ?>
------------------------------------------

Dave Harris

This space accidentally left blank

I have tried these modifications (which seem to be included in the latest version) but still get the error as described above. Anyone any sugestions?

 
g_r_a_d

Joined: 2011-11-27
Posts: 8
Posted: Mon, 2011-12-12 13:57

Are there any progress in removing this issuse?

 
mhoyos

Joined: 2011-12-16
Posts: 1
Posted: Fri, 2011-12-16 19:23

hi..

are there any solutions a this module ??

thanks...

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2013-08-10 17:40

Remove
<?= $pager ?>
from user_info/views/admin_block_info.html.php and increase the 'Number of records to display per page' admin setting.

Dave

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2013-08-16 14:51

If you are running an experimental version of G3:
http://galleryproject.org/node/111914#comment-405564

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
joecooper84

Joined: 2013-08-22
Posts: 7
Posted: Thu, 2013-08-22 01:28

Thanks Dave, that fixed it for me!
However the file path / name I have is
user_info/views/admin_block_user_info.html.php