The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
help with an array in a template
hi there,
I am having trouble with the outputting of an array Basically I am trying to show the contents of a directory on a custom page. I have created the template and also registered the variable but it will only show me the first row and not the rest. PHP Code:
Thank you so much for any help you can give me |
#2
|
||||
|
||||
Try this:
PHP Code:
|
Благодарность от: | ||
Mickie D |
#3
|
|||
|
|||
That worked great.
Thank you. I mistyped something the first time. Cheers Sat |
#4
|
|||
|
|||
If you were seeing one before, adding that '.' before the = shouldn't have made it so you don't see anything. Are you sure you didn't make any other changes? If you just delete the added '.' does the one show up again?
|
#5
|
|||
|
|||
Hi KH99 it was my mistake i miss types the template at the bottom! (i edited that post 2 minutes before you posted)
vB_Template:reRegister('mytemplate',array('filer ows' => $filerows)); ALSO just for my sanity it is the DOT EQUALS that explodes it into recursive rows? And why did you empty the filesrow'' on the third row. Thanks very much for your help |
#6
|
||||
|
||||
Quote:
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|