Indeed, I just have checked and noticed a flaw in my execution order.. so, I switched them.
The first plugin, with execution order 1:
Code:
$userdata_rank->set('usergroupid', 42);
$userdata_rank->save();
Should move any user that steam linked to usergroupID 42.
The second plugin now with execution order 2 but with a much larger code but ends up with this:
Code:
if (!in_array($vbulletin->userinfo['usergroupid'], array(6,7,5)) )
RESTOFTHECODE HERE
$dataman->set('usergroupid', 26);
$dataman->save();
^ Code above is not the full code, you get the idea what the code does. but basically means it ignores usergroupID 6,7 and 5 and moves to the user to usergroupID 26.
Oddly enough, when both plugins are active.. the end results are that I'm being moved into usergroupID 42. Which makes me wonder, why. The second plugin is designed to move the user to usergroupID 26 despite whatever usergroup he/she is in (but ignores the specified 3 usergroups).
Which makes me assume, that plugin 2 runs first, and then executes the first plugin with execution order 1. if I disable the first plugin (usergroupID 42), I'm being moved perfectly to usergroupID 26 that is executed by the second plugin.
So.. I'm expecting this:
First plugin -> Steam Link -> Move user to Usergroup 42
Second plugin -> Steam link -> Check steamrep.com -> User is flagged -> Move to usergroupID 26
Seeing the second plugin only ignores usergroupID 6,7 and 5 (which the user isn't even getting into) it should move the user IF the execution order was done properly.
Yet, as I stated.. I end up being in usergroupID 42, rather than 26.
From the way I see things, the execution order isn't working as it should.. It could be me, or the code. but as far as I'm concerned, both plugins are working perfectly if they are running separately. (eg, one is on, other is off)