1
attock
Function of 'pagenav' and 'renderNav(x,x)' ?
  • 2006/11/18 1:01

  • attock

  • Not too shy to talk

  • Posts: 138

  • Since: 2006/8/20


Hi,

I am using xtremuserguestbook module, in which I cant navigate through users' guestbook. i.e. If a user has more than 1 page of guestboook, the link to the (2) page is messed up, and I am tryna figure it out.

The correct link should be: ...xtremuserguestbook/index.php?gbid=Number&limite=Number

The wront link atm is: ...xtremuserguestbook/index.php?gbid=Number

The part &limite=Number is missing. I was checking the Index.php file under xtremuserguestbook/, and I found the following code of information'

// Show navigation bar 
   
echo ''.$pagenav->renderNav(33).'
'
 
NewCloseTable();



Where pagenav is:
$pagenav=new XoopsPageNav($nbmessage$unbmsgbypage$limite"limite""");



Now my question is:

I know renderNav(x) is used to show how many 1.2.3.4...ect you wana show. But what is renderNav(x,x) ?

My guess is that code for 'pagenav' is messed up, and its missing the guid parameter. Can someone guide me to solve this problem, or tell me what does 'pagenav' function do?

Also, is there any tutorial for many of XOOPS functions?

I'll appreciate any help.

2
stefan88
Re: Function of 'pagenav' and 'renderNav(x,x)' ?
  • 2006/11/18 7:25

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Not shure, but maybe:

echo ''.$pagenav->renderNav().'
';


...
..

3
Mithrandir
Re: Function of 'pagenav' and 'renderNav(x,x)' ?

XoopsPageNav is not a function, but a class found in /class/pagenav.php

renderNav() is a class function that only takes one parameter, so if a module calls it with renderNav($x, $y), $y is discarded and not used.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

Login

Who's Online

240 user(s) are online (170 user(s) are browsing Support Forums)


Members: 0


Guests: 240


more...

Donat-O-Meter

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

Latest GitHub Commits