vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   NNTP Gateway for Usenet ( Newsgroups ), Mailing Lists (https://vborg.vbsupport.ru/showthread.php?t=92588)

KW802 01-12-2007 04:35 PM

Quote:

Originally Posted by kjhkjh (Post 1157185)
...
I'm registered with http://www.tigerusenet.com/ (I think it's $7.50 a month - for 15GB / month)
This newsserver allows access on ports: 119, 80, 3128, 23, 7000, 8000, 9000

I had to then keep pushing my hosting company to open port 7000 (because they wouldn't open port 119 on a shared hosting plan) eventually they did it. It took 24 hours for them to process this change. They needed to know the ip address of the where the open port was connecting to so I did an ip lookup for news.tigerusenet.com ...

To make your life easier in the future I suggest using port 80 instead. Port 80 is the port that HTML (www.yoursite.com) goes over so it's almost a 'universal' port number. By using port 80 instead of 7000 then if you switch your hosting service to a different company in the future then you'll know that you don't have to go through this all over again with asking them to open up a different port number.

bashy 01-13-2007 09:39 AM

Hi

I have had port 119 enabled on my dedicated server but i still get
Connecting to server, server says: 502 Permission Denied - Permission Denied -- http://www.highwinds-software.com/ (Tornado v1.0.6.380)

Info for uk.media.tv.misc at news.ntlworld.com:

Connecting to server, server says: 502 Permission Denied - Permission Denied -- http://www.highwinds-software.com/ (Tornado v1.0.6.380)

Info for alt.binaries.movies.divx at news.ntlworld.com:

This happens whenever i try to connect to the news.ntlworld.com (free server)
Or when i try to connect to my paid newshosting server

Any thoughts on this please?

TMM-TT 01-14-2007 04:07 PM

Quote:

Originally Posted by bashy (Post 1157879)
Hi

I have had port 119 enabled on my dedicated server but i still get
Connecting to server, server says: 502 Permission Denied - Permission Denied -- http://www.highwinds-software.com/ (Tornado v1.0.6.380)

Info for uk.media.tv.misc at news.ntlworld.com:

Connecting to server, server says: 502 Permission Denied - Permission Denied -- http://www.highwinds-software.com/ (Tornado v1.0.6.380)

Info for alt.binaries.movies.divx at news.ntlworld.com:

This happens whenever i try to connect to the news.ntlworld.com (free server)
Or when i try to connect to my paid newshosting server

Any thoughts on this please?

Do you get such errors even if you login manually?

bashy 01-14-2007 04:41 PM

Sorry, can you elaborate, not quite sure what ya mean by login manually?

KevinM 01-14-2007 04:48 PM

Quote:

Originally Posted by bashy (Post 1157879)
Hi

I have had port 119 enabled on my dedicated server but i still get
Connecting to server, server says: 502 Permission Denied - Permission Denied -- http://www.highwinds-software.com/ (Tornado v1.0.6.380)

Info for uk.media.tv.misc at news.ntlworld.com:

Connecting to server, server says: 502 Permission Denied - Permission Denied -- http://www.highwinds-software.com/ (Tornado v1.0.6.380)

Info for alt.binaries.movies.divx at news.ntlworld.com:

This happens whenever i try to connect to the news.ntlworld.com (free server)
Or when i try to connect to my paid newshosting server

Any thoughts on this please?

When you say free, do you mean the service which you get with your broadband provider on your home pc? If so, they probably perform an IP check and when it is not coming from a non-NTL line (which your ded server won't), it won't connect. The first time I got this hack I tried using the free BT service I got (and failed).

If you are getting this with a paid service (e.g. giganews, teranews etc), then I would guess the most common reason is username & password issues. Can you log in with these on a normal newsreader? The fact you are getting permission denied errors means the port is problably enabled correctly, or you wouldn't have got this far. What paid service have you gone for?

bashy 01-14-2007 06:11 PM

I am using newshosting, have been for about a year now, i copied and pasted the login details so theres no mistyping..... The only server i have managed to connect to is the free Microsoft 1

TMM-TT 01-14-2007 06:23 PM

Quote:

Originally Posted by bashy (Post 1159020)
Sorry, can you elaborate, not quite sure what ya mean by login manually?

Manually with, for example, a news client. I was thinking of the 502-message, that may indicate missing username/password.

bashy 01-14-2007 07:17 PM

ah right, yeah im downloading with grabit as we speak lol

Rik Brown 01-14-2007 07:36 PM

For aesthetic reasons, I prefer not to have the "Re :" in the subject line created by incoming Usenet threads/posts even if it is a reply. vBulletin doesn't use such formatting and any reply post leaving our system via the gateway will get the "Re: " pre-appended to the subject line for Usenet compatability.

If you likewise wish to remove the incoming "Re: " from the subject line, find the following line in gateway.php:

PHP Code:

 $subject htmlspecialchars(trim($message['subject'])); 

After the above line, simply insert the following:

PHP Code:

if (substr($subject04) == 'Re: '){
$subject substr_replace($subject''04);


If you wish to change your entire message database to remove any prior "Re: " in both threads and posts, just look for my prior post #396 in this thread which indicates the two mySQL queries to do so. Once done, all your threads/posts will be in this same format.

Again, this is only an aesthetic choice for me and shouldn't be considered a bug fix. I hope others might find it useful. If anyone sees any code conflict here, please advise.

Regards. -- Rik

ps: I'm not a PHP programmer so anything I say must be taken at your own risk. Backup your database first. But I've been using this change for several weeks now and all appears working fine.

After the above coding, NNTP_GW attempts to match the incoming post to vb threads "by reference" or "by subject." I'd prefer to make that a single lookup by subject at a future time as threading is already mangled if you are using a killfile that breaks thread sequences. Note, for example, that if the first message in a thread was deleted by your killfile, message #2 will now start a new thread without any "Re: " in it.

TMM-TT 01-14-2007 08:16 PM

Quote:

Originally Posted by Rik Brown (Post 1159228)
PHP Code:

if (substr($subject04) == 'Re: '){
$subject substr_replace($subject''04);




How about a single line?

PHP Code:

$subject preg_replace('[^Re: ]'''$subject); 



All times are GMT. The time now is 04:33 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.03008 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete