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-20, 21-40, 41-60, 61-69 next last
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
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."
To: RnMomof7
Not allowing graphics? Not true!
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
To: John Robinson
*AHEM* The ignore feature will also need to IGNORE comments in-thread and Freepmail too. That will be handled similarly.
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
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!
To: Dick Vomer
ping!
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?
To: snopercod; Grampa Dave; Carry_Okie; okie01; d14truth; John Jorsett; daviddennis
ping!
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!
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.
To: John Robinson
That is perl code?
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.
To: Ernest_at_the_Beach
SQL. MySQL to be exact.
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?
To: John Robinson
Oops. kf_rule table == killfile in the example.
To: John Robinson
Yes, you done good there.
Doesn't look like COBOL or FORTRAN!
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
Navigation: use the links below to view more comments.
first 1-20, 21-40, 41-60, 61-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.
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson