One of my Friend requested to have the feature of showing the News on Double Columns on the News page. So I have made some modification to the file news.php to make it work...!
Here is what I have tried and its almost what it should show as Double Column.
[size=24]STEPS :[/size]
1. Backup and open your news.php file.
2. Find these Lines in this File (around Line 22): [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]// Predefined variables, do not edit these values $i = 0;[/syntaxhighlighter] 3. After these Lines, Add the given below Lines : [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]// Counter for Displaying News in 2 Columns $counter = 3;[/syntaxhighlighter] 4. Now Find this Line : [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]// Number of news displayed $items_per_page = $settings['newsperpage'];[/syntaxhighlighter] Change this Line to : [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]// Number of news displayed $items_per_page = $settings['newsperpage']+1;[/syntaxhighlighter] 5. Now Find this Line in the File (around Line 51) : [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$numrows = dbrows($result);[/syntaxhighlighter] 6. After these Lines, Add the given below Lines : [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]// Table for 2 Columns News echo "<table cellpadding='2' cellspacing='2' width='100%' border='0'>\n<tr>\n";[/syntaxhighlighter] 7. Now Find these Lines (around Line 83) : [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<!--news_prepost_".$i."-->\n"; render_news($news_subject, $news_news, $news_info);[/syntaxhighlighter] 8. Replace these Lines with : [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<td valign='top' width='20%'>\n"; echo "<!--news_prepost_".$i."-->\n"; render_news($news_subject, $news_news, $news_info); echo "</td>\n"; if (($counter % 2 == 0) && ($counter != $items_per_page+2)) { echo "</tr>\n<tr>\n"; } $counter++;[/syntaxhighlighter] 9. Now just after two Lines, You will Find this Line : [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<!--sub_news_idx-->\n";[/syntaxhighlighter] 10. Add the given below Line before the above given Line : [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "</tr>\n</table>";[/syntaxhighlighter]
DONE !!! SAVE YOUR FILE AND TEST IT !!!
[size=24][ MODDED FILE FROM VERSION 7.02.03 ATTACHED ][/size]