View Full Version : [fixed] buddylist/ignorelist bug when adding users
Pogo
Mon 15th Dec '03, 8:10am
The bug occured after this fix:
http://www.vbulletin.com/forum/showthread.php?t=79933
Now when I enter the first user in the buddy-/ignorelist everything is fine.
Back to the ignorelist now and adding a second user.
Again back to the ignorelist.
Where is the first user?
zfrank
Tue 23rd Dec '03, 7:09am
The bug occured after this fix:
http://www.vbulletin.com/forum/showthread.php?t=79933
Now when I enter the first user in the buddy-/ignorelist everything is fine.
Back to the ignorelist now and adding a second user.
Again back to the ignorelist.
Where is the first user?
Plz fix this bug asap and release vB2.3.4 !
Mystics
Tue 23rd Dec '03, 10:41am
Forget the solution I posted above (now deleted). If the DB entry (user.ignorelist/buddylist) already contains one userid twice (because of using vBulletin < 2.3.3), both userids got deleted with my first solution.
New one:
In member2.php, find:
while (list($key,$val)=each($listbits)) {
Add above it: $newlist = array();
Now find:
} else {
$found = 0;
while (list($key, $val) = each($splitlist)) {
if ($val == $userid['userid']) {
$found = 1;
}
}
if (!$found) {
$listids .= " $userid[userid]";
$splitlist[] = $userid['userid'];
}
}Replace it with: } else {
$newlist["$userid[userid]"] = 1;
}
Now find: $listids=trim($listids);Add above it: while (list($key,$val)=each($newlist)) {
$listids .= " $key";
}
Mike Sullivan
Wed 24th Dec '03, 5:13pm
This is fixed now. Mystics' has a valid solution, although I added an additional replacement at the top of it [$newlist = array();].
vBulletin® v3.8.0 Beta 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.