![]() |
Accessing vBulletin Classes - global.php
Ok. According to the few posts I've read this should be easy. Fo whatever reason I can't get this to work for me.
Let's say I have a directory under the forum called vBTest. /forumtest/vBtest In that directory I have a file called test.php. Here's the basic code for that file: PHP Code:
Code:
Notice: Undefined index: HTTP_REFERER in /home/username/public_html/forumtest/includes/class_core.php on line 1500 I searched the forums, but I couldn't really find anything. I'm just piecing various bits of info to try this out. i'm good with PHP/mySQL, but I've never done a vB hack/plugin/extension. Hopefully someone can help me out. :nervous: |
PHP Code:
|
Quote:
Code:
Fatal error: Call to a member function on a non-object in /home/username/public_html/forumtest/includes/functions.php on line 988 |
If you've just copied and pasted an example of your webspace path relative to the server, then the 'username' bit is probably supposed to be changed to your own webspace username:
PHP Code:
|
Quote:
Is there some reference material for vBulletin? You'd think there would be an SDK provided from vBulletin. *sigh* Man this is frustrating. |
Is this the whole script or is there more?
|
Quote:
The php file resides in: Code:
/home/username/public_html/forumtest/vBTest/test.php Code:
/home/username/public_html/forumtest/ Here's line 988 of functions.php PHP Code:
PHP Code:
|
No, you don't need to do anything with that at all, asuming your includes/config.php is correct (ie. your board working normal).
|
Quote:
I checked for suspect files and everything checked OK. Not real sure what I did, but its working now. I downloaded a fresh copy of 3.5 and FTP'd the files. Ran my test file. Didn't work. Looked up some others extensions to see what they did. Made a minor change and it worked. Undid the change and it still works... :lol: Oh well. Thanks for the help. |
I'm having the same problem... what minor change did you make?
|
All times are GMT. The time now is 11:48 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:
|