The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have the following 'print_r' from a variable:
Code:
Array
(
[file] => CML-1-1001.CNC3Replay
[size] => 246 KB
[name] => Automatch Battle: LowLayer R0B0TIK
[desc] => Keine Spielbeschreibung
[mapname] => Small Town USA
[ini] => Array
(
[mapfilename] => data/maps/official/map_mp_2_black5
[gametype] => Online, Ranked, 1 vs. 1
[gamespeed] => 100%
[startcash] => 10000$
[voip] => Ja
[bc] => Ja
[crates] => Nein
[players] => Array
(
[1] => Array
(
[playertype] => Spieler
[playername] => LowLayer
[color] => Orange
[faction] => Zuf?llig
[mappos] => Zuf?llig
[team] => 1
[clan] =>
)
[2] => Array
(
[playertype] => Spieler
[playername] => R0B0TIK
[color] => Rot
[faction] => GDI
[mappos] => Zuf?llig
[team] => 2
[clan] =>
)
)
[matchtype] => Automatch
)
[version] => 1.9
)
Now, in the template, I'd like to read the array but it won't work. What's already working is Code:
<if condition="$attachment['replay']">...</if> Code:
<if condition="$attachment['replay']">$attachment[replay][name]</if> Code:
<if condition="$attachment['replay']">$replay[name]</if> |
|
#2
|
|||
|
|||
|
$attachment[replay][name] have to be between brackets: {$attachment[replay][name]}
|
|
#3
|
|||
|
|||
|
thx
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|