![]() |
Splitting Data Results into Rows
I am currently using vBulletin's pagination and have it working correctly, however, my current results are displaying in a single row and then links to the next page are shown. I'd like to expand this.
Given I am using pagination and would like to display 4 results per row and once it hits 4 results, split the data into a new row such as below. I have 9 results. x x x x x x x x x How would I go about splitting this off as the results are called? |
Keep a running count. Here's a non-vBulletin example made with a loop:
PHP Code:
|
This is what the modulus % operator is for.
PHP Code:
|
All times are GMT. The time now is 03:48 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:
|