PDA

View Full Version : Help! Ignore posts from a Guest


scottct1
07-19-2002, 03:12 PM
We have had a problem user who a lot of users put on ignore because of his antics. Today one of the staff members got fed up with this member and deleted his account.

Of course now that the person is no longer a member all his posts are being shown as a guest (still with his username) and all the folks who put this user on ignore can now see his messages even though he is on thier ignore list.

We have tried readding this users account but still all his posts show as being from a guest account.

Is there anyways to block or reassociate all his messages back to his account?

Thanks!

Logician
07-19-2002, 09:15 PM
Create a new user account for him inside Admin CP with his old username. Then edit this account's "userid" in "user" table as his old userid (you can learn his old user id by checking people's ignore lists, it should be recorded there). Then run this query:

UPDATE post SET userid=XXX WHERE username='YYY'

XXX is his userid
YYY is his username (be careful about caps!)

That will do the trick..

scottct1
07-20-2002, 01:40 AM
I did that and it still dont work its still saying guest for his posts, even though if I look in POST all this users messages are set to his old user number and his username is also set to the same user number.

Any other ideas?

Neo
07-20-2002, 02:12 AM
you could always delete all his old posts since he isnt there anymore.

Logician
07-20-2002, 07:27 AM
I've just checked if this works or not in my local test board and it works here, please double check if you applied the steps correctly..

QiQme
11-18-2003, 05:15 PM
Search for code below in functions.php (lines 274 through 278)

if (!$ignore[$post[userid]]) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
}

And change that to :

if (($ignore[$post[userid]] and $post[userid] != 0)) {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}

Steve Machol
11-18-2003, 05:19 PM
There was really no need to reply to a thread that was over a year old. ;)

QiQme
11-20-2003, 10:18 AM
sorry :)