The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
i have a vb option with a list of forum ids seperated by commas but when i use it in the php file $vbulletin->options[fids] in a query i get thread.forumid = (Array) error
how do i get around this. thx in advance |
#2
|
||||
|
||||
![]()
Please post the code you are using.
|
#3
|
|||
|
|||
![]()
k
PHP Code:
|
#4
|
||||
|
||||
![]() PHP Code:
|
#5
|
|||
|
|||
![]()
thx m8 worked a treat what about this one this giving errors
PHP Code:
|
#6
|
|||
|
|||
![]()
If that option contains a list of comma-seperated values, then you are probably looking for explode() to convert it to an array. Also the 3rd parameter is not needed.
|
#7
|
|||
|
|||
![]() PHP Code:
Fatal error: Cannot pass parameter 1 by reference in /home/freec/public_html/findex.php on line 100 |
#8
|
|||
|
|||
![]()
Why have you all of a sudden decided to put down quotes around your $vbulletin->options variable?
|
#9
|
|||
|
|||
![]()
because i get an (Array) error otherwise
|
#10
|
|||
|
|||
![]()
You must pass the forum id's as an array to the fetch_search_forumids() function. Make sure you read the code behind the function when you start using them, it will easily prevent you from getting these errors and also make understanding vBulletin a lot better.
If the fetch_search_forumids() is a string you need to first explode() the string into an array then pass this array to the function N.B. You won't be able to do it inline as you must the variable by reference: PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|