The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
fatal error help
sory for bothering you all again but
this is the error i get Fatal error: Call to a member function query_read() on a non-objec and this is the code i used i am adding this as a plugin under the postbit_display_complete hook PHP Code:
|
#2
|
||||
|
||||
You'd be better off doing a join to the $posts, I would think - one less query per post. But anyway, I think you just need to make $vbulletin global first:
PHP Code:
|
#3
|
|||
|
|||
i thought $post only worked for the custom fields like age, post, location ect,,
it would of been much easier if i can use $post for the table i set up in the database that got rid of the query_read error but fetch array is still a problem Fatal error: Call to a member function fetch_array() on a non-object in C:\xampp\htdocs\forums\includes\class_postbit.php( 294) : eval()'d code on line 6 |
#4
|
||||
|
||||
Try hooking into the query for the $post. That is what I'm talking about.
As for your other error, I have no idea why you get it since you never posted the full code to your plugin. |
#5
|
|||
|
|||
im leaning towards hooking into the $post query but heres the code i used
PHP Code:
stupid me.. got it to work with $vbulletin->db->fetch_array thanks for your help |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|