Quote:
Originally Posted by pein87
Do I add the eval code in the while loop in the page instead of hard coding the design in the file?
|
Yeah, something like:
Code:
while ($row = $db->fetch_array($rows))
{
// use $row to set up vars used by "bit" template, if necessary, then...
eval('$bits .= "' . fetch_template('bit') . '";');
}
// Now use $bits in a "top-level" template
For an example, look at the "threadbit" template and at the code in forumdisplay.php (search for "fetch_template('threadbit')" ).