![]() |
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:
|
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!) |
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. |
use vB::$vbulletin->db-> instead of $vbulletin ;)
And pls don'T send pm's because of something like this!:P |
Thanks ragtek and apologies for the PM :o
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. |
All times are GMT. The time now is 10:00 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:
|