Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
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
  #372  
Old 04-25-2002, 03:38 PM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What are the dependencies. How do I edit the SQL Database? Are there any other questions as a newbie that I should ask?

Thanks
Reply With Quote
  #373  
Old 04-25-2002, 08:32 PM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by winkler1


it's pretty strange..gateway is at http://<host>.com/forums/gateway.php. When we use lynx to get the page (leaving off log=cron to keep things simple), the HTML shown belongs to the vBulletin main welcome page... the server log file shows a 200 code, with a big content length being sent back.
Gateway.php is set up, going and working just fine when we visit it with a normal web browser.
Ever seen this problem?
I do not know why that would be happening, unless you have your board turned off where only the admin can view the board. Another possibility is that you put the gateway.php in the admin folder instead, but I would guess you'd get other errors if you did that. Aside from those, it's probably some sort of rewrite thing that is defined in the server, such as it redirecting all host.com requests to www.host.com
Reply With Quote
  #374  
Old 04-25-2002, 08:45 PM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by morrow
What are the dependencies. How do I edit the SQL Database? Are there any other questions as a newbie that I should ask?
The only dependancies are having vBulletin 2.2 and a connection to a newsgroup server or a pop email account.

The easiest way to edit the MySQL database is to use phpMyAdmin and just hit the browse button when in your forums database and upload the sql file. You can also do it at the command line. In future version, I will probably make it where the database will be automatically checked to see if it's set up and if not it'll load the defaults.
Reply With Quote
  #375  
Old 04-25-2002, 08:49 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I may sounds like I complete idiot but I have no clue what this does O_O
Reply With Quote
  #376  
Old 04-25-2002, 08:58 PM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by neo
I may sounds like I complete idiot but I have no clue what this does O_O
This hack imports and exports posts to/from USENET and other newsgroups into your forums. It allows one to tap into existing discussions that are happening on usenet and making vBulletin live up to it's slogan "Instant Community."

I am guessing that you may not know what newsgroups are and that is why you do not know what this hack does. You may want to check out: http://www.faqs.org/faqs/usenet/what-is/part1/
Reply With Quote
  #377  
Old 04-28-2002, 01:57 PM
eiSecure's Avatar
eiSecure eiSecure is offline
 
Join Date: Dec 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, when I installed the hack, everything went great, but when my users post, it only shows up on my forums, and not on the usenet topic.

For example, when I post something, the reply shows up on my forum, but when I use Outlook Express to view the newsgroup, it doesn't show up.

When I run my gateway.php file, this is what it outputs:
Code:
2 group(s) gatewayed.
Logging in to newscache2.freenet.de, group alt.computer.security
Posting Message from Alex: 500 What?
Posting Message from Alex: 500 What?
Posting Message from chenko: 500 What?
Posting Message from chenko: 500 What?
Posting Message from Alex: 500 What?
Logging in to newscache2.freenet.de, group alt.comp.software
Posting Message from Alex: 500 What?
Posting Message from chenko: 500 What?
Posting Message from chenko: 500 What?
Could somebody help me out?

Thanks,
Alex
Reply With Quote
  #378  
Old 05-05-2002, 03:08 AM
patvdv's Avatar
patvdv patvdv is offline
 
Join Date: Oct 2001
Location: Belgium
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I am wondering if it would be possible to extend this hack in such a way that it can check which current vb threads have no NNTP counterpart anymore and that it would automically close the vb thread.
Reply With Quote
  #379  
Old 05-07-2002, 10:07 PM
SeanM SeanM is offline
 
Join Date: Oct 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason my gateway.php file was corrupted when uploaded.. Reuploaded and it is now working!

I've had this running on a previous webserver without any problems. But im now moving to a new server and when I go to run gateway.php I get this error message:

if ($calledby != "interface") { $ad = ""; header("Content-Type: text/plain"); include("global.php"); } else { $ad = "../"; $headers_sent=1; } // Load NNTP classes include($ad."nntp.php"); // POP3 class include($ad."class.POP3.php3"); //include("parser.php"); include($ad."mime.php");
Fatal error: Call to a member function on a non-object in /home/path/to/where/gateway.php on line 54

I've verified that all installation steps were covered correctly.

Any help is appreicated!

Sean

(The path is actually correct, just removed to security reasons)
Reply With Quote
  #380  
Old 05-12-2002, 04:27 AM
leeherron leeherron is offline
 
Join Date: Dec 2001
Location: Pensacola, FL
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice package. I have it working, but get these two warnings:

Warning: Failed opening 'class.POP3.php3' for inclusion ...
Warning: Cannot add header information - headers already sent ...

Just thought I'd post and ask what I should do ..

Thanks for the work.

Ps-Edit: Uploaded class.pop3.php3 to the forum directory (where mime.php et al were uploaded) and the problems cleared up. Note: file is included in package, but no reference to it are -- it is not listed as one of the files to upload.
Reply With Quote
  #381  
Old 05-14-2002, 08:06 AM
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After reading the 379 messages in this thread with great interest. I really want to install this. However i have a couple of questions to people that are already using it.

If i added say 2 newgroups. Each with a max of 1000 messages what sort of increase in server load would i see? (Bandwidth + space) I guess this is the only concern i have.

Thanks in advance

Phil
Reply With Quote
Reply

Thread Tools

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 05:07 PM.


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.09134 seconds
  • Memory Usage 2,316KB
  • Queries Executed 27 (?)
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
  • (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
  • (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_postinfo_query
  • fetch_postinfo
  • 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