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: 1.00, by Gilby Gilby is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-19-2002 Last Update: Never Installs: 71
 
No support by the author.

This hack provides a gateway to any NNTP newsgroup such as those from Usenet and other newsgroup servers. Selected newsgroups are imported from your news server and post on the forum are sent out to the newsgroup. This hack was greatly inspired by fastforward's usenet gateway hack. This one is a complete rewrite of that hack written in PHP and works with vB 2.2.2.

Installation:
Installation is pretty simple. No modifications to the vB php files are needed and it simply consists of dropping in the files to your forums directory, running the SQL modifications, and modifying the newsgroup settings for your desired newsgroups. For the complete installation details, read the readme.txt file.

Here are some of the features:
  • Real cool vbcode to text conversion!
  • All posts are inserted, even if parent thread cannot be found for replies
  • Guests posts also get sent to the newsgroup.
  • Importing of attachments from the newsgroup
  • Poll info sent to newsgroup
  • Attachment link sent to newsgroup
  • Supports unlimited newsgroups and servers.
  • email notification of new replies, just like regular forum posts
  • Can import HTML messages and convert to limited vb code.

For control panel integration, please check out GameCrash's Graphical Interface addition.

What's not in it that was in fastforward's usenet gateway hack:
  • No control panel integration at the moment. (Available separately)
  • Does not support separate footers
  • Does not allow custom email address to be used via the users option
  • No spam control or string replacement support.
  • No purging or autoexpire.

There is still lots that I'd like to add to it, but this is competely functional for basic newsgroup gateway support. It is most likely not free of bugs. If you have questions, suggestions or annoyances, please post in this thread.

vb3 support
lierduh modified this to provide support for the beta versions of vb3. When the release candidates of vb3 come out, I plan to add support for vb3 and add other features to this hack. If you have suggestions for new features, let me know.

E-mail gateway support
New in this version, you can now gateway with an email list. This will fetch emails from a POP email account and send via php's mail function to the mailing list's email address. To set up the list, in the newsgroup field, enter in the email address to send outgoing posts to. In the server field, enter in the pop3 server, and in the username and password fields enter in, you guessed it, the username and password to your pop account. Note: the email gateway capabilities has not been fully tested, so it might not work with your POP server. Also, it does not work in combo with a news<->forum gateway in the same forum (you can use either kind though in differnet forums within your forums).

Show Your Support

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

Comments
  #272  
Old 03-22-2002, 02:54 PM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by saab340
Upgrade...

I dont care to use this pop e-mail thingy, can I still upgrade and use this latest upgrade? How do I disable the pop?

Just want to fix the posts, so they go to their right threads

Thx
Just drop the new files in. The email support is a bonus and everything else works the same. It'll only do the email thing if the newsgroup column has an email address in there instead of a newsgroup.
Reply With Quote
  #273  
Old 03-23-2002, 01:26 PM
GameCrash GameCrash is offline
 
Join Date: Oct 2001
Location: Germany (Bavaria)
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm... I have problems with ISO-Encoded subjects and textes... for example:

Hans-J?rgen Otten

is send as

=?ISO-8859-1?Q?Hans=2DJ=FCrgen_Otten?=

by some newsreaders (I think). The problem is that the gateway.php does not translate this to Hans-J?rgen Otten. That means that the postings are not added to the correct threads...

I think that

=?ISO-8859-1?Q?{SOMETEXT}?=

means that {SOMETEXT} is encoded.

=2D would mean -

=FC would mean ?

_ would mean a space.

Is there any class or something that would translate this automatically? If not, I will have to write something...

