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
  #782  
Old 03-15-2004, 11:30 AM
Ogmuk Ogmuk is offline
 
Join Date: Jun 2003
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect, I can't wait. Thank you!

edit: hmm, I just completed a full synchronize on my test forum and it again didn't add any words to the Search Index. I had to manually "Rebuild Search Index" to get the forum searchable.

yet another edit: Ah, I just noticed that outgoing email is on timelimit.yourserver.com, so I changed it in something else
Reply With Quote
  #783  
Old 03-15-2004, 12:49 PM
Ogmuk Ogmuk is offline
 
Join Date: Jun 2003
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm testing this in one of the many test newsgroups and noticed some strange behavior. Right now I'm not receiving any of the posts I made with Outlook Express on my forum while Outlook Express does show all the posts I created or replied to via the forum.

I changed the lastmsg to 0, pruned all the posts, reset the counters and started importing but now it only imports 52 of 262 posts. I've tried this with gateway.php from gateway_Mar2.zip and also after making the adjustment listed here:
https://vborg.vbsupport.ru/showpost....&postcount=759 (only applied the "regulating the # of messages to download on each pass" change).
Reply With Quote
  #784  
Old 03-15-2004, 01:08 PM
jcrash jcrash is offline
 
Join Date: Mar 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by allan grossman
jcrash, look at post #351 on page 24 of this thread. There's a version of nntp.php that does verbose output - you should be able to troubleshoot from there. Maybe it'll tell you where the problem is.
Any chance of getting it to log the output? I have it set to run in the Scheduled Tasks window twice every hour.

The weird thing is that when I post on an existing thread and run the scheduled task manually (via RUN NOW), most post hits the USENET forum just fine.

I'm trying to figure it out, but without a log of the error when it occurs, it is hard.

I'll check out the verbose output, thanks.
Reply With Quote
  #785  
Old 03-15-2004, 01:19 PM
allan grossman allan grossman is offline
 
Join Date: Apr 2003
Location: surreal city, usa
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jcrash
Any chance of getting it to log the output? I have it set to run in the Scheduled Tasks window twice every hour.

The weird thing is that when I post on an existing thread and run the scheduled task manually (via RUN NOW), most post hits the USENET forum just fine.

I'm trying to figure it out, but without a log of the error when it occurs, it is hard.

I'll check out the verbose output, thanks.
I run it as a crontab every ten minutes and redirect the output to a text file - it logs just fine, but I don't know how you'd do it using vB's scheduled task interface.
Reply With Quote
  #786  
Old 03-15-2004, 02:06 PM
jcrash jcrash is offline
 
Join Date: Mar 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by allan grossman
I run it as a crontab every ten minutes and redirect the output to a text file - it logs just fine, but I don't know how you'd do it using vB's scheduled task interface.
I point the scheduled task to the filename...perhaps this is the problem.

It seems like it should work though.

I use this as the filename: ./includes/cron/gateway.php

And, I just place my gateway.php in that folder.

It does seem to be related to me running it manually or not. Maybe I'll see if I can get my host to run it as a cron tab.

--jim
Reply With Quote
  #787  
Old 03-15-2004, 02:49 PM
allan grossman allan grossman is offline
 
Join Date: Apr 2003
Location: surreal city, usa
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jcrash
I point the scheduled task to the filename...perhaps this is the problem.

It seems like it should work though.

I use this as the filename: ./includes/cron/gateway.php

And, I just place my gateway.php in that folder.

It does seem to be related to me running it manually or not. Maybe I'll see if I can get my host to run it as a cron tab.

--jim
It'll work as a scheduled task but there's no way I can think of to redirect the output to a log file using vB - at least I don't think there is.

The way I do it is
Code:
0 * * * * /usr/bin/lynx -source "http://ebassist.com/vb3/gateway.php" > /var/log/cron.usenet
10 * * * * /usr/bin/lynx -source "http://ebassist.com/vb3/gateway.php" >> /var/log/cron.usenet
20 * * * * /usr/bin/lynx -source "http://ebassist.com/vb3/gateway.php" >> /var/log/cron.usenet
30 * * * * /usr/bin/lynx -source "http://ebassist.com/vb3/gateway.php" >> /var/log/cron.usenet
40 * * * * /usr/bin/lynx -source "http://ebassist.com/vb3/gateway.php" >> /var/log/cron.usenet
50 * * * * /usr/bin/lynx -source "http://ebassist.com/vb3/gateway.php" >> /var/log/cron.usenet
The single angle bracket in the first instance overwrites the old file and the double brackets just append data to the existing file - so my log is overwritten every hour. If you want to keep more log than that you could set a daily, weekly or monthly cron job to overwrite the log instead of doing it once every hour.

Some hosts will let you set up your own cron jobs - it might be worth a look
Reply With Quote
  #788  
Old 03-15-2004, 03:25 PM
Ogmuk Ogmuk is offline
 
Join Date: Jun 2003
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What am I doing wrong? I put the counter on 0, pruned every post, and only get 7 threads/10 posts.

Quote:
1 group(s) gatewayed.
Logging in to xxxxx, group alt.test.a
Getting message number 49524: forum post
Getting message number 49525: forum post
Getting message number 49526: New thread; 'test today' from Aard Vaark
Getting message number 49527: New thread; 'test' from Mike (remove XX's to reply)
Getting message number 49528: New thread; 'test' from Mike (remove XX's to reply)
Getting message number 49529: forum post
Getting message number 49530: forum post
Getting message number 49531: forum post
Getting message number 49532: forum post
Getting message number 49533: forum post
Getting message number 49534: forum post
Getting message number 49535: forum post
Getting message number 49536: forum post
Getting message number 49537: forum post
Getting message number 49538: forum post
Getting message number 49539: forum post
Getting message number 49540: forum post
Getting message number 49541: forum post
Getting message number 49542: forum post
Getting message number 49543: forum post
Getting message number 49544: forum post
Getting message number 49545: forum post
Getting message number 49546: forum post
Getting message number 49547: forum post
Getting message number 49548: forum post
Getting message number 49549: forum post
Getting message number 49550: forum post
Getting message number 49551: forum post
Getting message number 49552: forum post
Getting message number 49553: forum post
Getting message number 49554: forum post
Getting message number 49555: forum post
Getting message number 49556: forum post
Getting message number 49557: forum post
Getting message number 49558: forum post
Getting message number 49559: forum post
Getting message number 49560: forum post
Getting message number 49561: forum post
Getting message number 49562: forum post
Getting message number 49563: forum post
Getting message number 49564: forum post
Getting message number 49565: forum post
Getting message number 49566: forum post
Getting message number 49567: forum post
Getting message number 49568: forum post
Getting message number 49569: forum post
Getting message number 49570: forum post
Getting message number 49571: forum post
Getting message number 49572: forum post
Getting message number 49573: forum post
Getting message number 49574: forum post
Getting message number 49575: forum post
Getting message number 49576: forum post
Getting message number 49577: forum post
Getting message number 49578: forum post
Getting message number 49579: forum post
Getting message number 49580: forum post
Getting message number 49581: forum post
Getting message number 49582: forum post
Getting message number 49583: forum post
Getting message number 49584: forum post
Getting message number 49585: forum post
Getting message number 49586: forum post
Getting message number 49587: forum post
Getting message number 49588: forum post
Getting message number 49589: forum post
Getting message number 49590: forum post
Getting message number 49591: forum post
Getting message number 49592: forum post
Getting message number 49593: forum post
Getting message number 49594: forum post
Getting message number 49595: forum post
Getting message number 49596: forum post
Getting message number 49597: forum post
Getting message number 49598: forum post
Getting message number 49599: forum post
Getting message number 49600: forum post
Getting message number 49601: forum post
Getting message number 49602: forum post
Getting message number 49603: forum post
Getting message number 49604: forum post
Getting message number 49605: forum post
Getting message number 49606: forum post
Getting message number 49607: forum post
Getting message number 49608: forum post
Getting message number 49609: forum post
Getting message number 49610: forum post
Getting message number 49611: forum post
Getting message number 49612: forum post
Getting message number 49613: forum post
Getting message number 49614: forum post
Getting message number 49615: forum post
Getting message number 49616: forum post
Getting message number 49617: forum post
Getting message number 49618: forum post
Getting message number 49619: forum post
Getting message number 49620: forum post
Getting message number 49621: forum post
Getting message number 49622: forum post
Getting message number 49623: New thread; '446' from Jeff Spicoli
Getting message number 49624: New thread; '449' from Jeff Spicoli
Getting message number 49625: New thread; 'testing the post' from Bird fan
Getting message number 49626: Thread found; 'Re: testing the post' from Bird fan
Getting message number 49627: Thread found; 'Re: testing the post' from Bird fan
Getting message number 49628: Thread found; 'Re: testing the post' from Bird fan
Getting message number 49629: New thread; 'tetiee' from Bird fan
Getting message number 49630: forum post
Getting message number 49631: forum post
Getting message number 49632: forum post
Getting message number 49633: forum post
Getting message number 49634: forum post
Getting message number 49635: forum post
Getting message number 49636: forum post
Getting message number 49637: forum post
Getting message number 49638: forum post
Getting message number 49639: forum post
Getting message number 49640: forum post
Getting message number 49641: forum post
Getting message number 49642: forum post
Getting message number 49643: forum post
Getting message number 49644: forum post
Getting message number 49645: forum post
Getting message number 49646: forum post
Getting message number 49647: forum post
Getting message number 49648: forum post
Getting message number 49649: forum post
Getting message number 49650: forum post
Getting message number 49651: forum post
Getting message number 49652: forum post
Getting message number 49653: forum post
Reply With Quote
  #789  
Old 03-15-2004, 03:47 PM
jcrash jcrash is offline
 
Join Date: Mar 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, I just logged into my Control Panel at my host (f5hosting) and noticed I have access to make my own cron tab.

Evidently, it emails me the results.

Do I need to change this line of code to make sure it has the content Im looking for?

if ($log != 'cron'){
echo $message;
flush;
}
Reply With Quote
  #790  
Old 03-15-2004, 04:09 PM
allan grossman allan grossman is offline
 
Join Date: Apr 2003
Location: surreal city, usa
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jcrash
Hey, I just logged into my Control Panel at my host (f5hosting) and noticed I have access to make my own cron tab.

Evidently, it emails me the results.

Do I need to change this line of code to make sure it has the content Im looking for?


if ($log != 'cron'){
echo $message;
flush;
}
I dunno, jcrash. I didn't change mine
Reply With Quote
  #791  
Old 03-15-2004, 04:11 PM
allan grossman allan grossman is offline
 
Join Date: Apr 2003
Location: surreal city, usa
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ogmuk
What am I doing wrong? I put the counter on 0, pruned every post, and only get 7 threads/10 posts.
The 'forum post' thingies are telling you the post is already in the forum database.

Set the counter to zero and prune *all* posts out of the forum. If you're already running the script as a cron job, disable the cron until you've got the forum populated.
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 01:36 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.10516 seconds
  • Memory Usage 2,332KB
  • 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
  • (1)bbcode_code
  • (7)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
  • (3)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