Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [afra] Ignore User?

Quote Reply
Re: [afra] Ignore User? In reply to
Hi,

Creating the table is the easy bit :P You would then need a script, lets say "ignore.cgi" - with something like this in it:

Code:
#!/usr/bin/perl5

use strict;
use lib '/path/to/gformu/admin';
use GForum qw/:forum :user $DB $IN $CFG $USER $GUEST %HIDDEN $TEMPLATE_SET/;
use GForum::Template;
use GForum::Authenticate;

GForum::init('/path/to/gformu/admin');

my $action = $IN->param('action');

if (!$action) {
show_ignore_list();
} elsif ($action eq "add") {
show_add();
} elsif ($action eq "add2") {
do_add();
}

sub show_ignore_list {
# show them a list of tnheir currently ignored users =)
}

sub show_add {
# show a template, with a place for them to enter the user they want to block
}

sub do_add {
# actually add the entry to your new table you have
}

Thats just a start - its gonna be a lot more complex than that =)

Then, you would need to somehow filter out the users posts, based on their blocked list - and thats where it gets a bit more tricky =)

Depending if there is enough interest, I *MAY* turn this into a plugin for people - as it certainly would make a cool feature Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Ignore User? afra 4022 Dec 4, 2007, 1:46 PM
Thread Re: [afra] Ignore User?
brewt 3921 Dec 4, 2007, 4:31 PM
Thread Re: [brewt] Ignore User?
afra 3911 Dec 13, 2007, 9:54 AM
Thread Re: [afra] Ignore User?
Andy 3873 Dec 14, 2007, 1:57 AM
Post Re: [Andy] Ignore User?
afra 3865 Dec 14, 2007, 11:41 AM