View Single Post
  #4 (permalink)  
Old 02-18-2008, 04:46 PM
qads qads is offline
New Pligger
 
Join Date: Jan 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
solved it. THIS VERSION WORKS WITH PLIGG 9.9! (only tested with yget but works with all templates that use the standard libs files)


1. just open /libs/link_summary.php
2. look at the end of the file
3. and replace the code - starting with "if ($new_search) {
foreach($new_search as $link_id)" - with that one:

if ($new_search) {
foreach($new_search as $link_id) {
$link->id=$link_id;
$link->read();
$link_summary_output .= $link->print_summary('summary', true);
}
} else {



if ($links) {
$i=0;
$link_summary_output .= "<table>";
foreach($links as $link_id) {
if($i%2==0)
{
$link_summary_output .= "<tr><td valign='top' width='50%'>";
$link->id=$link_id;
$link->read();
$link_summary_output .= $link->print_summary('summary', true);
}
else
{
$link_summary_output .= "</TD><td valign='top' width='50%'>";
$link->id=$link_id;
$link->read();
$link_summary_output .= $link->print_summary('summary', true);
$link_summary_output .= "</td></tr>";
}
$i++;
}
$link_summary_output .= "</table>";

}
}
if(isset($fetch_link_summary) && $fetch_link_summary == true){
$main_smarty->assign('link_summary_output', $link_summary_output);
} else {
echo $link_summary_output;
}
?>
Reply With Quote