PDA

View Full Version : Who's Being Ignored...


SFishy
05-21-2003, 01:29 PM
Over in hack requests I posted this message...

Okay... I'm almost POSITIVE I saw this earlier today when I was looking around for something else...

Is there a hack that give an administrator the ability to see who has been placed on someone's ignore list? I don't necessarily mean I need to see who is ignoring them, it would just be handy to know that user X is being ignored by 10 people, or to have a list of users who are ignored by anyone.

Thanks!

I continued my searching and found this... LINK to thread with script (https://vborg.vbsupport.ru/showthread.php?s=&threadid=44111) -- scroll down and you'll see g-force2k2 provides an ignore script to run (ignore.php)...

I have two questions...

What does it do exactly?
Can it be used to create the hack I requested? Would someone like to help? ;)

Thanks!

(ps. I'm going to post my questions as a reply to my hack request as well... I don't mean to "cross-post", I'm just asking for a sort-of combination of support on something existing, and a new hack!)

Velocd
05-22-2003, 04:28 AM
That hack.. pretty much does as it says (erases all the ignored members from the user).

Here is your hack:

$ivalue = $DB_site->query_first("SELECT ignorelist FROM user WHERE userid='$userid'");

if($ivalue[ignorelist] != ""){
$icount = count(explode(" ", $ivalue[ignorelist]));
} else {
$icount = 0;
}


Change $userid to whatever appropriate variable should be used.

$icount is the variable that holds your answer. ;)

SFishy
05-22-2003, 05:31 AM
Velocd,

'Scuse me if I come across at thick ;) ...

The script I linked to doesn't do that. Yes, that thread TALKS about doing it, but the script provided lists ignored users...

I actually just need to get it into a template (which I don't know how to do) and get userid translated to actual usernames.

I'm attaching a .gif here as to what the ignore.php script does...

I'll attach the ignore.php file in my below reply...

SFishy
05-22-2003, 05:32 AM
Here's the ignore.php script... The only thing I modified in it was permissions.