I would like a new link_summary.php like minty, that puts the stories into 2 columns.
Can anyone help?
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| |
| |||
| i've the same problem
does nobody has an idea? do you know any other templates that show the stories in two columns? |
| |||
|
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:
|
| |||
|
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; } ?> |
| |||
|
where there has a demo is better
|
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Paid work for mod of ChuckRoasts Minty | danwalsh | Template Support | 0 | 01-07-2008 06:16 PM |





Linear Mode

