1
funzool
page navigation on top
  • 2004/3/22 6:36

  • funzool

  • Just popping in

  • Posts: 3

  • Since: 2004/3/22


hi there,

i'm just wanna know how to put page navigation for viewforum page (newbb) on both, top and botton of the forum? (currently it is situated at the bottom only)

which file i should edit?

2
Herko
Re: page navigation on top
  • 2004/3/22 6:44

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


I think your best bet is to look in the system admin -> templates -> forum templates, probably the index and viewforum templates. Look for the code generating the page nav, and copy/paste that to the place you also want to include it. You have to know HTML and Smarty tho to understand this well...

Herko

3
funzool
Re: page navigation on top
  • 2004/3/23 6:01

  • funzool

  • Just popping in

  • Posts: 3

  • Since: 2004/3/22


newbb_viewtopic_flat.html

le="color: #000000"><?php <{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'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
le="color: #000000"><?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.