I closed / removed my previous thread regarding this, thinking I wouldn't be needing it anymore.. but I think I was wrong. I've wrote a code, and give each of them an Execution order number..
First one: 1
Second plugin: 2
Running a very identical code, with:
Code:
$dataman->set('usergroupid', xx);
included. Now for some reason, after logging in (hook: login_process on both plugins) the second plugin with execution order 2 appears to beat execution order 1. I've tested both plugins and they work as intended..
Now.. the question is, why is the second one being executed faster then the first one? I included a:
Code:
IF $vbulletin->userinfo['usergroupid'] == xx)
to prevent any other usergroups being moved other than the one I selected. Even if I increase the second plugin's execution order, it still beats the first order. Can someone please explain why it does this?