The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
need help with conditionals in a template
I need to display a list of warnings captured in an array.. how would I show them in a template? I'm thinking I would need a warnings template. I'm kinda stuck on the sizeof part though.
Code:
if ($isAdmin && is_array($warnings) && sizeof($warnings) > 0) { echo '<div id="warnings">'; foreach ($warnings as $warning) { echo $warning; } echo '</div>'; } HTML Code:
<div id="warnings">$warning</div> |
#2
|
||||
|
||||
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|