Default
Google

WebBBS

Third-Party Modifications

NNTP Poster

by Jarrod (Slonob) <mailto:jarrod@visi.com> -- March 27, 1997

I should probably wait to post this one. I just made it yesterday, and I'm not sure that it works perfectly. It does work, but the error handling is screwy. Anyone, if you have advice I am open.

In your config.cgi file:

This first one may be different for your system. Do 'which inews' for path.

$post_news = '/usr/local/lib/nn/inews';
$news_groups = "alt.cult.whack.phew";
$admin_name = "Admiral Jesus";
$news_address = " <yourname\@SPAM.foo.com>";
[the SPAM affix is for reducing your spam magnetism when you post to Usenet]

In webbbs.cgi:

First, I have made an addition to the subscription postings:
[some context added]

$realnum = $num - 1000;
if ($address_list) {
...
print MAIL "From:$faux_mail\n";
print MAIL "Subject: $boardname Post Volume $volume,#$realnum\n\n";

Then, the news routine:

if ($post_news) {
open (NEWS, "|$post_news") || &Error_File($post_news);
print NEWS "Newsgroups: $news_groups\n";
print NEWS "From: $news_address\n";
print NEWS "Subject: $boardname Post Volume $volume,#$realnum\n\n";
print NEWS "$opening1\n\n";
print NEWS "The message reads as follows:\n\n";
print NEWS ">-----------------------------------------------------------------\n";
print NEWS "$FORM{'body'}\n\n";
print NEWS "<-----------------------------------------------------------------";
print NEWS "\n\n";
print NEWS "This notice is automatically generated.\n";
print NEWS "If you wish to respond to this message,\n";
print NEWS "please post your response directly to ";
print NEWS "the $boardname at:\n";
print NEWS "$cgiurl.\n\n";
print NEWS "Regardless of the true author of any ";
print NEWS "given post to the $boardname, ";
print NEWS "$admin_name is soley responsible for the";
print NEWS " content of these posts.\n\n";
close (NEWS);
}

I have put this after the autoresponse feature, but I wonder if it should go before. Doesn't make a difference, I'll bet.

Now don't abuse this and put more than one Usenet group. Check with your webmaster before executing this one, because s/he may say no way bucko. I give this to you with a heavy conscience. The group that I post to is ideal for what my forum is. If you can't find this, consult you server administrator about making your own newsgroup. Many of the older groups will flip out if you autopost to their group. Mine is about three weeks old, so. Really, be considerate and thoughful while using this one.

I have thought about making it so every fifth post triggers the news posting of the previous five posts. This would be better to keep down the traffic on the newsgroup you are posting to. I'll let you all know.


[ WebBBS Examples and Modifications ]



Acquiring image from ProHosting Banner Exchange