View Single Post
  #3 (permalink)  
Old 02-18-2008, 04:29 PM
qads qads is offline
New Pligger
 
Join Date: Jan 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
this code is needed at the end of your "/libs/link_summary.php" to make 2 story columns: (DOES NOT WORK WITH 9.9)

find "if ($new_search) { foreach($new_search as $link_id)" and replace it and all code below with this code:


Quote:
if ($new_search) {
foreach($new_search as $link_id) {
$link->id=$link_id;
$link->read();
$link->print_summary('summary');
}
} else {
if ($links) {
$i=0;
echo "<table>";
foreach($links as $link_id) {
if($i%2==0)
{
echo "<tr><td valign='top' width='50%'>";
$link->id=$link_id;
$link->read();
$link->print_summary('summary');
}
else
{
echo "</TD><td valign='top' width='50%'>";
$link->id=$link_id;
$link->read();
$link->print_summary('summary');
echo "</td></tr>";
}
$i++;
}
echo "</table>";
}
}
?>
Reply With Quote