Recent Topics

[1.10.x] Fatal error in new skin

Started by on Mar 30, 2008 – Contents updated: Mar 30, 2008

Mar 30, 2008 19:08    

My b2evolution Version: 1.10.x

Hi

Help for a newbie please!

Just created a new skin by exactly following the procedure in the documentation under 'Create a skin based on an existing layout'.

When I apply the skin and view the blog, the layout starts to load fine, but then I get a fatal error when the content code is encountered:

Call to undefined function: posts_nav_link()

Ideas anyone?

Thx

Mar 31, 2008 20:22

* In 1.x, links to other pages in the list of posts posts were displayed by <?php posts_nav_link() ?> . In 2.0, this again will fail miserably. use this instead:

<?php
if( isset($MainList) )
{ // Links to list pages:
$MainList->page_links( '<p class="center">'.T_('Pages:').' <strong>', '</strong></p>' );
}
?>

Mar 31, 2008 22:21

Thx - all sorted :)

paulo wrote:

* In 1.x, links to other pages in the list of posts posts were displayed by <?php posts_nav_link() ?> . In 2.0, this again will fail miserably. use this instead:

<?php
if( isset($MainList) )
{ // Links to list pages:
$MainList->page_links( '<p class="center">'.T_('Pages:').' <strong>', '</strong></p>' );
}
?>


Form is loading...

Online manual generator – This forum is powered by b2evolution CMS, a complete engine for your website.