![]() |
Attempting Create Thread outside of vB using Data Manager, error with bootstrap
Greetings,
I have a script that's trying to create a new thread from a page outside vBulletin. The error I'm getting is from global.php on line 20 when its storing $specialtemplates in bootstrap: [Notice] Undefined variable: specialtemplates Code:
Source PHP Code:
|
and what's the error?
|
Whoops....
[Notice] Undefined variable: specialtemplates |
You can get rid of those by defining the variable:
PHP Code:
before including global.php. (It looks like you'll get the same message for $actiontemplates and $globaltemplates, and maybe some others). Those variables control which templates and datastore values are cached. You can look at som of the vb scripts to see how they're used. (e.g. showthread.php). |
Thanks :D That worked!
Now having an issue with the code no seeming to execute, at least it isn't making a thread, nothing in the database, no errors appear via the page or in the error_log. Unsure whats going on at this point. I just don't think my function is getting called. I think. |
Hopefully this helps you out a bit ;)
This is from one of my modifications (Staff Application) where it creates the threads PHP Code:
|
All times are GMT. The time now is 04:05 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|