I have searched for this information repeatedly, but I may be using the wrong terms/search criteria or something.

I am looking for a Mod/Theme/PHP script or something that will allow me to create a block on my main page that lists the Users who have logged in within the last 24 hours or whatever time period I choose If it has options.

Is there a way to do this? I can find things that list recent Nodes but I dont think that would apply to User Logins, would it ?

BTW, I am brand new to Drupal, but have managed to get my site built and running error free. I am using Drupal Core 7.30

Eddie Miller
KI4RQK

Comments

VM’s picture

I'd investigate using the views.module and generating a block display.

edmiller67’s picture

I am looking at that but i have no real understanding of the Views module, and no local source of training, so i am learning from flying by the seat of my pants. Since this is a volunteer project for our local club I dont have funds to hire anyone to work with me..
I am currently in the process of tracking down and viewing training videos/Youtube videos on VIEWS, etc but I am guessing this will be like learning the basics.. a VERY steep learning curve.. LOL..
They say it is the path that makes the journey worthwhile, so I guess this one will be a great one :)

Eddie

p.s.. I do appreciate you giving me a pointer on the direction to follow so I am at least heading the right way :)

VM’s picture

what action defines a recent user? last to post a node? last to register for the site? last to visit the site?

I'd start learning views.module with the tutorial videos @ http://nodeone.se/en/taming-the-beast-learn-views-with-nodeone

edmiller67’s picture

For what I am wanting, it would be defined by Last to visit the site.

I will start watching those videos to learn it.. thank you !

edmiller67’s picture

OK.. got it displaying the users who have been on since midnight, but it gives their ENTIRE profile except their username. I still have more to learn but this is a start for sure.. :)

Eddie

VM’s picture

A screenshot of settings of the view linked to your next comment would aid in support.

albertski’s picture

I wrote a module that does this: https://www.drupal.org/sandbox/albertski/2326193

edmiller67’s picture

OK.. I am sorry to sound so ignorant, but I have never dealt with a sandbox project before. I see no downloads, but i see instructions for using the GIT command to obtain the source <?> files and then instructions for (I am guessing) patching my Drupal installation to add this ability.. Is this correct, or am i missing an obvious download to a "standard" module format download ??

VM’s picture

you use git to obtain the files. You do not patch the drupal installation.

edmiller67’s picture

OK.. I was abale to download the files, but how do i install them? I am searchging the information, but the docs appear to be so scattered around that I cannot find a comprehensive listing of how to go from a GIT download of files to installing them as a module. I tried making a ZIP of them, but it said there was no INFO file found, even though there was a WHO_LOGGEDIN.INFO in the ZIP file, so I am obviously making a very simple mistake. I tried copying thyem to a folder in the SITES/ALL/MODULES directory, but that created a bunch of errors on my modules page when i went to see if it was listed ...

VM’s picture

no sure why you are zipping the files. Trying to use the admin ui to perform the upload?

I tried copying thyem to a folder in the SITES/ALL/MODULES directory, but that created a bunch of errors on my modules page when i went to see if it was listed ...

what were the errors?

edmiller67’s picture

OK.. it would seem that when i obtained the files PROPERLY using a GIT client, it also included a .GIT folder with it. When I uploaded the entire directory including that folder, and went into the Module section, everything worked properly. This does EXACTLY what i was looking for. Thank you so much !!!