![]() |
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 |
PHP Code:
|
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? |
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. |
No. Already looked at that... Still confused on how I would do this...
Would $results be my SQL query? |
Quote:
tnx k |
Ok, I tried it and I get this error:
Code:
Warning: Division by zero in /includes/functions.php on line 1809 PHP Code:
Thanks. |
What are the values of $page, $pp, $sqlr?
|
$page = 1,
$pp = $vbulletin->options['toplist_sites_per_page'], $sqlr = $db->query_read($sql); |
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?
|
All times are GMT. The time now is 10:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|