The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
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:
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:
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. ![]() 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
|
Comments |
#947
|
|||
|
|||
![]() Quote:
[root@hd root]# telnet webdiscuss.com 119 Trying 66.51.100.134... telnet: connect to address 66.51.100.134: Connection refused telnet: Unable to connect to remote host: Connection refused |
#948
|
||||
|
||||
![]()
I get the following error when I try and run the gateway.php. Please keep in mind I am a ASP guru and PHP is all new to me... I have run this mod with VB 2 in the past with no issues.
Warning: implode(): Bad arguments. in /home/hsphere/local/home/changed/changed/forum/gateway.php on line 83 Database error in vBulletin 3.0.1: Invalid SQL: UPDATE post AS post, thread AS thread SET isusenetpost = 1 WHERE post.threadid = thread.threadid AND isusenetpost = 0 AND thread.forumid NOT IN () mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4 mysql error number: 1064 Thank you for your time. Mark |
#949
|
|||
|
|||
![]() Quote:
I installed the debug version of nntp that allan suggests and got this Quote:
Any recommendation on which news service I should go with when I subscribe? I'm looking to bring in rec.arts.bonsai , which is a text-based service. My three main requirements are cheap, cheap and you-guessed-it. The email mod built into gateway - for posting - seemed to be generating errors on my server, so I commented it out as recommended in another post here. Regards, Matt |
#950
|
|||
|
|||
![]() Quote:
![]() "thread.forumid NOT IN ()" where it should be "thread.forumid NOT IN (100,101,102,103) The numbers are the forum IDs. The following code is used to retrieve the forum ID for those usenet forums PHP Code:
Is there any of the nntp_groups has "enabled" set to 1 instead of 0? |
#951
|
|||
|
|||
![]()
>themes
Boy ME and my english ![]() |
#952
|
|||
|
|||
![]() Quote:
I got this message: Quote:
Regards, Matt |
#953
|
|||
|
|||
![]()
Things are looking good now, but I have a question pertaining to follow-up gateway.php synchronization. I want to be careful not to import the same records or export them!
A) Do I run setlastmessage.php 1) ...before every gateway import 2) ...after every gateway import and B) Do I run it only once or every time I run gateway? The Readme isn't clear. It says: Quote:
Thanks, Matt |
#954
|
|||
|
|||
![]() Quote:
|
#955
|
|||
|
|||
![]() Quote:
![]() |
#956
|
|||
|
|||
![]()
>different
Maybe ![]() |
#957
|
|||
|
|||
![]()
Lierduh,
There is a BIG error in your code in function sendnews. PHP Code:
After using this, EVERY thread in my DB has been updated with the new msgid from the latest new thread created in the newsgroup forums. Any way to fix this? By fixing this, I mean, resetting all the msgid's to the correct ones, or removing values where they don't belong in the thread table? |
#958
|
|||
|
|||
![]()
Corrected code:
PHP Code:
|
#959
|
|||
|
|||
![]()
Got a little trouble here too, lierduh
![]() Code:
Database error in vBulletin 3.0.1: Invalid SQL: UPDATE post AS post, thread AS thread SET isusenetpost = 1 WHERE post.threadid = thread.threadid AND isusenetpost = 0 AND thread.forumid NOT IN (25,27,29,34) mysql error: You have an error in your SQL syntax near 'AS post, thread AS thread SET isusenetpost = 1 WHERE post.threadid = thread.th' at line 1 mysql error number: 1064 Date: Thursday 13th of May 2004 04:24:04 PM |
#960
|
|||
|
|||
![]()
Mine's also not assigning posts to the proper thread after this change. I'm going to look over the code again for another hour or so, and revert to my last version if I can't get it working properly.
Messed up part is, the posting via the vB adminCP scheduled tasks worked after only minimal tweaking of the new script, and I have it tested to successfully post properly. (which was my only problem before) I think the main problem is coming from the references. They don't seem to be assigning at all anymore. |
#961
|
|||
|
|||
![]()
No need to worry, although thank you very much for pointing out.
![]() the msgid in the thread table is not actually used. So it does not cause any problem at all. You can safely comment this section out. I have got a new version ready to be uploaded including an optional "X-No-Archive" header honouring. Allan will love this. I am thinking of getting rid of this field altogether. Saving a field or index is always a good thing. (by the way, the error is inherited from the original script ![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|