1
hi there
newbb_viewtopic_flat.html <{foreach item=topic_post from=$topic_posts}> <{include file="db:newbb_thread.html" topic_post=$topic_post}> <{/foreach}> <tr class="foot" align="left"> <td colspan="2" align="center"><{$forum_page_nav}> td> tr>
i want to make page navigation on the top of the table (instead of default at bottom) in viewtopic. i've edited the above file, and pasted the above code into the top of the table, but it didn't work. actually, i'm not familiar with smarty template.
viewtopic.php if ( $total_posts > $forumdata['posts_per_page'] ) { include XOOPS_ROOT_PATH.'/class/pagenav.php'; $nav = new XoopsPageNav($total_posts, $forumdata['posts_per_page'], $start,"start",'topic_id='.$topic_id.'&forum='.$forum.'&viewmode='.$viewmode.'&order='.$order); $xoopsTpl->assign('forum_page_nav', $nav->renderNav(4)); } else { $xoopsTpl->assign('forum_page_nav', ''); }
do they also involving the above code to make the page nav works? help me please. thanx you.