1
Mazar
I need a small hack for news module here is the code
  • 2009/7/22 8:36

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


$scount count($sarray);     $xoopsTpl->assign('story_count'$scount);     
$k 0;     
$columns = array();     
if(
$scount>0)     {         $soccer_storieslist=array();         
foreach (
$sarray as $storyid => $thisstory) {             $soccer_storieslist[]=$thisstory->storyid();         }         
$filesperstory $sfiles->getCountbyStories($soccer_storieslist);          foreach ($sarray as $storyid => $thisstory) {             $filescount array_key_exists($thisstory->storyid(),$filesperstory) ? $filesperstory[$thisstory->storyid()] : 0;             $story $thisstory->prepare2show($filescount);             // The line below can be used to display a Permanent Link image             // $story['title'] .= "  ";             $story['soccer_title'] = $story['title'];             $story['title'] = $thisstory->textlink().' : '.$story['title'];             $story['topic_title'] = $thisstory->textlink();             
$story['topic_color'] = '#'.$myts->displayTarea($thisstory->topic_color);                if($firsttitle=='') {                    $firsttitle=$myts->htmlSpecialChars($thisstory->topic_title()) . ' - ' .  $myts->htmlSpecialChars($thisstory->title());                }             
$columns[$k][] = $story;             
$k++;             
if (
$k == $column_count) {                 
$k 1;


I am using two columsn layout for news but i want first story in one column and the rest in two columsns. how can i do that

2
bjuti
Re: I need a small hack for news module here is the code
  • 2009/7/23 0:16

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


You don't need a hack, use LatestNews module or XM-Spotlight module.. :) I think that's right spelling...

Login

Who's Online

403 user(s) are online (295 user(s) are browsing Support Forums)


Members: 0


Guests: 403


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits