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

Recent

Welcome to TinyPortal. Please login or sign up.

April 28, 2024, 10:15:03 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 130
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 103
  • Total: 103

Users Online

Started by DarkMain, February 12, 2006, 05:02:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DarkMain

Umm, the Users Online section in the Stats block is now to large.

I don't have a very busy site, and there is a lot of blank space at the bottom now that wast there before the update.

resurgence

#1
uh.. same here.


EDIT
hmm.. changed this line in tportalblocks.template
<div style="width: 100%; height: 23ex; overflow: auto;">';

to
<div style="width: 100%; overflow: auto;">';

and the box disappeared, but i think that box was there to accomodate the "scrollbar show for big online lists" that was put in the  new update.

i wonder if it'll still show since i removed it...

i can also change "ex" to "px" but yeah...

Xarcell

This isn't really a bug/error, but a good helpful tip.

bloc

Yes, i just noticed it myself. You will need a height to make the overflow: auto work, so you could use something like:

<div style="width: 100%; ' , $online['num_users']>14 ? 'height: 23ex;overflow: auto;' : '' ,'">';

It will then apply a height ONLY when there are +14 users displayed. Adjust that number to your liking. :)

In the next version a setting for both height and limit of users-before-scrollbar will be included.

resurgence

Quote from: Bloc on February 15, 2006, 01:04:07 AM
Yes, i just noticed it myself. You will need a height to make the overflow: auto work, so you could use something like:

<div style="width: 100%; ' , $online['num_users']>14 ? 'height: 23ex;overflow: auto;' : '' ,'">';

It will then apply a height ONLY when there are +14 users displayed. Adjust that number to your liking. :)

In the next version a setting for both height and limit of users-before-scrollbar will be included.

perfect! :) i shall update my template file with this now. :)