PDA

View Full Version : Automated usergroup move through results by another code.


Skyrider
03-19-2015, 09:29 AM
We are using the steam plugin here on the vBulletin forums, and I have a small request.

Is there a way possible, that there's a small system that checks a specific result of a persons information and act accordingly on it?

For example:

$html = '<br/>Steam Level: '.$steam_info['player_level'];
$post['steamlevel'] .= $html;

Shows up the users Steam Level in users posts, for example:

Steam Level: 36

We'd like to move all users with steam level 7 and below to another usergroup.

And if possible;

$visiblestate_words = array(0 => "<span style='color: #137500;'>Public</span>", 1 => "<span style='color: #FF0000;'>Private</span>", 2 => "<span style='color: #FF0000;'>Friends Only</span>", 3 => "<span style='color: #137500;'>Public</span>");
$html = '<br/>Profile Status: '.$visiblestate_words[$steam_info['communityvisibilitystate']];
$post['steamvisibilitystate'] .= $html;
}

^ To ban anyone having the number "2 and 3", with a specific reason.

For the steam level usergroup movement and the above communityvisibilitystate, I would appreciate if it has an exclusion code so it won't affect all usergroups.

I appreciate the help :).

Skyrider
03-27-2015, 09:20 AM
Anyone?