1
funzool
newbb - page navigation on top
  • 2004/3/23 8:18

  • funzool

  • Just popping in

  • Posts: 3

  • Since: 2004/3/22


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.



2
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

<{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
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.



3
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?




TopTop



Login

Who's Online

154 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits