The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to use construct_page_nav?
Hi,
I am making a Toplist hack for vBulletin 3.5, and need to know how to use construct_page_nav on it. Does anyone know if there are any tutorials around that show how? Thanks, Derek |
#2
|
||||
|
||||
PHP Code:
|
#3
|
|||
|
|||
Uhm ..
Curious myself here, tnx for the info k, but how do I then now use this on my source code? Am I thinking too hard here? |
#4
|
||||
|
||||
Hmm .. what exactly do you want to know Floris?
You got your current pagenumber ($page = $vbulletin->input ...). you got the number of items you want to show per page (be it a hardcoded setting, from user input, or a system setting), you somehow also gut the total amout of items you want to display. Pass all that to construct_page_nav() together with the script URL and you're done. |
#5
|
|||
|
|||
No. Already looked at that... Still confused on how I would do this...
Would $results be my SQL query? |
#6
|
|||
|
|||
Quote:
tnx k |
#7
|
|||
|
|||
Ok, I tried it and I get this error:
Code:
Warning: Division by zero in /includes/functions.php on line 1809 PHP Code:
Thanks. |
#8
|
||||
|
||||
What are the values of $page, $pp, $sqlr?
|
#9
|
|||
|
|||
$page = 1,
$pp = $vbulletin->options['toplist_sites_per_page'], $sqlr = $db->query_read($sql); |
#10
|
||||
|
||||
Does the comment say you should pass a mySQL result resource as 3rd parameter or does it say that you should pass the total number of results as third parameter?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|