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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 101
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 127
  • Total: 127

Theme out of shape due to block

Started by katers, July 23, 2007, 04:22:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

katers

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>';


IchBin

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.

katers

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.