Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by fastforward fastforward is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-11-2001 Last Update: Never Installs: 25
 
No support by the author.

Description:

This hack provides a gateway to selected usenet groups. The entire usenet group is mirrored locally. Posts submitted locally to mirrored newsgroups will also be sent out to usenet. A single perl script is executed via cron that collects news and posts any outgoing articles. Incoming messages are parsed against customizable spam filters and threaded correctly before being placed in your forums. By default, no personal information is sent to usenet other than the posters username and whatever you have globally configured as a footer and organization. The option does exist for a user to include a custom email to use for usenet posts. After initial installation (which involves creating some new tables, adding a few columns to existing vB tables, and entering the database connection information to the news script) configuration is completed via the vB control panel.
  • See it in action at dBforums.com (usenet forums are at the bottom)
  • Download latest version for vB 2.2.4

Current version is 20020323 for vB2.xx

Current feature list:
  • correct threading of outgoing posts on usenet
  • full control panel integration
  • email notification to usenet replies
  • emoticon translation into vb icons
  • vb code removal or conversion prior to posting to usenet
  • hyperlinked urls in messages
  • color coded, italicized & indented quotes
  • vB style quote to usenet style quote conversions for outgoing posts
  • logging of outgoing posts
  • support for multiple news servers
  • support for seperate footers per forum in outgoing posts
  • multi-language (selectable) handling of quoted MIME printable headers (for all those funny foreign characters)
  • handling of mailing archive groups
  • flexible spam control and replacement variable options for incoming and outgoing messages
  • configurable auto-expire option
  • option for users to show email address in their outgoing usenet posts (may be different than normal one in profile
  • option to enable/disable user signatures on outgoing posts.
  • fully compatible with vB moderation functions
Still to be done:
  • canceling of messages after they have been sent to usenet via control message in accordance with RFC1036.
  • binary attachment support
  • email to PM gateway
Screeshots:
Main Options
More Options
Configuration of Newsgroups
Add New Newsgroups
Spam Control
What an imported usenet article looks like in vB

The latest version of this hack will always be in this first post of the thread.

Before asking questions in this thread, please read all the posts in this thread. If your question goes unanswered, it will probably be because the question has already been answered countless times in this thread.

This hack was created for use on my forums and will only be supported as time permits.


Links to required Perl Modules

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 07-29-2001, 04:47 AM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Release 20010729 fixes two problems with newnews.pl.
  • Fixed SQL error when post is made with signature set to not be shown.
  • Fixed posting time for local posts made in usenet forum. The nntpdateline was being shown as 1969.
To upgrade, you just need to replace your existing newnews.pl with the one in this package.


The latest version of this hack will always be in this first post of the thread.
Reply With Quote
  #73  
Old 07-29-2001, 11:07 AM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installing this on an ActivePerl build for Windows 2000.

So far, I've managed to get further installing the modules. ActivePerl uses PPM modules. To install, type "PPM" into a command box, then type "install [package name]".

Which is where I've managed pretty well, until the last three. Package names differ slightly, but this is what I've installed so far, with their CPAN equivalent names...


cpan> install News::NNTPClient
News-NNTPClient

cpan> install Net::SMTP
NetServer-SMTP

cpan> install DBD::mysql::Install
DBD-Mysql

cpan> install Text::Autoformat
Text-Autoformat

cpan> install Date::Parse
Date-Manip

cpan> install MIME::Tools
MIME-tools

cpan> install URI::Find
URI-Find

cpan> install MIME::WordDecoder
?

cpan> install HTML::Entities
?

cpan> install Mail::Address
?

...and as you can see, I'm stuck with the last three. I'm still persevering, and I hope this is useful to some who are trying to install it on my kind of setup (ActivePerl, Apache, Win2000).


Until then, I've found a script which offers both read and write functionality just through PHP - check out http://forums.mediauk.com/usenet/ for a demonstration and a link to the source. However, it doesn't use mySQL or indeed any database structure (probably quite easy to patch for a programmer who knows what they're doing, mind.)

It would make more sense, to this user at least, to have a fully native PHP solution rather than having to use Perl: since, as I understand it, all the necessary code's already in PHP.
Reply With Quote
  #74  
Old 07-29-2001, 01:06 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am currently using this version 20010528,

What do I need to do to upgrade just upload the newnews.pl or more?
Reply With Quote
  #75  
Old 07-29-2001, 04:00 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by webhost
I am currently using this version 20010528,

What do I need to do to upgrade just upload the newnews.pl or more?
There's other changes since that version. There's also aditional modules that are needed. The best bet is to download the interim packages upgrade in order.
usenet_gateway_v20010714__201.tar.gz
usenet_gateway_v20010721__201.tar.gz
Then finally, do the latest upgrade from this thread.
Reply With Quote
  #76  
Old 07-29-2001, 04:47 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by James Cridland
cpan> install MIME::WordDecoder
?
cpan> install HTML::Entities
?
cpan> install Mail::Address
?

...and as you can see, I'm stuck with the last three. I'm still persevering, and I hope this is useful to some who are trying to install it on my kind of setup (ActivePerl, Apache, Win2000).
Activestate provide ports for all of these
WordDecoder is part of the MIME-Tools package.
HTML::Entities is part of the HTML-Parser package
Mail::Address is part of the MailTools package

I recently changed some of the modules that were being used to ensure that there were ActiveState modules available.

On win32 systems, you will have to comment out the bit that checks for a previous running version near the top of newnews.pl.
Quote:
It would make more sense, to this user at least, to have a fully native PHP solution rather than having to use Perl: since, as I understand it, all the necessary code's already in PHP.
There are no native NNTP functions built into php. There is IMAP support (assuming you compiled it with the appropriate options), but that doesn't provide you with full newsreader capabilities. That aside, the reading of the news is actually the easy bit. The main guts of the script deals with news synchonisation & parsing and database access and vB integration. There is no doubt you could write it in PHP, but you wouldn't have the Perl modules to help you. You would also have to install the binary version of php to allow periodic execution of the script.
Reply With Quote
  #77  
Old 07-29-2001, 06:32 PM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm nearly there!
I've made some additions to the installation for other W2K/ActivePerl users, which (once everything works) I'll post here.

My guess at "Date-Manip" in PPM was the wrong package to install. Turns out the right one is "TimeDate", and not Date-Manip.
Reply With Quote
  #78  
Old 07-29-2001, 07:18 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by James Cridland
I'm nearly there!
I've made some additions to the installation for other W2K/ActivePerl users, which (once everything works) I'll post here.

My guess at "Date-Manip" in PPM was the wrong package to install. Turns out the right one is "TimeDate", and not Date-Manip.
Glad you're getting there. If you don't mind I'll include your ActiveState instructions with the package once you've got it all going. I'll also see if there's any other way of checking for an existing instance without using grep that will work on both Unix and Win32. In the meantime, you'll just have to comment it out.
Reply With Quote
  #79  
Old 07-29-2001, 08:28 PM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's the additional stuff, which you can include in any future releases. The numbers at the beginning are the original installation notes. I hope it's useful.

Initial thoughts are, certainly when using news.btinternet.com (my local ISP), that newnews.pl is very slow in grabbing new messages - typically up to 90 seconds per message. For this reason, I'm currently setting it to run once a day. Is this about right?

It strikes me that running a local news server would speed this process up; is there a suitable freeware news server available somewhere?

This is a brilliant addition; now in use (though not extensively) at http://forums.mediauk.com/


Quote:
1. [Installing the modules]
WIN32/ActivePerl: To install these, type "PPM" into a command box. Then, type:
install News-NNTPClient
install NetServer-SMTP
install DBD-Mysql
install Text-Autoformat
install TimeDate
install MIME-tools
install URI-Find

3. [Running the sql scripts]
WIN32: To run these using mysql: type "mysql" at the command prompt. Then, type:
connect vbfor [where vbfor is the name of your database]
source vB_sql_structure.sql
source vB_sql_data.sql

8. [Editing newnews.pl]
WIN32: Comment out line 53 - line 67.

Running:
WIN32: Set up a shortcut (either on your desktop or in your start menu) to point to: "perl c:\path\newnews.pl"
Then, use Scheduler (Start|Programs|Accessories|System Tools|Scheduled Tasks) to run this program at specified times.
Reply With Quote
  #80  
Old 07-29-2001, 09:06 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by James Cridland
Initial thoughts are, certainly when using news.btinternet.com (my local ISP), that newnews.pl is very slow in grabbing new messages - typically up to 90 seconds per message. For this reason, I'm currently setting it to run once a day. Is this about right?
90 seconds is most definately NOT about right. It shouldn't even take that long for a full batch of 200 or 300. try putting some debugging lines in the code to see exactly where it goes wrong.
Reply With Quote
  #81  
Old 07-29-2001, 10:03 PM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I might need your help here...

I'll have a play tomorrow.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05209 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete