SMF Support > SMF 2.0.x Support

SSI integration changed

<< < (3/4) > >>

Owdy:
LOL, every custom hack has to change. Sorry guys, but how do i fix this?


--- Code: ---<?php
$viestit = ssi_recentPosts(50, array(), 'return');
foreach ($viestit as $post)
     echo '', $post['time'], '&nbsp;<a href="', $post['href'], '">', $post['subject'], '</a> - ', $post['poster']['link'], '<br />';
echo'
</div>';
ssi_shutdown();
?>
--- End code ---

Im sorry to keep you this busy with my guestions :D

metallica48423:
what is it or is it not doing?  Have you checked to see if the parameters that the function is expecting has changed between 1.1.4 and 2.0's SSI? (just to knock that out).  I'd also check that the keys are the same.

I've never used return, shouldn't it be array?

Owdy:
It should show 50 last topics. Now it gives 'Database error, given array of integer values is empty.'

metallica48423:
well... The array IS empty :P

You're missing an argument as well.  Its changed (i guess)

from SSI.php
function ssi_recentPosts($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo')

So your first array needs to carry the boards you want to EXCLUDE, the second is the ones you want to INCLUDE

SleePy:
use NULL instead of array().

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version