![]() |
Using vB's 'pager' or 'paginator' function
Does anyone know how to pass a query to vb's pager function (not sure exactly what you call the page 1 2 3 4 Last >> links at the bottom of forumdisplay)? I am integrating some personal pages with vb and would like very much just to use their script/function to break up my long pages over a few pages.
thanks eric |
This is what I am using on my vbGlossary modification:
PHP Code:
You will next have to find out the total number of results you have ( which is done in the glossary_count query above ). $pagenav is then inserted into your template. In your main query to get the results, you will need to add this: PHP Code:
Hope that helps :) |
Great! Thanks.
I was actually just in the process of explaining the problem I was having when i realized that I had forgotten to create the variable $page from the $_GET['page'] value. in case anyone needs to know, I just put this at the top of the page and it worked perfectly: PHP Code:
Thanks so much! :D |
All times are GMT. The time now is 12:41 AM. |
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:
|