Recent Topics

1 Oct 28, 2006 16:10    

This routine (I took somewhere here at this forum) used to work with version 0.9.2. Now it raises a box with this error "An unexpected error has occured!" plus the additional information that "Unhandled LIMITING mode in ItemList (paged mode is obsolete)".
You can see it at http://www.janela.com.br/blogs/ehrlich .

<?php echo T_('Ultimos posts') ?>
<ul>
<?php
$BlogBList = new ItemList( $blog, '', '', '', '', '', array(), '', 'DESC', '', '', '', '', '', '', '', '', '', '10', 'posts' );
while( $BlogBList->get_item() )
{
?>
<li lang="<?php the_lang() ?>">
<a href="<?php permalink_link() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><?php the_title( '', '', false ); ?></a>
</li>
<?php
}
?>
</ul>

Is there a 1.8.x update?
Thanks,
Marcio

2 Oct 29, 2006 01:45

Things are hard to find here. You really have to study those installed files.
I found something at the summary.php, adapted it and solved the problem:

require_once $inc_path.'_main.inc.php';
<ul>
<?php // Get the x last posts for the blog (x is the 11th parameter --> here is 10):
$BlogBList = & new ItemList( $blog, '', '', '', '', '', array(), '', 'DESC', '', 10, '', '', '', '', '', '', '', 'posts' );
while( $Item = $BlogBList->get_item() )
{
?>
<li lang="<?php $Item->lang() ?>">
<?php $Item->issue_date() ?>:
<?php $Item->permanent_link( '#title#' ) ?>
</li>
<?php
}
?>
<li><a href="<?php blog_list_iteminfo('blogurl', 'raw' ) ?>"><?php echo T_('More posts...') ?></a></li>
</ul>


Form is loading...