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
  #287  
Old 03-26-2002, 06:22 PM
antigravityboy antigravityboy is offline
 
Join Date: Feb 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah
First I wanted to say thanks to GameCrash for the cool interface addon. I finally got the script running on my bulletin board. I just have 1 problem to work out. When it gets picture files, .jpg's it does not display them as links to a picture it shows up as something like this.
begin 644 Catherine_Bell_02.jpg
M_]C_VP!#``$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`
0$!`0$!`0$!
M`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0'_VP!#`0$!`0$!`
0$!`0$!`0$!
M`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`
0$!`0$!`0$!
M`0$!`0'_P``1"`#(`FP#`2(``A$!`Q$!_\0`'P```@(#`0$!` 0$`````````
M``D("@8'"P4$`P(!_\0`1!```00"`0,#`P,"`@<%!@<`!`(#! 08!!P@`$1()
etc, etc,

Anybody have any idea on how I can fix this.
Thanks a lot!
Reply With Quote
  #288  
Old 03-26-2002, 06:55 PM
mood mood is offline
 
Join Date: Feb 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gilby,

Since upgrading to VB 2.2.4 my gated groups show me all messages as though they would be from a user in my Ignore list though none are as they are pseudo gateway "guests"

I'm using your last release with the mail list addition.

Any ideas?

PS: Could you get any results with the three way gateway? (list/nntp/forum)

Thanks for your help
Reply With Quote
  #289  
Old 03-26-2002, 09:30 PM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by mood
Gilby,

Since upgrading to VB 2.2.4 my gated groups show me all messages as though they would be from a user in my Ignore list though none are as they are pseudo gateway "guests"

I'm using your last release with the mail list addition.

Any ideas?
Can you point me at an example of this? I'm still running 2.2.2 here.

Quote:
Originally posted by mood

PS: Could you get any results with the three way gateway? (list/nntp/forum)
Nope, not yet.
Reply With Quote
  #290  
Old 03-26-2002, 09:43 PM
Okiewan's Avatar
Okiewan Okiewan is offline
 
Join Date: Dec 2001
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome hack, can't wait to get it working
Had problems with my isp's news, went on someone's suggestion here and signed-up with mammothnews.net.

Checked the account with outlook... no problems. Still getting the same issues as before (with other news servers)

Help please?

here is what is displayed using showqueries:

Quote:
Query: SELECT template FROM template WHERE title='options'
Time before: 0.03379499912262
Time after: 0.034965038299561

--------------------------------------------------------------------------------

Query: SELECT sessionhash,userid,host,useragent,styleid FROM session WHERE sessionhash='9322c3bbd3bd5a1472c3fe8344acbbc5' AND host='66.187.5.96' AND useragent='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;'
Time before: 0.041798949241638
Time after: 0.042446970939636

--------------------------------------------------------------------------------

Query: SELECT user.*,userfield.* FROM user LEFT JOIN userfield ON userfield.userid=user.userid WHERE user.userid='16119'
Time before: 0.042775988578796
Time after: 0.043499946594238

--------------------------------------------------------------------------------

Query: SELECT templatesetid,replacementsetid,userselect FROM style WHERE styleid='1'
Time before: 0.044497013092041
Time after: 0.044846057891846

--------------------------------------------------------------------------------

Query: SELECT template,title
FROM template
WHERE (title IN ('gobutton','timezone','username_loggedout','usern ame_loggedin','phpinclude','headinclude','header', 'footer','forumjumpbit','forumjump','nav_linkoff', 'nav_linkon','navbar','nav_joiner','pagenav','page nav_curpage','pagenav_firstlink','pagenav_lastlink ','pagenav_nextlink','pagenav_pagelink','pagenav_p revlink')
AND (templatesetid=-1 OR templatesetid='12'))


ORDER BY templatesetid
Time before: 0.045173048973083
Time after: 0.053406953811646

--------------------------------------------------------------------------------

Query: SELECT COUNT(*) AS count FROM session WHERE userid=0 AND lastactivity>1017184919
Time before: 0.055305004119873
Time after: 0.065440058708191

--------------------------------------------------------------------------------

Query: SELECT COUNT(DISTINCT(userid)) AS count FROM session WHERE session.userid>0 AND session.lastactivity>1017184919
Time before: 0.065888047218323
Time after: 0.068994998931885

--------------------------------------------------------------------------------

Query: SELECT * FROM usergroup WHERE usergroupid=6
Time before: 0.088593006134033
Time after: 0.089588046073914

--------------------------------------------------------------------------------

Query: SELECT varname,value FROM nntp_settings
Time before: 0.27212595939636
Time after: 0.29269301891327

--------------------------------------------------------------------------------

Query: SELECT * FROM nntp_groups WHERE enabled=1
Time before: 0.29306304454803
Time after: 0.29737997055054

--------------------------------------------------------------------------------


Warning: Cannot add header information - headers already sent by (output started at /home2/okiewan/public_html/forums3/global.php:120) in /home2/okiewan/public_html/forums3/gateway.php on line 483
1 group(s) gatewayed.
200 enews1.newsguy.com NNRP server INN 1.90.12 1-Feb-02 ready (posting ok).
381 PASS required
281 Ok
211 10644 348343 359040 rec.motorcycles.dirt
ArrayLogging in to news.mammothnews.net, group rec.motorcycles.dirt
Query: SELECT post.postid,post.username,post.userid,post.datelin e,post.attachmentid,post.pagetext,post.showsignatu re,post.ipaddress,thread.pollid,thread.title,post. threadid,thread.forumid FROM thread,post WHERE post.isusenetpost=0 AND thread.threadid=post.threadid AND post.dateline=thread.dateline AND post.userid=thread.postuserid AND (thread.forumid=80)
Time before: 1.1375050544739
Time after: 1.1587400436401

--------------------------------------------------------------------------------

Query: SELECT post.postid,post.username,post.userid,post.datelin e,post.attachmentid,post.pagetext,post.showsignatu re,post.ipaddress,thread.title,post.threadid,threa d.forumid,thread.msgid,thread.prefix FROM thread,post WHERE post.isusenetpost=0 AND thread.threadid=post.threadid AND (thread.forumid=80)
Time before: 1.1590980291367
Time after: 1.1634229421616

--------------------------------------------------------------------------------

Thanks in advance and thanks for the great hack.
In addition, It did work with the test server listed earlier in this thread.
Reply With Quote
  #291  
Old 03-26-2002, 10:03 PM
Robert Basil's Avatar
Robert Basil Robert Basil is offline
 
Join Date: Oct 2001
Location: Chandler, Arizona
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to let Gilby know, we are running the 1.9 version of his script and VB 2.2.1 with www.newsranger.com as our news host using a crontab every 15 minutes with about 9,000 usenet messages (100+ added daily), and everything is running great!

I plan on adding a few mailing lists (with the new SMTP support) sometime this weekend and will let you know how it works.

Thanks for the great hack bro!

P.S. We are on our own dedicated server and have not noticed any spikes is processor usage at all.

http://www.sportbikeworld.com/status
Reply With Quote
  #292  
Old 03-26-2002, 10:21 PM
Okiewan's Avatar
Okiewan Okiewan is offline
 
Join Date: Dec 2001
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disregard! Posts are coming down. Got to thinking about the error about "headers already... " Changed the "last post" number, it started working.
Reply With Quote
  #293  
Old 03-27-2002, 04:37 AM
Okiewan's Avatar
Okiewan Okiewan is offline
 
Join Date: Dec 2001
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New problem.. trying to get a cron job set up and she no work:

Code:
25,55 * * * * lynx-source http://dirtrider.net/forums3/gateway.php?log=cron >/dev/null
sure does look right to me, any ideas?
Reply With Quote
  #294  
Old 03-27-2002, 04:43 AM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Okiewan
New problem.. trying to get a cron job set up and she no work:

Code:
25,55 * * * * lynx-source http://dirtrider.net/forums3/gateway.php?log=cron >/dev/null
sure does look right to me, any ideas?
you need a space between the lynx and -source
Reply With Quote
  #295  
Old 03-27-2002, 06:15 AM
GameCrash GameCrash is offline
 
Join Date: Oct 2001
Location: Germany (Bavaria)
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One problem I have is that the messages are not added to the correct threads when they have different titles... fastforwards hack does this without problems (I think he uses any messageid or something like this...)
Reply With Quote
  #296  
Old 03-27-2002, 06:21 AM
Gilby Gilby is offline
 
Join Date: Oct 2001
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by GameCrash
One problem I have is that the messages are not added to the correct threads when they have different titles... fastforwards hack does this without problems (I think he uses any messageid or something like this...)
I designed it to do it that way simply because when the subject is changed, most likely it was done because it warrented it's own thread, or maybe it even was supposed to be a new thread.

Go back in this thread and you'll find a change that can be made to change how this works.
Reply With Quote
  #297  
Old 03-27-2002, 06:45 AM
GameCrash GameCrash is offline
 
Join Date: Oct 2001
Location: Germany (Bavaria)
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really? I didn't see something like this, sorry. I'll search for it
Reply With Quote
  #298  
Old 03-27-2002, 02:41 PM
Okiewan's Avatar
Okiewan Okiewan is offline
 
Join Date: Dec 2001
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, will give it a try
I'm thinking it's not executing a *.php file?
Reply With Quote
  #299  
Old 03-27-2002, 04:28 PM
trainer trainer is offline
 
Join Date: Nov 2001
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a free newsgroup place that i can setup an accout to use this addon? or do i have to pay a site to get access to newsgroups to work with this addon
Reply With Quote
  #300  
Old 03-27-2002, 04:52 PM
rawnet's Avatar
rawnet rawnet is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trainer - there are a few mentioned in this thread - likely that you'll have to pay for it, but only $10/month or something - worry more about your ISP charges as your database size and bandwidth go through the roof!!
Reply With Quote
  #301  
Old 03-27-2002, 05:00 PM
rawnet's Avatar
rawnet rawnet is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

How do we stop Usenet postings from appearing when someone clicks on the "New Threads Since Last Visit" link in the forums?

I have installed the hack okay, but received a lot of complaints as my users became lost in the mix between my forum postings and newsgroup postings.

Any ideas how to disable this? Is a hack available? I'd also like to stop them appearing in my Latest Discussion block of vbPortal (but I suspect that's a rather different matter!!!).

Any ideas guys?

Ross
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 05:04 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.05860 seconds
  • Memory Usage 2,378KB
  • 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
  • (2)bbcode_code
  • (5)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