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)

TMM-TT 07-20-2007 06:57 PM

Quote:

Originally Posted by vze2yqtm (Post 1296746)
I've added most of the hacks that were added to this thread and then installed it.. It actually took me a couple of hours to go through all the posts. Now I have a problem. I didn't install all the files that came with the original files like the setlastmsg.php, mime.php, pop.php, the XML file (cpnav_nntp_gateway.xml) because it didn't specify it in the Read Me as far as I can tell I used option 2 for installation because it was mentioned earlier in this thread. Now when I try to run mysite.com/gateway.php?debug=1 I get this error:

Code:

Parse error: syntax error, unexpected T_ELSE in /home/username/public_html/gateway.php on line 385
I'm running 3.6.7.

Anyone knows what the problem could be? It looks to me like it could be some kind of error with the code DKendall supplied only because the error seems to be coming from that line, but I'm no PHP expert and I'm not really sure.

And what does line 385 say?

vze2yqtm 07-20-2007 08:03 PM

Looks like this is what it says:

Code:

  $kf = killfile_match();
                          else


Here's a little bit more of the code in case that part isn't enough:

Code:

        elseif ($nntp['grouptype'] == 'mail'
                AND $group['prefix']
                AND stristr($message['subject'], $group['prefix']) == false)
        {
                logging("Skip, not matching prefix: \"" . $group['prefix'] . "\"");
        }

        if(!$skip_post)
        {
          $kf = killfile_match();
                          else
                          {
                                $threadid = 0;
                                $attachmentid = 0;
                                $parentid = 0;

                                if ($nntp['grouptype'] != 'news')
                                {
                                        $message['text'] = stripfooter($message['text']);
                                }


TMM-TT 07-20-2007 08:10 PM

Ok.. Something is just missing there... This part:

PHP Code:

 $kf killfile_match();
                else 

looks like this in my gateway.php:

PHP Code:

                           $kf killfile_match();
                           if (
$kf)
                           {
                                
logging("Skip, killfile \"" $kf "\" match.");
                           }
                           else 

and after that, it looks right :)

Fabsboards 07-20-2007 09:06 PM

Are there any plans to update this for 3.6.7? If not, are there any other similar mods?

Alfa1 07-21-2007 06:50 PM

This is the only mod for Usenet.

vze2yqtm 07-22-2007 11:09 PM

It seems like I have everything working fine, but now I'm getting a 411 error no such group. I am using about 20 different newsgroups and I know some of them are good. Why am I getting this error for most of them? The servers are replying and giving info like no posting and stuff like that, why is it saying they don't exist?

Here's an example:

Code:

Connecting to server, server says: 200 aioe.org InterNetNews NNRP server INN 2.4.4 (20060818 snapshot) ready (posting ok).

Info for nntp.aioe.org at nntp.aioe.org: 411 No such group nntp.aioe.org


TMM-TT 07-23-2007 11:41 AM

Quote:

Originally Posted by vze2yqtm (Post 1298621)
411 [...snip...] I am using about 20 different newsgroups and I know some of them are good. Why am I getting this error for most of them?

Code:

Connecting to server, server says: 200 aioe.org InterNetNews NNRP server INN 2.4.4 (20060818 snapshot) ready (posting ok).

Info for nntp.aioe.org at nntp.aioe.org: 411 No such group nntp.aioe.org


It seems that something in your configuration is wrong? In the example, you are requesting the newsgroup "nntp.aioe.org" and I don't think that group exist on that server. As you say, error 411 means that the group doesn't exist, and there could be two reasons why you get that message; a) the group really don't exist there b) your configuration may be wrong somewhere (ie you have configured aioe as a server but have put the servername in the wrong field, as shown from the example).

Another thing that may be important for aioe-users: They only allow 25 posts/day per ip. If you're running a server with many users, those 25 may be used up quite fast.

vze2yqtm 07-23-2007 07:05 PM

The problem is I'm getting this with about 15 other newsgroups. It could be my settings since they are basically the same for all of them. Here's a screenshot of the settings I have (I've attached them here for future viewers and also uploaded them temporarily for ease of viewing):

https://vborg.vbsupport.ru/

Most of the newsgroups I'm attempting to use appear to not use username and passwords so that's the reason it's not included.

Newsgroup/Mailing List Email: I put in link
Forum: Forum I want it to show in
Prefix: I've left blank
Last Message: 0
Server: I put in the link again
The rest I've left blank (username and password are not required on these newsgroups) and enabled it.

Am I filling it out wrong?

By the way I appreciate your help. Thank you.

TMM-TT 07-23-2007 07:40 PM

Quote:

Originally Posted by vze2yqtm (Post 1299455)
The problem is I'm getting this with about 15 other newsgroups. It could be my settings since they are basically the same for all of them. Here's a screenshot of the settings I have (I've attached them here for future viewers and also uploaded them temporarily for ease of viewing):

http://customrequest.com/nntpgatewayscreenshot.gif

Most of the newsgroups I'm attempting to use appear to not use username and passwords so that's the reason it's not included.

Newsgroup/Mailing List Email: I put in link
Forum: Forum I want it to show in
Prefix: I've left blank
Last Message: 0
Server: I put in the link again
The rest I've left blank (username and password are not required on these newsgroups) and enabled it.

Am I filling it out wrong?

By the way I appreciate your help. Thank you.

That's true... aioe doesn't allow username/password at all, it's free to use but with a 25-post-per-day-only-limit... What newsgroups are you looking for, actually?

The only wrong I can see in your attachment is that the top field for the newsgroup-name should be an existing newsgroup. The current you have in your screenshot doesn't exist :)


Quote:

200 aioe.org InterNetNews NNRP server INN 2.4.4 (20060818 snapshot) ready (posting ok).
GROUP nntp.aioe.org
411 No such group nntp.aioe.org
I think my newsbot is a bit out of date now, but if you need a complete list of that server's groups, you can look here.

There's only one thing I'm thinking of now - does the gateway work when sending empty identification strings, since aioe don't use authentication?

vze2yqtm 07-23-2007 08:12 PM

It worked!!! Thanks again.

I changed Newsgroup/Mailing List Email to one of the groups from the link you provided (I picked alt.accounting) and got some posts. I'm actually only testing the script for now, I have not placed it in a live section of my forum. It's in an admin viewable only section.

As far as authentication, I'm not sure, but everything else seems to work fine, I guess it was just that I didn't pick the right Newsgroup name and that seemed to fix everything. I'm still testing so I may be back with more questions, but I hope everything works for now. I'll probably end up using one of the paid newsgroup solutions, but I want to get all of my testing out of the way with free newsgroups for now.


All times are GMT. The time now is 01:23 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.01782 seconds
  • Memory Usage 1,766KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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