The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
There's many ways of doing something like this. Here are two.
Code:
$counter = 0; foreach ($contactlist as $contact) { ++$counter; // output an image if (!$counter % 4) { // start a new row. } } Code:
$contactlistrows = array_chunk($contactlist, 4); foreach ($contactlistrows as $row) { // start row foreach ($row as $cell) { // print cell } // finish row } |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|