The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
Keep a running count. Here's a non-vBulletin example made with a loop:
PHP Code:
|
|
#3
|
||||
|
||||
|
This is what the modulus % operator is for.
PHP Code:
|
![]() |
|
|