The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 Notice: Undefined index: url in /home/username/public_html/forumtest/includes/class_core.php on line 1905 Notice: Undefined index: HTTP_REFERER in /home/username/public_html/forumtest/includes/class_core.php on line 1911 Fatal error: Call to a member function on a non-object in /home/username/public_html/forumtest/includes/functions.php on line 1545 Fatal error: Call to a member function on a non-object in /home/username/public_html/forumtest/includes/functions.php on line 4279 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: |
#2
|
|||
|
|||
![]() PHP Code:
|
#3
|
|||
|
|||
![]() 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 Fatal error: Call to a member function on a non-object in /home/username/public_html/forumtest/includes/functions.php on line 4279 |
#4
|
|||
|
|||
![]()
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:
|
#5
|
|||
|
|||
![]() Quote:
Is there some reference material for vBulletin? You'd think there would be an SDK provided from vBulletin. *sigh* Man this is frustrating. |
#6
|
|||
|
|||
![]()
Is this the whole script or is there more?
|
#7
|
|||
|
|||
![]() 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:
|
#8
|
|||
|
|||
![]()
No, you don't need to do anything with that at all, asuming your includes/config.php is correct (ie. your board working normal).
|
#9
|
|||
|
|||
![]() 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. |
#10
|
|||
|
|||
![]()
I'm having the same problem... what minor change did you make?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|