Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Coming Attraction: "Kill Files" (Ignore and more)

Posted on 06/19/2002 4:43:21 PM PDT by John Robinson

click here to read article


Navigation: use the links below to view more comments.
first 1-2021-4041-6061-69 next last

1 posted on 06/19/2002 4:43:21 PM PDT by John Robinson
[ Post Reply | Private Reply | View Replies]

To: John Robinson
Wow I do not know how I feel about that..could be no one will want to talk to me John..I just read on another forum that FR is not allowing graphics anymore is that true?
2 posted on 06/19/2002 4:46:46 PM PDT by RnMomof7
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson
I may also have a DISSUADE action, which is similar to DENY but gives the user an option to do it anyway. It will say, in effect, something similar to "I do not like receiving bumps, this better be good."
3 posted on 06/19/2002 4:47:57 PM PDT by John Robinson
[ Post Reply | Private Reply | To 1 | View Replies]

To: RnMomof7
Not allowing graphics? Not true!
4 posted on 06/19/2002 4:48:30 PM PDT by John Robinson
[ Post Reply | Private Reply | To 2 | View Replies]

To: John Robinson
Thanks...I didn't think so

Nice of you to talk to me:>)

5 posted on 06/19/2002 4:49:56 PM PDT by RnMomof7
[ Post Reply | Private Reply | To 4 | View Replies]

To: John Robinson
*AHEM* The ignore feature will also need to IGNORE comments in-thread and Freepmail too. That will be handled similarly.
6 posted on 06/19/2002 4:51:31 PM PDT by John Robinson
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson
How totally funked up does your table design look?
7 posted on 06/19/2002 4:54:27 PM PDT by smith288
[ Post Reply | Private Reply | To 6 | View Replies]

To: John Robinson
Oh my , there was a thread just last night where a Freeper was asking how he could do something that was very similar to what you seem to be describing.

We gave him a hard time!

8 posted on 06/19/2002 5:02:26 PM PDT by Ernest_at_the_Beach
[ Post Reply | Private Reply | To 1 | View Replies]

To: Dick Vomer
ping!
9 posted on 06/19/2002 5:05:15 PM PDT by Ernest_at_the_Beach
[ Post Reply | Private Reply | To 8 | View Replies]

To: John Robinson
Does this mean that I will be able to ignore my own posts in my self-search list, so that I see only the responses, and not my own posts?
10 posted on 06/19/2002 5:08:08 PM PDT by Atlas Sneezed
[ Post Reply | Private Reply | To 1 | View Replies]

To: snopercod; Grampa Dave; Carry_Okie; okie01; d14truth; John Jorsett; daviddennis
ping!
11 posted on 06/19/2002 5:08:16 PM PDT by Ernest_at_the_Beach
[ Post Reply | Private Reply | To 9 | View Replies]

To: Beelzebubba
Does this mean that I will be able to ignore my own posts in my self-search list, so that I see only the responses, and not my own posts?

That would be excellent. If one posts an article that gets a lot of response you lose sight of pings that you would like to see!

A lot of time is wasted just trying to find replys to you that you have not responded to!

12 posted on 06/19/2002 5:13:58 PM PDT by Ernest_at_the_Beach
[ Post Reply | Private Reply | To 10 | View Replies]

To: smith288
Not bad, really.

There is a comment table, a comment_user table with the comment-to-user associations, and a killfile table.


create table killfile (
    kf_rule_id int unsigned not null auto_increment primary key,
    kf_owner_uid mediumint unsigned not null,
    kf_action enum('ignore', 'deny', 'dissuade', 'allow', 'promote') not null,
    kf_what enum('all', 'from', 'to', 'replied', 'cc', bcc') not null,
    kf_context enum('user', 'forum', 'thread', 'comment') not null,
    kf_context_id int unsigned not null,

    index owner (kf_owner_uid, kf_context, kf_context_id)
);
When a post is made, and the program is writing the comment-to-user table, it will consult the kf_rule table where kf_owner_uid = the target user, and kf_context will be, in turn, the current thread, the current forum, the current user, etc.

Mind you none of this lives as real code just yet. It's still on my scratch book for the most part.

13 posted on 06/19/2002 5:15:42 PM PDT by John Robinson
[ Post Reply | Private Reply | To 7 | View Replies]

To: John Robinson
That is perl code?
14 posted on 06/19/2002 5:18:41 PM PDT by Ernest_at_the_Beach
[ Post Reply | Private Reply | To 13 | View Replies]

To: smith288
kf_context also has an 'all' in that enum. And the value of kf_action, if found, is used to adjust the fate of a marker on the comment_user table. Regardless of what is in the killfile, a record will be written to comment_user-- that table is used for much more than self-search. The marker field will, however, be included in the self-search indexes.
15 posted on 06/19/2002 5:22:20 PM PDT by John Robinson
[ Post Reply | Private Reply | To 7 | View Replies]

To: Ernest_at_the_Beach
SQL. MySQL to be exact.
16 posted on 06/19/2002 5:22:40 PM PDT by John Robinson
[ Post Reply | Private Reply | To 14 | View Replies]

To: Ernest_at_the_Beach
Perl code looks more like:


sub get_reply {
    my $reply = {};

    $reply->{text} = $Focus::r->cgi->param('reply');
    if ($reply->{text} =~ m#<\w+(?:.|\n)*>#i) {  # MAGIC
        $reply->{text} = html_filter($reply->{text});
    }
    else {
        $reply->{text} = html_format($reply->{text});
    }

    my $l = new Focus::UserLookup;

    $l->lookup($Focus::r->cgi->param('name'));

    $reply->{rcpt_string} = $l->lookup_string;
    $reply->{rcpt_list}   = $l->lookup_list;

    if ($reply->{text} !~ /\S/) {
        push @{$reply->{errors}}, "Enter a reply.";
    }

    push @{$reply->{errors}}, map { $_->{text} } $l->errors if $l->errors;

    $reply;
}
Scared ya, didn't I?
17 posted on 06/19/2002 5:28:21 PM PDT by John Robinson
[ Post Reply | Private Reply | To 14 | View Replies]

To: John Robinson
Oops. kf_rule table == killfile in the example.
18 posted on 06/19/2002 5:31:23 PM PDT by John Robinson
[ Post Reply | Private Reply | To 13 | View Replies]

To: John Robinson
Yes, you done good there.

Doesn't look like COBOL or FORTRAN!

19 posted on 06/19/2002 5:32:29 PM PDT by Ernest_at_the_Beach
[ Post Reply | Private Reply | To 17 | View Replies]

To: John Robinson
Im the kind of guy who will just make it with access and tinker until it is the way i want it. Is that your type of scratch pad or is it physical paper?
20 posted on 06/19/2002 5:35:38 PM PDT by smith288
[ Post Reply | Private Reply | To 13 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-4041-6061-69 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson