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
  #437  
Old 10-09-2002, 12:59 AM
Gardener's Avatar
Gardener Gardener is offline
 
Join Date: Apr 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the first hack I have tried to install for VB, and I love it. The install went well with very few problems, except for one of the news groups I added. I added alt.binaries.pictures.gardens as one of the groups, and most of the pictures just show up as a page full of characters instead of the actual picture. I don't think this is a script problem, but rather a problem of not having something installed in either Apache or PHP to decode these pictures. Can someone give me a hand.

Thanks
Reply With Quote
  #438  
Old 10-09-2002, 02:30 AM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Gardener
I don't think this is a script problem, but rather a problem of not having something installed in either Apache or PHP to decode these pictures. Can someone give me a hand.
This is an incompatibility with script where it does not support attachments that are not mime attachments and are uuencoded, which is what OE does for attachments.
Reply With Quote
  #439  
Old 10-09-2002, 10:34 AM
Gardener's Avatar
Gardener Gardener is offline
 
Join Date: Apr 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I noticed that some of the pictures do show up as attachments, but most don't. I'll just have to remove that group. Thanks for your help.
Reply With Quote
  #440  
Old 10-11-2002, 05:52 PM
Gardener's Avatar
Gardener Gardener is offline
 
Join Date: Apr 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to attach a footer to the end of postings made from my site and posted to usenet? Such as "Posted via my website".
Reply With Quote
  #441  
Old 10-13-2002, 10:17 AM
Gardener's Avatar
Gardener Gardener is offline
 
Join Date: Apr 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Gardener
Is there any way to attach a footer to the end of postings made from my site and posted to usenet? Such as "Posted via my website".
Anyone?
Reply With Quote
  #442  
Old 10-26-2002, 04:21 PM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Gardener
Is there any way to attach a footer to the end of postings made from my site and posted to usenet? Such as "Posted via my website".
Find the lines (around line 550) that start with "$signature .= " and change those to how you want the signature to be.
Reply With Quote
  #443  
Old 10-26-2002, 07:20 PM
Gardener's Avatar
Gardener Gardener is offline
 
Join Date: Apr 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the help. I had almost forgot about asking this.
Reply With Quote
  #444  
Old 10-28-2002, 04:22 PM
MaXxed MaXxed is offline
 
Join Date: Jun 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have two issues with this and would welcome some help

1. Using the graphical interface, I cant seem to move a newsgroup (rec.travel.australia+nz) - I think this may be due to the '+' in the name. When clicking on the groups settings, I just get blank fields.

2. How does this hack handle outgoing attachments? I have them disabled by default as I am using text groups, but I am curious what would happen.

Thanks for any/all help.
Max.
Reply With Quote
  #445  
Old 10-29-2002, 04:35 AM
SRozhon's Avatar
SRozhon SRozhon is offline
 
Join Date: Apr 2002
Location: IL
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting this after manual sync. what should I do?

1 group(s) gatewayed.
Could not connect to NNTP-serverLogging in to netnews.insightbb.com, group comp.graphics.apps.photoshop
Not connectedNot connected
Reply With Quote
  #446  
Old 11-03-2002, 03:05 PM
Gardener's Avatar
Gardener Gardener is offline
 
Join Date: Apr 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gilby,

I posted before aobut trying to use this hack to download some biniary groups, but I was having trouble with the uuencoded attachments. I've been looking for a way to solve this, and someone sent me here: http://www.php.net/manual/en/function.base64-decode.php

Would this work? I'm willing to pay for this if you can get it working. PM me with the details.

Thanks
Reply With Quote
  #447  
Old 11-12-2002, 04:49 PM
qnx qnx is offline
 
Join Date: Nov 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am testing the NNTP gateway to the public news server at inn.qnx.com and trying to pull all articles from the group "qdn.cafe" (less than 600 posts). it always fails after message number 562:

...
Getting message number 561: Thread found; 'Re: This is great....' from Bill Caroselli \(Q-TPS\)
Getting message number 562: Thread found; 'Re: This is great....' from Mario Charest

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 10 bytes) in /var/www/html/forums/admin/functions.php on line 1318

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 11 bytes) in Unknown on line 0
...

the php.ini has the default setup of 8M memroy. and I have installed the gui interface from GameCrash.

the posts in that newsgroup are all less than 1M. does the gateway code NOT release the memory after pulling each article? this means we will run out of 8M php allowed memory if we have many posts?
Is there a way to fix it without increasing the 8M limit?

Thanks!
Frank
Reply With Quote
  #448  
Old 11-12-2002, 05:23 PM
qnx qnx is offline
 
Join Date: Nov 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now it's getting worse!
I doubled memory_limit to 16M in php.ini and try to hit gateway.php again, this time it gets a few more posts:
...
Getting message number 568: Thread found; 'Re: This is great....' from Eric Norton
Getting message number 569: Thread found; 'Re: This is great....' from Mario Charest
<br>
<b>Fatal error</b>: Allowed memory size of 16777216 bytes exhausted (tried to allocate 644127 bytes) in <b>/var/www/html/forums/admin/functions.php</b> on line <b>1330</b><br>
<br>
<b>Fatal error</b>: Allowed memory size of 16777216 bytes exhausted (tried to allocate 0 bytes) in <b>Unknown</b> on line <b>0</b><br>

The worst part is now if I go to the forums main page, I see all the duplicates!! it seems gateway.php doesn't know that it has already pulled some of the posts. It gets ALL posts again! Doesn't gateway.php updates the "last_post" count after successfully pulled ONE post? it seems gateway.php only updates the "last_post" count when it finishes polling all posts. If it fails (in my cases), it lost the opportunity to update the "last_post count.

Frank
Reply With Quote
  #449  
Old 11-12-2002, 05:33 PM
qnx qnx is offline
 
Join Date: Nov 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In addition to the "last_post" count, I suggest we use the message-id from the post as a unique id to avoid duplicates. before we insert a new post, we do a select on msgid to make sure it is NOT a duplicate. if we index the msgid, this overhead should be trivial but the benefit is huge. You can import multiple times without worrying about duplicates. btw, we should probably raise the msgid to varchar(255) which is the largest that we can index I believe. we can have better unique-ness with 255 chars I hope.

Frank
Reply With Quote
  #450  
Old 11-14-2002, 02:48 AM
MaXxed MaXxed is offline
 
Join Date: Jun 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a problem with subscribing to a usenet thread and getting email notifications of replies? It doesnt seem to be working for me?
Reply With Quote
  #451  
Old 11-21-2002, 12:56 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Guys; great hack!
I got it to work with a test server but when I try to use my ISP's I get this and nothing else:

1 group(s) gatewayed.
Logging in to news.epix.net, group rec.arts.disney.parks

can this mean I am not getting into my server? I have my user name and password set up.
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:17 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.05778 seconds
  • Memory Usage 2,361KB
  • 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
  • (3)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