The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
yeah its me again o_O
well, now i have worked more on my code and : Fatal error: Call to a member function on a non-object in /home/whitesnake/public_html/myvbulletintestsite/includes/class_dm_user.php(1414) : eval()'d code on line 2 this is the code of my plugin: Hook : userdata_presave PHP Code:
![]() |
#2
|
||||
|
||||
![]()
That Code makes no sense at all
![]() 1) membergroupids is availale in this Hook as $this->fetch_field('membergroupids'), no need for a Query. 2) Same goes for field5: $this->fetch_field('field5') 3) You don't have to execute Queries to set fields, just use $this->set('fieldname', 'value') 4) $vbulletin isn't within the Scope, $db also Didn't I post Code that does smth. very similar for you in another Thread? |
#3
|
||||
|
||||
![]() Quote:
well, about the code you post, i wasnt sure if you code does db modifications but well in fact on that thread , i asked for help about the function "$this->fetch_field" cause im not sure how it works, but when i posted, the post prevented doubleposting but well, but well that is not going to happend here so, im not sure what you mean with the point 4, the other 3 i can understand em thanks for your time ![]() EDIT well looks like everything is going allright now that i have checked the other code and this one |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|