TinyPortal
Development => Support => Topic started by: Skyi on March 27, 2009, 12:11:46 PM
in my shoutbox (tp module, tp 1.0 beta3) the fist shout is fix between the smile row and the row "last 5 shouts". then there is the scrolling with shouts.
how can i remove the firstshout?
thanks
Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)
standard installation, no mods
TP1_beta3\tp-files\tp-modules\TPShout\Sources\TPShout.php
while($row = mysql_fetch_assoc($request))
{
if($first)
{
$first=false;
$firstshout = '<div class="firstshout">';
$firstshout .='<div style="margin: 4px;"><div class="shoutheader tborder"><b>'.$row['value3'].'</b></div><div style="padding: 2px;"> '.timeformat($row['value2']).'</div><div style="padding: 4px;">';
$myshout='';
$myshout=$row['value1'];
$firstshout .= doUBBC(censorText($myshout));
$firstshout .= '</div></div>';
$firstshout .= '</div>';
$nshouts .= '<div class="singleshout firstshout">';
$nshouts .='<div style="margin: 4px;"><div class="shoutheader windowbg2"><b>'.$row['value3'].'</b></div><div style="padding: 2px;"> '.timeformat($row['value2']).'</div><div style="padding: 4px;">';
$myshout='';
$myshout=$row['value1'];
$nshouts .= doUBBC(censorText($myshout));
$nshouts .= '</div></div>';
$nshouts .= '</div>';
}
else
{
$nshouts .= '<div class="singleshout">';
$nshouts .='<div style="margin: 4px;"><div class="shoutheader windowbg2"><b>'.$row['value3'].'</b></div><div style="padding: 2px;"> '.timeformat($row['value2']).'</div><div style="padding: 4px;">';
$myshout='';
$myshout=$row['value1'];
$nshouts .= doUBBC(censorText($myshout));
$nshouts .= '</div></div>';
$nshouts .= '</div>';
}
}
$nshouts .='</div>';
in the sources from web browser the incriminated raw is generated by that code (div class=firstshout ecc)
thanks