Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: Septimus - syyskuu 11, 2008, 08:51:40 IP

Otsikko: ssi recent posts
Kirjoitti: Septimus - syyskuu 11, 2008, 08:51:40 IP
   $results = ssi_recentTopics(50, array(), array(5,9,6,7,29,8,11,84,56,21,12,15,13,48,45,63,10,27,53,78,88), 'array');
   foreach($results as $recent_topic)
{
   echo $recent_topic['link'] . '<br />';
}


I'm using the above code on my site, and I wanted to display 100 topics all together, but have 50 in one column, and 50 in another. I'm not sure how to do this.
Otsikko: Re: ssi recent posts
Kirjoitti: ディン1031 - syyskuu 14, 2008, 10:33:34 AP
$results = ssi_recentTopics(50, array(), array(5,9,6,7,29,8,11,84,56,21,12,15,13,48,45,63,10,27,53,78,88), 'array');
echo '<table><tr><td>';
$c = 1;
   foreach($results as $recent_topic)
   {
      echo $recent_topic['link'];
      if(50 == $c++)
         echo '</td><td>';
      else
         echo '<br />';
   }
echo '</td></tr></table>';

Something like that should work =).
Otsikko: Re: ssi recent posts
Kirjoitti: Septimus - syyskuu 17, 2008, 05:04:18 IP
Thank you!!

That worked perfectly!