The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need Your Help Java And Fieldx
Hi All I just made simple Javascript to get Data from api. site for gaming my problem is if call the function i just get result @1st post and the reste No resulte and if i try to get player name from field5 i get blank can you help me plz to fixe this problem here my change
postbit_legacy i changet from PHP Code:
PHP Code:
Quote:
PHP Code:
Max |
#2
|
|||
|
|||
It only does the first occurrence because the JavaScript only gets executed once. You have to make some sort of array or find each occurrence of field5's existence for each post in the JavaScript.
|
#3
|
|||
|
|||
Quote:
any simple exemple haw to get field5 from each post plz i was thinking to make same thing like that PHP Code:
if i added like that Not work Code:
<script type="text/javascript"> Players_Name = {vb:raw post.field5};</script> Code:
<script type="text/javascript"> Players_Name = "testname";</script> Thx again |
#4
|
|||
|
|||
It's easier if you link us (or PM me) to the forum where you're trying this out so I can play around with it. Regarding the second thing, you're probably forgetting the quotes around it:
Code:
<script type="text/javascript">var Players_Name = "{vb:raw post.field5}";</script> |
#5
|
|||
|
|||
Quote:
the problem if i print Players_Name = field5 in the javascript all i time i get just last post name and the result @1st post with false name of last post |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|