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
  #572  
Old 06-29-2003, 09:12 PM
groovesalad groovesalad is offline
 
Join Date: Aug 2002
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

del
Reply With Quote
  #573  
Old 07-01-2003, 10:22 PM
iggy123's Avatar
iggy123 iggy123 is offline
 
Join Date: Jan 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any ideas on how to stop it updating all threads?
I have tried to install this but the newsgroup i want to get threads from has 3 months worth of posts - i only want the last months threads.
everytime i manually prune the forum the next time the gateway.php runs it brings in the old posts again.
Reply With Quote
  #574  
Old 07-02-2003, 07:05 AM
alesis404 alesis404 is offline
 
Join Date: May 2003
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Using older stuff from Usenet hack - you need a new field in thread table.

ALTER TABLE thread ADD isusenetpost TINYINT(2) DEFAULT 0 not null;

then open your gateway.php and find:

// Create thread
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,p ostusername,postuserid,lastpos
ter,dateline,iconid,visible,attach,msgid,prefix) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."' ,'".$date."','$forumid','1','0','".addslashes(from _name($message[from]))."','0','".addslashes(from_name($message[from]))."','".$date."','0','1','$attachcount','".addsla shes($message[msgid])."','".addslashes($theprefix)."')");

replace it with (changes enbolded)

// Create thread modded
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,p ostusername,postuserid,lastpos
ter,dateline,iconid,visible,attach,msgid,isusenetp ost,prefix) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."' ,'".$date."','$forumid','1','0','".addslashes(from _name($message[from]))."','0','".addslashes(from_name($message[from]))."','".$date."','0','1','$attachcount','".addsla shes($message[msgid])."','1','".addslashes($theprefix)."')");

From now on each thread created by gateway.php will be flagged as originating from usenet (isusenetpost=1)...

Open search.php and find two lines:

$wheresql.=" AND thread.open<>10";

in my case around line 551 and 601...
Directly below each of them add:

// NNTP Gateway mod
if (!$includeusenetpostsingetnew) { $wheresql.=" AND thread.isusenetpost=0"; };
// End of mod

Having isusenetpost in thread table also allows you to separate threrad counts or create separate links for "View new Usenet posts" ( see example here...
==============================================
Can someone tell me the correct syntax to run this line as a query and create this?

ALTER TABLE thread ADD isusenetpost TINYINT(2) DEFAULT 0 not null;

*I tried creating the table manually but after doing the mod and trying view new posts I got a white screen and suspect maybe the table I have is made wrong, thanks
Reply With Quote
  #575  
Old 07-02-2003, 07:02 PM
PhoenixBB PhoenixBB is offline
 
Join Date: May 2002
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I couldn't get that querie to worked - kept giving me a syntax error. The post beneath that one you quoted provided the solution for me.
Reply With Quote
  #576  
Old 07-02-2003, 07:06 PM
kaiwang kaiwang is offline
 
Join Date: Mar 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

which NNTP service provider is everyone here using??

thanks
Reply With Quote
  #577  
Old 07-02-2003, 08:43 PM
alesis404 alesis404 is offline
 
Join Date: May 2003
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone mentioned to remove certain users usenet posts you could do this

Quote:
A simple SQL query can be used periodically to delete them. Use something like "DELETE FROM post WHERE username='username'" You'll also need to run DELETE FROM thread WHERE postusername='name of bad seed'" Or you can see my last post and add another thing to the if statement.
Using phpmyadmin I am trying to run a sql query and am not sure I am doing this properly and need confimation, is the exact line that needs to be typed

DELETE FROM post WHERE username='username'

of course replacing 'username' with the actual username who's posts you need deleted or is there some other code that must be added before this to the standard query from phpmyadmin? I seem to get a syntax error trying to run that line and assume i am missing a small code snippet that might go in front of that line of the querys?
Reply With Quote
  #578  
Old 07-02-2003, 10:40 PM
alesis404 alesis404 is offline
 
Join Date: May 2003
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post #334 mentioned to alter the table thread and add

ALTER TABLE thread ADD isusenetpost TINYINT(2) DEFAULT 0 not null;

I did this manually and appears I have the table right but going by the last error I got was I supposed to make another change to mention that extra column?

*I did also make the mod to search.php and appears to be blocking posts from "view new posts but now I have this error"
Reply With Quote
  #579  
Old 07-02-2003, 10:49 PM
allan grossman allan grossman is offline
 
Join Date: Apr 2003
Location: surreal city, usa
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 04:06 PM kaiwang said this in Post #575
which NNTP service provider is everyone here using??

thanks
I'm using Giganews and it's working fine. I also made some changes to the signature routines - because I wanted them to say something different and because the signature separator wasn't RFC 1036-compliant and some newsreaders were having problems strippng them off.

A compliant signature separator is <linefeed><dash><dash><space><linefeed> Gilby's hack (while outstanding) was missing the space and some newsreaders wouldn't strip the signature out of quoted vB Usenet posts.

This hack has added real value to my board - thanks, Gilby!
Reply With Quote
  #580  
Old 07-07-2003, 04:29 AM
PhoenixBB PhoenixBB is offline
 
Join Date: May 2002
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
which NNTP service provider is everyone here using??
I was going to use my Easynews account, but chickened out when I read the TOS. They were very much ''you must use the account soley for your own use''. Technically it is, but I figured too dicey as I'm in the UK and my site is on a US server, and they might notice I can't be in two continents at once. :P In the end I went with teranews.com who give 50mb a day free, which is plenty for the couple of text groups I use. They charge a one off $3.95, which isn't bad. Had no problems so far.

I'm just gearing up to switch the posting function on. Am a bit nervous of that in case it posts what's already there. I guess I'm gonna have to re-read this whole thread again <whimpers> but am I remembering rightly that people can't use the normal vbcodes when replying? Or if they do they don't get converted like they do on the way in? That'll take some getting used to for some of my members.
Reply With Quote
  #581  
Old 07-07-2003, 05:07 AM
alesis404 alesis404 is offline
 
Join Date: May 2003
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
A simple SQL query can be used periodically to delete them. Use something like "DELETE FROM post WHERE username='username'" You'll also need to run DELETE FROM thread WHERE postusername='name of bad seed'" Or you can see my last post and add another thing to the if statement.
Is anybody sucessfully doing this through phpmyadmin and if so what is the exact query you are using? I tried this and it gives me a syntax error on line 1 and I really have alot of posts I would like to remove asap...thanks

DELETE FROM post WHERE username='username' <---this give me bad syntax when i run this query from phpmyadmin? is there something that goes in front or behind this...sorry for asking again but I've been waiting all weekend to be able to remove bulk spam posts and would appreciate help from anybody using phpadmin to run this query and delete posts by user, note I cannot mass prune by user from admincp and when I try it hops to the next page but appears there is buttons missing and I cant perform the action...perhaps others know what I mean....
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 09:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06284 seconds
  • Memory Usage 2,320KB
  • 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
  • (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
  • (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