The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
No worries, sleep was calling me too.
I am missing something here, I know I am. I just can't put my finger on it. Maybe I should move the if condition to the plugin instead. I am searching all forums dealing with vB coding for that warning and I'm still reading threads. |
#12
|
||||
|
||||
I am stumped. I mean, our code looks almost identical and yet mine works and I do not get that error. Try really shortening it just to see what happens...
HTML Code:
<if condition="in_array($foruminfo['forumid'], $pl9_quoteloc)">
|
#13
|
|||
|
|||
Interesting, if I spit out $pl9_quoteloc it returns:
Code:
Array Code:
1,2,3,31,4,5,6,7,8,9,23,10,24,11,25,12,26,13,27,14,15,28,16,29,17,30,18,19,20,21,22 |
#14
|
||||
|
||||
And $pl9_quoteloc *should* return an array and it *should* work in that condition. Did you try just using the one simple condition? If you get the error, have you tried just telling it to use it anyway and seeing what happens? (And yes, I get the same results you do - Array for the first variable and the string of forumids if I print out the other.)
|
#15
|
|||
|
|||
Yep I tried the one simple condition. I have saved it and told it to use it anyway and it still works so I don't see the problem.
I have discovered something though. If I change it to include array() like so: HTML Code:
in_array($foruminfo['forumid'], array($pl9_quoteloc)) |
#16
|
||||
|
||||
But it doesn't work like that, right?
Try printing out $foruminfo['forumid'] also and see what prints out. Also, did you ever check the data type of the option and see if it is set to Free? |
#17
|
|||
|
|||
Right, it stops working as soon as I add array()
I tried printing $foruminfo['forumid'] and it caused my if condition to stop working so I had to move that inside the if condition and it prints out the forum id properly. |
#18
|
||||
|
||||
Quote:
Quote:
Seriously, please check that. I've said it a couple of times now. |
#19
|
|||
|
|||
Oh sorry, I keep forgetting to mention that, yeah I checked it and it is set to Free.
Also I am using $foruminfo[forumid] without single quotes as well. The warning is referring to $pl9_quoteloc portion. --------------- Added [DATE]1262724383[/DATE] at [TIME]1262724383[/TIME] --------------- You know what, let me try this on my fresh vb test site. |
#20
|
||||
|
||||
When I set the option to Numeric on my site, I get the exact problem you get - it only works for the first forumid. That's why I emphasized you needing to verify that datatype.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|