PDA

View Full Version : [fixed] ignore list bug!



eva2000
Wed 22nd Aug '01, 11:58am
http://animeboards.com/t24014/s.html

if you view a mod or admins profile and add them via the ignore link on the profile page, the mod/admin get's ignore regardless of the setting the admin has in his admin panel :eek:

Chen
Thu 23rd Aug '01, 5:05am
if ($var=='ignorelist' and !$ignoremods and ($userid[usergroupid]==6 or $userid[usergroupid]==5 or $userid[moduserid]) and $bbuserinfo[usergroupid] != 6) {
$username=$val;
eval("standarderror(\"".gettemplate("error_listignoreuser")."\");");
exit;
This is taken from member2.php...
I cannot add admin/mods in other board I'm posting at, so maybe it's something at your board.
(I got this "Sorry eva2000 is a moderator/admin and you are not allowed to ignore him or her." when trying you add you here)

fury
Wed 10th Oct '01, 2:58am
He means adding the person to the ignore list through the profile page. I was able to successfully ignore eva2000 with that link but was given the error when I went to my ignore list and updated it with his username still in there

:eek:

eva2000
Wed 10th Oct '01, 3:54am
hmm still a problem i see.. i had to remove the link on the profile page from own vB for now

Chen
Wed 10th Oct '01, 4:04am
Err ok, try this.
In member2.php, use this code:

if (!$found and ($var=='ignorelist' and !$ignoremods and ($userinfo[usergroupid]==6 or $userinfo[usergroupid]==5 or $userinfo[moduserid]) and $bbuserinfo[usergroupid] != 6)) {
$bbuserinfo[$var].=" $userid";
} else {
$username=$userinfo[username];
eval("standarderror(\"".gettemplate("error_listignoreuser")."\");");
exit;
}
instead of this:

if (!$found) {
$bbuserinfo[$var].=" $userid";
}

Freddie Bingham
Sat 13th Oct '01, 12:05pm
That would sort of work except $userinfo[moduserid] isn't being set.

Find this code:
$splitlist=explode(" ",$bbuserinfo[$var]);

$found=0;

Add this above it:
if ($var=='ignorelist' and !$ignoremods and $bbuserinfo[usergroupid] != 6 and !ismoderator($userid)) {
$username=$val;
eval("standarderror(\"".gettemplate("error_listignoreuser")."\");");
exit;
}