Quote:
Originally Posted by KirbyDE
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?
|
thanks for your reply
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