Log in

View Full Version : Run Plugins in own context


zivester
05-20-2009, 02:12 PM
I have a plugin that I wish to use that has functions declared that overlap with some vbulletin functions. Is it possible to run my plugins within their own context so that i dont error out with re-declare errors or must I rename all my functions?

In doing this, I would still like my plugin to be able to access things like $vbulletin->userinfo.

Cryo
05-20-2009, 03:03 PM
If you're including the global file to access the vB variables the easiest solution is to rewrite your own functions. This should absolutely be done if you're making a plugin.