By darklight on
Hi. I have tried in Views but realized it is impossible anyway. I tried to custom-code it, but failed (miserably) and have browsed the net for hours trying to find a solution. Here's my issue...
I want to create a block (Views or PHP, I dont care which) that will display the "latest 10" logged in users. I don't know if this is possible, though surely it is, I meen, how hard can it be? I believe this is a "must have" script for a community website.
I notice the DrupalSN.com website has EXACTLY what I need, but with it being PHP, I cannot view their query code.
Any help would be deeply appreciated.
Comments
Views
You can sort a view by the user's last access time.
Michelle
Yes, I tried this. A few
Yes, I tried this. A few times, actually. The remaining problem is that the Distinct function does not work. I am now given 10 user pictures all from the same user... "ME!"
If it was that easy I'd have never posted here in the first place.
Thanks for replying.
It is that easy
I did it before I answered you. I didn't use the distinct function. Didn't need it. Sounds like you're doing something strange with your view but you haven't given enough details to guess what.
Michelle
Hey, it's all OK, I wrote a
Hey, it's all OK, I wrote a custom code to do this. Thanks for replying ;)
.
Well, whatever works. I needed to do it anyway because it's part of Advanced Profile Kit that hasn't been ported, yet.
Michelle
Do you need the source code
Do you need the source code for the script I wrote?
No thanks
I already made the view to do it.
Michelle
Hmm, I am getting some really
Hmm, I am getting some really strange errors here. Is there any chance of seeing your Views Export for this thing? It would help out tons if I see I am missing something.
Export
It won't work for you if you don't have Content Profile installed but here it is: