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 |
#922
|
|||
|
|||
![]() Quote:
Hey, thanks for the reply. When I run gateway.php manually, I do not get a message but rather a blank white page. It does do something though... (pauses for a few seconds) and brings up new posts from the groups. I test my outgoing messages by posting a reply in my forum, running gateway.php manually, and then waiting for it to appear in Usenet. I have yet to get a reply to appear. I am currently running... VB 3.0.1 VB Portal 3.0.0 Beta 2 PhotoPost site: www.cghaus.com I installed the original hack from this thread https://vborg.vbsupport.ru/showthrea...7&page=1&pp=15 and then followed up with the additions from this thread https://vborg.vbsupport.ru/showpost....&postcount=658 I am still waiting for someone to reply to my posts on my host's forums regarding my cron job. In the meantime, I am running gateway.php manually. http://www.lunarforums.com/forum/viewtopic.php?t=15006 TIA! |
#923
|
|||
|
|||
![]()
I just got a reply back from tech support and they say my cron job is correct. I check my web email and see this msg.
Quote:
Code:
php /home/cghaus2/public_html/forums/gateway.php?log=cron |
#924
|
|||
|
|||
![]()
I have rewritten big chunks of the gateway.php. I will give it some test before uploading.
Improvement include: 1) TABLE_PREFIX is now supported. 2) Messages imported from usenet are now inserted into threads based on Reference in the header instead of the subject. 3) Built mechanism to avoid two instances of the gateway.php running at the same time. This can easily happen if someone clicks the link in the Who Is On Line page. This should also solve the problem of double up posts and wrong post counters. 4) Masive speed improvement! 5) Cleaned up the codes. ... Stay tuned. |
#925
|
|||
|
|||
![]()
lierduh, perhaps any idea how to exclude the p´NG postings from the counter of new posts and themes?
|
#926
|
|||
|
|||
![]()
Awesome! I'm hoping your new code fixes my problem of VB posts going out to Usenet. I removed the "log=cron" part of my cron job yesterday and now I am getting better results.
Code:
X-Powered-By: PHP/4.3.3 Expires: Mon, 26 Jul 1997 05:00:00 GMT Last-Modified: Sun, 09 May 2004 17:44:00 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: private, post-check=0, pre-check=0 Pragma: no-cache Set-Cookie: bblastvisit=1084124640; expires=Mon, 09-May-05 17:44:00 GMT; path=/ Set-Cookie: bblastactivity=1084124520; expires=Mon, 09-May-05 17:44:00 GMT; path=/ Set-Cookie: vbplang=english Set-Cookie: showleftcolumn=1 Content-Type: text/plain 2 group(s) gatewayed. Logging in to enews.newsguy.com, group alt.binaries.3d.lightwave Logging in to enews.newsguy.com, group comp.graphics.apps.lightwave Thans in advance for taking the time to work out some updated code. ![]() |
#927
|
|||
|
|||
![]()
I have just uploaded the new package to page 44.
https://vborg.vbsupport.ru/showpost.php?p=444521 == TABLE_PREFIX is now supported. == Messages imported from usenet are now inserted into threads based on Reference in the header instead of the subject. == Built mechanism to avoid two instances of the gateway.php running at the same time. This can easily happen if someone clicks the link in the Who Is On Line page. This should also solve the problem of double up posts and wrong post counters. == Massive speed improvement! == Cleaned up the codes. == Implemented parentid for imported posts == lastmessage is updated now after each message retrieval. This way no message will be imported twice, even if the script is crashed at some stage. == Fixed a bug which occurs in long header lines. Message may not be retrieved due to this bug. This time instead of a quick hack, I have gone through almost each line. So it should be a much better script. |
#928
|
|||
|
|||
![]() Quote:
![]() |
#929
|
|||
|
|||
![]()
Awesome! This patch came through really fast.
I have one question though... it seems I'm getting some SQL errors when attemtping to "insert" the two new tables. They already exist. In fact, value 9 is showing Organization values. Should we just overwrite this stuff manually? Code:
Error SQL-query : INSERT INTO `nntp_settings` VALUES ( 9, 'Last Time Run', 'last_run', '1084316100', 'Last time the gateway.php was run', NULL , 0, 0 ) MySQL said: #1062 - Duplicate entry '9' for key 1 |
#930
|
|||
|
|||
![]() Quote:
INSERT INTO `nntp_settings` VALUES (NULL, 'Is Gateway Running', 'is_running', '0', 'Check if another instance of gateway.php is running', NULL, 0, 0); INSERT INTO `nntp_settings` VALUES (NULL, 'Last Time Run', 'last_run', '1084316100', 'Last time the gateway.php was run', NULL, 0, 0); |
#931
|
|||
|
|||
![]()
I made a stupid mistake at the last minute. Please download the gateway.php again. I have attached a "a" to the end of the file name. The only thing changed was two lines in the gateway.php script. There is no need to replace the other files.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|