James Birkett
08-21-2009, 04:20 PM
I'm trying to create a nice little plug-in to annoy my forum users (I'm so kind, right?).
Anyway: I am having a little trouble with the code.
if(($user['userid'] != 1) || ($user['userid'] != 2)) {
$user['musername'] = $vbulletin->usergroupcache["$displaygroupid"]['opentag'] . str_shuffle($username) .
$vbulletin->usergroupcache["$displaygroupid"]['closetag'];
}
Basically I want to omit user ID 1 AND 2 from the str_shuffle. So basically ID 3 and onwards gets a shuffled username, whereas IDs 1 and 2 don't.
I am going wrong here:
if(($user['userid'] != 1) || ($user['userid'] != 2)) I just can't get the syntax right to omit both.
Anyway: I am having a little trouble with the code.
if(($user['userid'] != 1) || ($user['userid'] != 2)) {
$user['musername'] = $vbulletin->usergroupcache["$displaygroupid"]['opentag'] . str_shuffle($username) .
$vbulletin->usergroupcache["$displaygroupid"]['closetag'];
}
Basically I want to omit user ID 1 AND 2 from the str_shuffle. So basically ID 3 and onwards gets a shuffled username, whereas IDs 1 and 2 don't.
I am going wrong here:
if(($user['userid'] != 1) || ($user['userid'] != 2)) I just can't get the syntax right to omit both.