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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-28-2008, 10:50 AM
New Pligger
Pligg Version: 9
Pligg Template: selfmade
 
Join Date: Jan 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
change 1 column to 2 columns (yget)

where can i change the default (yget) template to a two columns template?

i use pligg 9.9

/libs/link_summary.php ???


thanks for any help!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 04:44 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.


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
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
Navbar yget color change justdefend General Help 3 02-11-2008 10:33 PM
HELP: Continuos parse errors when trying to change the template code juanmartinbravo General Help 7 01-26-2008 05:03 AM
right column not displaying correctly RLCain Template Support 9 06-03-2007 05:05 PM
[Fixed] cannot change admin password v 9.1 - yget template PurpleCow Bug Report 2 02-21-2007 01:08 AM


Search Engine Friendly URLs by vBSEO 3.2.0