ssi_recentTopics boggling my mind

Started by rotinhellorg, July 10, 2006, 03:11:12 PM

Previous topic - Next topic

rotinhellorg

I'm having a rather confusing problem with the recentTopics function.  I want to show the last ten headlines, but for someone reason it's only showing the first one.  Here's my code.

<?php ssi_recentTopics($num_recent 10$exclude_boards = array('2''3''4''5''6''7''8'), $output_method 'array');
  
  foreach ($array as $post)
{
echo '
  <table width="200" border="0" cellspacing="0" cellpadding="0">
  <tr class="style4">
    <td align="left" valign="top"><strong><a href="'
$post['href'], '"><font color="#FFFFFF">'$post['subject'], '</font></a></strong></td>
  </tr>
  <tr class="style4">
    <td align="left" valign="top">'
$post['time'], '</td>
  </tr>
</table>
<hr align="center" width="100" size="2" color="#FFFFFF"/>'
;
}
  
  ?>

Rudolf

I'm not aware of the possibility to do variable assignemnt in function calling the way you did. I mean that looks like declaring/prototyping the function.
I'd simply do
$my_array ssi_recentTopics(10, array('2''3''4''5''6''7''8'), 'array');
foreach (
$my_array as $post)
	
{
	
	
echo 
'
...'
;
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Advertisement: