The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
clean_gpc in a php direct eval, how?
Elsewhere I posted a question on how to grab an argument i vB / php direct eval.
I also searched around in the documentation and find how to do. In the vBulletin manual http://www.vbulletin.com/docs/html/codestandards_gpc under $_GET / $_POST / $_REQUEST there is an example. My version: PHP Code:
HTML Code:
Fatal error: Call to a member function clean_gpc() on a non-object in /var....../phpeval.php(97) : eval()'d code on line 1 And I am fairly new around here............ PS If anyone in charge is reading; in the vBulletin manual there is this code; PHP Code:
|
#2
|
||||
|
||||
It sounds like your hook location is wrong and you can't do what you want there. You should always post a hook location when posting plugin code.
(Manual fixed - thanks!) |
#3
|
|||
|
|||
Quote:
What I have done: - Created a new "PHP Direct Evaluation" page content - Added the one line of code - Save - Get the error message Well as you can see, Im newbeeeeee. What I am actually trying to do is to create a PHP Direct Evaluation page that reads POST variables sent to the page. |
#4
|
|||
|
|||
use vB::$vbulletin->db-> instead of $vbulletin
And pls don'T send pm's because of something like this!:P |
#5
|
|||
|
|||
Thanks ragtek and apologies for the PM
I was getting a bit desperate as I have been searching the vB sites and the web of an on for three days and posted two questions here without finding a solution. I have an old web site that is being integrated into my vB site and all that was really the missing piece. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|