I'm pretty sure that the execution order is screwed up.
I have this as execution order 2,3 and even tried 4:
Code:
$userdata_rank->set('usergroupid', 42);
$userdata_rank->save();
at a specific hook when forum members link their steam account. Simple enough, move user to UsergroupID 42.
This works great, awesome!
Now I've added another plugin to check if the user has been flagged on SteamREP.com as a scammer.
I've disabled the usergroupID 42 move plugin to see after I steam linked my profile on the forums I would be banned.. and, it works!
Now, if I enable both of them (move usergroupdID execution order 2, 3 or 4) with the second steamrep ban plugin execution order 1. I get moved to usergroupID 42, rather than the specific steamrep banned usergroup of which is 26.
So, which made me wonder.. what if execution order 2, 3 or 4 beats 1? So I used the following code at the plugin with execution 2, 3 or 4 (tried all 3):
Code:
if (!in_array($vbulletin->userinfo['usergroupid'], array(26)) )
{
$userdata_rank->set('usergroupid', 42);
$userdata_rank->save();
}
26 is ignored, and tada..!! everything suddenly worked.
Now, once again.. why isn't execution order doing its job? Both of these plugins are using the exact same hook. Is it broken? Has anyone tested it? Does execution order depends on the amount of the code? If one is smaller than the other, second one is being executed faster? What's the deal?