The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
pagination
I've got a page set to display $max_results per page then flip through pages. It works great. I'm having trouble developing a link on the page that turns off the paging. Can anyone help?
Thanks |
#2
|
||||
|
||||
I'm having a bit of trouble understanding what you want to do. Could you please explain?
|
#3
|
|||
|
|||
Hi rake,
I've got a form in a php page. And the php is set to build page numbers based on rows of the database. So... 10 rows per page then the script builds page 2. Then it places links for previous, next, and the page number at the bottom of the page. Just a basic php pagination. What I wnat to do is add a link on this page that allows a user to see all results on a single page if they want, essentially turning off the pagination. I'm not sure how to write a link to ignore the $max_results/page limitation. Thanks |
#4
|
||||
|
||||
you could just add another variable..
if($all = true) { $startat = 0; $max_results = 999999; // where sql query is something like SELECT * FROM table LIMIT $startat,$max_results } then you just unset the variables for previous/next page, et cetera. |
#5
|
|||
|
|||
Thnaks rake. I hadn't considered a second variable.
I appreciate the assistance. Will try. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|