The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Alright, so I've got a bit of a problem here. When I coded my existing CMS a few years ago I modeled some basics after vBulletin, as I was familiar with its code from modding it. So functions such as iif(), for example, are defined globally in my CMS.
With vB's new API feature, I want to recode the section of my code that creates a new vB thread for each news item added to the CMS so that it uses the API and everything is handled properly by vB. However, when I include the files necessary to do this, PHP complains that iif() is already defined. Anyone have any ideas? |
#2
|
||||
|
||||
![]()
Try require_once() instead of include().
|
#3
|
||||
|
||||
![]()
You cannot define a function twice, so you will either have to remove one of the definitions or rename one.
JFYI, I don't think any vb code actually uses IIF anymore, even though they still define it. |
#4
|
|||
|
|||
![]()
Is there a way to sort of create a new PHP environment within the existing executing environment?
|
#5
|
||||
|
||||
![]()
Why make an easy job hard ? just rename/remove either your function, or the vb function.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|