• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Link to Xenforo Xen Tags?

sajal

Active member
#3
In fact, I was just looking for the syntax of following PHP code.

<?php
$i=0;

// some in-built foreach in Xenforo template
foreach ($nodeList as $node) {
$i++;

if ($i==5) {
// do something
}
}

So, just incrementing a variable and do something if it's reached to 5.

Without documentation, I was having a bit of hard and frustrating time :D.