I have found a perl module (http://aspn.activestate.com/ASPN/Cod...rdDecoder.html) for that, but not a php class...
Reply With Quote
  #274  
Old 03-23-2002, 03:47 PM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have just fixed the decode problem that happens in the subject and from headers. The fix makes use of the imap_mime_header_decode php function which requires php to be compiled with the imap functions, so it may not work on all setups, but the gateway script will still work as it checks to see if this function is available for use before using it.
Reply With Quote
  #275  
Old 03-23-2002, 03:53 PM
rawnet's Avatar
rawnet rawnet is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I have an ISP who hosts my site, but doesn't provide Usenet.

Has anyone got any recommendations who to use for large Usenet access like this? Wish to install this hack as it would enhance my board greatly, but presumably I need a Usenet provider first? Then do I just put in a username and password within the config?

Regards,

Ross
Reply With Quote
  #276  
Old 03-23-2002, 05:02 PM
Brian Cruz's Avatar
Brian Cruz Brian Cruz is offline
 
Join Date: Nov 2001
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the quick fixes, Gilby! I think the downloading and insertion of messages is nearly perfect now.

There are only a few very minor things that might be improved upon, whenever you have time. First, a way to truncate very long usernames would be helpful, since long names make the "Thread Starter" and "Last Post" columns much too wide. Also, occasionally I see no name attached to a post, whereas looking at those same posts in a newsreader shows an e-mail address. Lastly, some messages that contain quotes miss coloring the very first line of a quote, like this:

> This first line is not colored
> but this second line is.

Like I said, those are just a few minor problems on an otherwise excellent hack.
Reply With Quote
  #277  
Old 03-23-2002, 05:53 PM
GameCrash GameCrash is offline
 
Join Date: Oct 2001
Location: Germany (Bavaria)
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you - installing the imap support was a pain but this works now
Reply With Quote
  #278  
Old 03-23-2002, 05:55 PM
GameCrash GameCrash is offline
 
Join Date: Oct 2001
Location: Germany (Bavaria)
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Graphical interface for this hack now available

With this additional hack you can administrate the gateway via the admin cp. You will only get support in that this thread: https://vborg.vbsupport.ru/showthrea...threadid=36475
Reply With Quote
  #279  
Old 03-24-2002, 03:51 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The mailing list idea is quite cool!!! I won't use it, but it's a fantastic addition! Well done!
Reply With Quote
  #280  
Old 03-24-2002, 10:57 AM
floleb7's Avatar
floleb7 floleb7 is offline
 
Join Date: Oct 2001
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by floleb7
i have this each time i am running gateway.php

Database error in vBulletin 2.2.2:

Invalid SQL: UPDATE forum SET replycount=replycount+1,lastpost='1016766164',last poster='Christian Daumoinx' WHERE forumid IN () mysql error: You have an error in your SQL syntax near ')' at line 1

mysql error number: 1064

what's the matter ?

bump i try the last version i have always the same problem
Reply With Quote
  #281  
Old 03-24-2002, 11:37 AM
rawnet's Avatar
rawnet rawnet is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I've now installed and setup this hack, and didn't encounter any problems until I ran gateway.php, which then tried to download after running on the server. The contents of gateway.php generated were :

Quote:
7 group(s) gatewayed.
Logging in to news.gradwell.net, group Alt.Military
Logging in to news.gradwell.net, group Alt.Military.Air-Cadets
Logging in to news.gradwell.net, group Alt.Military.Army-Cadet
Logging in to news.gradwell.net, group Alt.Military.Cadet
Logging in to news.gradwell.net, group Alt.Military.Police
Logging in to news.gradwell.net, group Alt.Military.Retired
Logging in to news.gradwell.net, group Alt.Military.Uk
But according to my forums, there doesn't seem to be any messages downloaded.

Can anyone give me an idea as to what could be going wrong?

Many thanks for what will surely be an excellent hack,

Kind Regards,

Ross Williams
Reply With Quote
  #282  
Old 03-24-2002, 11:53 AM
rawnet's Avatar
rawnet rawnet is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Spot the NT user here.

Newsgroup names are case-sensitive. Have changed my newsgroups to lower case and it seems to be working now!!

Reply With Quote
  #283  
Old 03-24-2002, 01:29 PM
renaud_ renaud_ is offline
 
Join Date: Oct 2001
Location: Lyon, France
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

thanks for all,

i can't gateway an POP3 account ...
Quote:
POP3: premature NOOP OK, NOT an RFC 1939 Compliant server
I can't understand what's the mistake ...

Any idea ?
Reply With Quote
  #284  
Old 03-24-2002, 02:11 PM
rawnet's Avatar
rawnet rawnet is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

My gateway.php script is doing the job, but it is timing out.

How do I increase the timeout for this script specifically?

Ross
Reply With Quote
  #285  
Old 03-24-2002, 06:26 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by rawnet
But according to my forums, there doesn't seem to be any messages downloaded.

Can anyone give me an idea as to what could be going wrong?


Try a different newserver. Some newservers just don't work with this hack. This hack definitely works. Your newserver settings must be right if you are getting that output page. But the newserver may not allow downloading of messages from an external program like that.
Reply With Quote
  #286  
Old 03-25-2002, 02:39 AM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Erwin
Try a different newserver. Some newservers just don't work with this hack. This hack definitely works. Your newserver settings must be right if you are getting that output page. But the newserver may not allow downloading of messages from an external program like that.
It should now work with every server, and if it doesn't let me know.
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 04:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09041 seconds
  • Memory Usage 2,370KB
  • Queries Executed 30 (?)
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
  • (2)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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