Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-09-2008, 11:33 PM
New Pligger
Pligg Version: 9.9.0
Pligg Template: yget - sort of
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up minty - link_summary.php for 9.9.0???

I would like a new link_summary.php like minty, that puts the stories into 2 columns.

Can anyone help?
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 03:52 PM
New Pligger
Pligg Version: 9
Pligg Template: selfmade
 
Join Date: Jan 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
i've the same problem

does nobody has an idea? do you know any other templates that show the stories in two columns?

Quote:
Originally Posted by Golfball View Post
I would like a new link_summary.php like minty, that puts the stories into 2 columns.

Can anyone help?
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 04:29 PM
New Pligger
Pligg Version: 9
Pligg Template: selfmade
 
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
  #4 (permalink)  
Old 02-18-2008, 04:46 PM
New Pligger
Pligg Version: 9
Pligg Template: selfmade
 
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
  #5 (permalink)  
Old 02-18-2008, 10:18 PM
New Pligger
Pligg Version: Pligg 9.9.0
Pligg Template: free
 
Join Date: Dec 2007
Location: earth
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
where there has a demo is better
__________________
http://minioffer.com
offers,personals,want ads
wish you luck
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
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


Search Engine Friendly URLs by vBSEO 3.2.0