TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 287
  • Total: 287

[Block] Avatar of Users Online

Started by IchBin, December 01, 2008, 02:18:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

Sorry, but I don't understand what you're asking. Isn't that what the second snippet of code does?

fl4pj4ck

but I would like to see it still in columns/rows and without scrolling effect

IchBin

How does the column/rows change on different screens? If you set them in the options of the code, they cannot change no matter what the screen is doing.

fl4pj4ck

when the resolution is set to 1680x1050 I want to have 20 avatars in a row
when the resolution is set to 1024x768 I want to have 10 avatars, because 20 will simply won't fit in

IchBin

You'd have to use some sort of javascript hack to even get the display. Not something I really want to look into sorry.

Jakki

Just put this on my testing site and works great...love it.

NenaGb

Quote from: contra on December 27, 2008, 10:37:24 PM
Excellent code!

the olny thing i can see it needs is to tell the number of guests online

Not sure if you still need this but you can add this:

$who = ssi_whosOnline('return');
echo 'Total Visitors Online: ', $who['total_users'];


to the end and it will give you total number of visitors to your site. It will count both guests and members.

---


BTW AWESOME CODE! Just what I was looking for!

NenaGb

I have found a new issue with this block code. Its showing user avatars that are no longer on line. Is there a way to keep it in sync with forum's area users online?

Renegd98

Nena if I remember right this script shows the users on within the last xxx time period.

NenaGb

Any clue how/where to adjust that? The forum area of active users online is set to the admin settings, but this block doesnt follow those same settings.

This website is proudly hosted on Crocweb Cloud Website Hosting.