Sticky Threads - 06/17/2002 1:57 AM
It would be a great idea if before the title of any sticky posts it said Sticky or Announcement etc. At the moment it is not easy to see if a post is sticky or not.
Ian.
Ian.
code:
// Setup the postrow array
$postrow[$z]['color'] = $color;
$postrow[$z]['indentsize'] = "0";
$postrow[$z]['folder'] = $folder;
code:
if ($Sticky) {
$Subject = "<span class="new"><em>(sticky)</em></span> $Subject";
}
// Setup the postrow array
$postrow[$z]['color'] = $color;
$postrow[$z]['indentsize'] = "0";
$postrow[$z]['folder'] = $folder;
code:
// ----------------------------------------------------------
// If this post is sticky then we need to use the sticky date
if ($Sticky) {
$time = $html -> convert_time($Sticky,$user['U_TimeOffset']);
} else {
if ($view != "expanded") {
$time = $html -> convert_time($Last_Post,$user['U_TimeOffset']);
}
else {
$time = $html -> convert_time($Posted,$user['U_TimeOffset']);
}
}
code:
// ----------------------------------------------------------
// If this post is sticky then we need to use the sticky date
if ($Sticky) {
$time = $html -> convert_time($Sticky,$user['U_TimeOffset']);
} else {
if ($view != "expanded") {
$time = $html -> convert_time($Last_Post,$user['U_TimeOffset']);
}
else {
$time = $html -> convert_time($Posted,$user['U_TimeOffset']);
}
}
code:
// Setup the postrow array
$postrow[$z]['color'] = $color;
$postrow[$z]['indentsize'] = $indentsize;
$postrow[$z]['folder'] = $folder;
code:
// Setup the postrow array
$postrow[$z]['color'] = $color;
$postrow[$z]['indentsize'] = "0";
$postrow[$z]['folder'] = $folder;
code:
if ($Sticky) {
$Subject = "<span class="new"><em>(sticky)</em></span> $Subject";
}
code:
if ($Sticky) {
$Subject = "<img src="{$config['images']}/pushpin.gif" border="0" /> $Subject";
}
code:
if ($Sticky) {
$Subject = "<img src="{$config['images']}/pushpin.gif" border="0" alt="sticky" /> $Subject";
}
code:
SELECT t1.B_Number,t1.B_Parent,t1.B_Username,t1.B_Posted,t1.B_Last_Post,t1.B_Subject,t1.B_Main,t1.B_Status,t1.B_Approved,t1.B_Icon,t1.B_Reged,t1.B_Counter,t1.B_Sticky,t1.B_Replies,t1.B_Rating,t1.B_Rates,t1.B_RealRating,t2.U_Color,t2.U_Status
code:
SELECT t1.B_File,t1.B_Number,t1.B_Parent,t1.B_Username,t1.B_Posted,t1.B_Last_Post,t1.B_Subject,t1.B_Main,t1.B_Status,t1.B_Approved,t1.B_Icon,t1.B_Reged,t1.B_Counter,t1.B_Sticky,t1.B_Replies,t1.B_Rating,t1.B_Rates,t1.B_RealRating,t2.U_Color,t2.U_Status
code:
list($Number,$Parent,$Username,$Posted,$Last_Post,$Subject,$Main,$Open,$Approved,$icon,$Reged,$Counter,$Sticky,$Replies,$Rating,$Rates,$stars,$Color,$PostStatus) = $dbh -> fetch_array($sth);
code:
list($File,$Number,$Parent,$Username,$Posted,$Last_Post,$Subject,$Main,$Open,$Approved,$icon,$Reged,$Counter,$Sticky,$Replies,$Rating,$Rates,$stars,$Color,$PostStatus) = $dbh -> fetch_array($sth);
code:
// Setup the postrow array
code:
if ($File) {
$Subject = "<img src="{$config['images'}/disk.gif" border="0" alt="$File" /> $Subject";
}
code:
$Subject = "<a href="{$config['fileurl']}/$File"><img src="{$config['images'}/disk.gif" border="0" alt="$File" /></a> $Subject";