TinyPortal

Development => Support => Topic started by: katers on July 23, 2007, 04:22:21 AM

Title: Theme out of shape due to block
Post by: katers on July 23, 2007, 04:22:21 AM
I am sorry, I can't for the life of me remember what this block code is called.

Anyway, my template is jutting out too far to the right and it is because of this block.  One of the user names is too big.  When I try to adjust the size of it, all of them are reduce except for this one called designer finishes.

Here is a screen shot of forum and also included code.

global $db_prefix;
$count= array();

$query = db_query(
    "SELECT posterName
     FROM {$db_prefix}messages
     ORDER BY posterTime DESC
     LIMIT 80", __FILE__, __LINE__);

while ($row = mysql_fetch_assoc($query))
{
  if (!isset($count[$row['posterName']]))
    $count[$row['posterName']] = 0;
  ++$count[$row['posterName']];
}

$random = array_rand($count, count($count));
echo '<div style="text-align: center">';
foreach ($random as $value)
{
  $fsize = $count[$value] + 6;
  $name = str_replace(" ",'Ã,·',$value);
  echo '<span style="font-size:' . $fsize . 'pt;">' . $name . '</span> ';
}
echo '</div>';

Title: Re: Theme out of shape due to block
Post by: IchBin on July 23, 2007, 04:40:53 AM
Not really meant to be in a side block if you ask me. I think that is the cloud active poster snippet. I don't know the exact name either. You could add overflow: auto; to the style of the <div> tag. That would make a scrollbar.
Title: Re: Theme out of shape due to block
Post by: katers on July 23, 2007, 04:45:33 AM
That's it!  It is called cloud something.  Funny I have had it on there since about January and never had a problem with it until today.