![]() |
If you use a new API like ARR, make it your own API and don't extend it.
You could extend API like Page, Node, User... but why your own?! PHP Code:
HTML Code:
{vb:data userIds, testimportarray:arr, getArray} |
Quote:
--------------- Added [DATE]1544164891[/DATE] at [TIME]1544164891[/TIME] --------------- One problem left. Why I cannot use that array in a condition? Code:
{vb:data arrayofuserids, arr, getArray} HTML Code:
var_dump: $arrayofuserids But... Code:
{vb:data arrayofuserids, arr, getArray} Solved. My solution: PHP Code:
Code:
{vb:data arrayofuserids, arr, getArray} |
Von hinten durch die Brust :D
|
Quote:
|
Dein Array-Inhalt sind strings. Du ben?tigst aber int.
PHP Code:
HTML Code:
var_dump: $array HTML Code:
<vb:if condition="in_array($user['userid'], $array)"> |
Quote:
|
I think the problem with his first try is - his strings are two chars (with \n ?)
He wrotes PHP Code:
|
Quote:
|
All times are GMT. The time now is 08:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|