vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   NNTP Gateway for Usenet ( Newsgroups ), Mailing Lists (https://vborg.vbsupport.ru/showthread.php?t=65152)

AWS 04-06-2005 02:44 PM

Quote:

Originally Posted by Ian Cunningham
Is there any way to make the posts load into more than 1 forum at a time, and to stage the import slowly - so as not to bring the server to its knees?

I'm trying to import a few newsgroups with lots 50,000 posts in each and it brings my server to a halt!

It has a built in function to pause after so many topics are imported. Check in the settings page.

Ian Cunningham 04-06-2005 05:03 PM

Quote:

Originally Posted by AWS
It has a built in function to pause after so many topics are imported. Check in the settings page.

I must be silly as I can't find that setting anywhere? Do you know the title of it?

I've just checked how you have implemented yours and that is similar to what I am trying to do - nice site! :)

Marv 04-07-2005 08:54 AM

Quote:

Originally Posted by lierduh
This occures when someone replies to the quote straight after the vbcode. eg. Instead of writing the reply in the new line. They reply was written like like:
PHP Code:

... 


PHP Code:

Reply was here 

I will check the code out in a few days.[/QUOTE]

Hi lierduh,

may be you already found a solution for the problem described in https://vborg.vbsupport.ru/showpost....&postcount=794 and just forgot to let us know how we can get rid of it?

Only wanna kindly bump it again ;)

AWS 04-07-2005 03:05 PM

Quote:

Originally Posted by Ian Cunningham
I must be silly as I can't find that setting anywhere? Do you know the title of it?

I've just checked how you have implemented yours and that is similar to what I am trying to do - nice site! :)

yes it doesn't seem to be there any longer. I know there used to a way to pause the script for x number of seconds. Don't know what happened to it.

Ian Cunningham 04-08-2005 02:40 PM

Quote:

Originally Posted by AWS
yes it doesn't seem to be there any longer. I know there used to a way to pause the script for x number of seconds. Don't know what happened to it.

Not to worry, cheers anyway :)

I've got another problem now :speechless: I keep getting "PHP has encountered a Stack overflow" errors on certain posts, if I skip them it works fine, but I have to tell the script to start on a post count 1 higher than previously - is there any way to fix this? (or at least ignore it?).

Devereaux 04-10-2005 06:56 AM

Hi,

Sorry if this is obvious but I'm a bit confused - a few questions:

1. The readme says to set up the forums as usual. I did that. Should I be setting up the forums through the VB3 forum manager and then also go in and set up the newsgroups with the same names in the nntp settings??

2. Second, I input everything and the page just hangs when I execute the gateway.php file. Here is what I get - then the page says DONE in the status bar and nothing else happens, script locks for 30 minutes, no sign of posts being read into my forums:

Any help is GREATLY appreciated!

--------

Gateway version 2.3.2 2 group(s) gatewayed.

Connecting to server, server says: 200 Supernews server ready - posting allowed

Server responded after user name: 381 PASS required

Server responded after password: 281 authentication succeeded

Info for rec.models.rc.soaring at news20.forteinc.com: 211 1841 34684 36524 rec.models.rc.soaring group selected

Devereaux 04-13-2005 12:49 PM

Is anyone supporting this hack??

James T Brock 04-13-2005 01:46 PM

Quote:

Originally Posted by Devereaux
Hi,

Sorry if this is obvious but I'm a bit confused - a few questions:

1. The readme says to set up the forums as usual. I did that. Should I be setting up the forums through the VB3 forum manager and then also go in and set up the newsgroups with the same names in the nntp settings??

Yup.

Quote:

Originally Posted by Devereaux
2. Second, I input everything and the page just hangs when I execute the gateway.php file. Here is what I get - then the page says DONE in the status bar and nothing else happens, script locks for 30 minutes, no sign of posts being read into my forums:

Try it again with different newsgroups.

lierduh 04-13-2005 08:04 PM

Quote:

Originally Posted by Devereaux
Is anyone supporting this hack??

Not for at least another week from me while I am abroad.

esfron 04-14-2005 03:49 AM

@ chas_h

I have the same gateway.php working for two forums on the same server.

esfron 04-14-2005 03:56 AM

Quote:

Originally Posted by AWS
Just an FYI. This doesn't work with php 5.0.4. I have to use 4.3.11 to run gateway.php and 5.0.4 for the sites.

Bad news. :disappointed:

esfron 04-14-2005 04:03 AM

Quote:

Originally Posted by Devereaux
...Should I be setting up the forums through the VB3 forum manager and then also go in and set up the newsgroups with the same names in the nntp settings??

No. I am using different names for nntp settings and forums (subforums). It's working fine.

Devereaux 04-14-2005 11:09 AM

esfron,

So what is the key in terms of associating your NNTP newsgroups with forums. What I did, and it isn't working obviously, is I went into forum manager and created a category USENET. Then, I created two child forums under USENET. Then, I went into the NNTP Newsgroups panel and created two newsgroup configs. Each one is pointing at the respective forum, same name, created previously.

Maybe some explanation would help - I think I'm setting it up right though...

esfron 04-14-2005 05:48 PM

Here are my Newsgroup Settings for Comp.infosystems.www.servers.unix:

Newsgroup/Mailing list E-mail: comp.infosystems.www.servers.unix
Forum: Comp.info.servers.unix
etc.

I created one Usenet subforum (child forum) called Comp.info.servers.unix under my http forum Dedicated Server.

- Dedicated Server (http)
-- Comp.info.servers.unix (nntp)

MrDegree 04-14-2005 11:12 PM

Is there a way to change the "Originating IP" when posting to Usenet? I would like to say from my host's IP. Right now it's actually funneling the IP from the actual user on the my board who is doing the post.

Thanks.

Devereaux 04-18-2005 10:40 AM

I got my issues sorted...thx

szy 04-23-2005 04:02 PM

Quote:

Originally Posted by szy
gateway.php seems to do nothing. What should be the reason? Wrong permissions? But - to what? I haven't found any directions about permissions?

This is the URL. All files are transferred to server, MySQL table are created, groups is configured as id=2

So, should I still expect your help, Lierduh?

Szy.

PS. I've changed the URLs above.

szy 04-23-2005 07:08 PM

Other question: has anyone this hack working fine with vB 3.0.7?

Szy.

AWS 04-24-2005 03:21 PM

Quote:

Originally Posted by szy
Other question: has anyone this hack working fine with vB 3.0.7?

Szy.

I have it working on 3.0.7 on 2 sites.
Make sure you have the nntp server to connect to and usenet newsgroup setup in admin.

MrDegree 04-24-2005 05:54 PM

Quote:

Originally Posted by MrDegree
Is there a way to change the "Originating IP" when posting to Usenet? I would like to say from my host's IP. Right now it's actually funneling the IP from the actual user on the my board who is doing the post.

Thanks.

Anyone have any ideas on this?

lierduh 04-24-2005 10:21 PM

Quote:

Originally Posted by szy
So, should I still expect your help, Lierduh?

Szy.

PS. I've changed the URLs above.

Don't know what is the problem. Perhaps something very basic is not configured properly, or perhaps the files are corrupted. You did sent the files as ASCII instead of binary?

lierduh 04-24-2005 10:23 PM

Quote:

Originally Posted by MrDegree
Is there a way to change the "Originating IP" when posting to Usenet? I would like to say from my host's IP. Right now it's actually funneling the IP from the actual user on the my board who is doing the post.

Thanks.

You would need to hack the hack for this.

lierduh 04-24-2005 10:27 PM

Quote:

Originally Posted by Ian Cunningham
I must be silly as I can't find that setting anywhere? Do you know the title of it?

I've just checked how you have implemented yours and that is similar to what I am trying to do - nice site! :)

"Pause Between messages" "pause_seconds"

lierduh 04-25-2005 12:04 AM

Quote:

Originally Posted by Marv
Thx, lierduh.

Which version of the script are you using? I think I have already included the fix in the recently one of two releases.

Please check functions_nntp.php, around line 68, you should have:

$parsed_body .= "\n\n";

SEO Report 04-25-2005 03:42 AM

I have a big problem here, many posts are imported twice (some even 3+), causing me a maintenance nightmare with some bigger newsgroups.

I see that at least another member experienced this, has this bug been fixed yet?

Anyway, kudos for this wonderful hack!

lierduh 04-26-2005 01:15 AM

Quote:

Originally Posted by SEO Report
I have a big problem here, many posts are imported twice (some even 3+), causing me a maintenance nightmare with some bigger newsgroups.

I see that at least another member experienced this, has this bug been fixed yet?

Anyway, kudos for this wonderful hack!

You probably had cron/scheduled tasks set up before the initial message importation was completed.

The scripts has the ability to detect if there is another instance of script already running, but only if the other script was started to run less than 1/2 hour ago. As the initial importation may take well over 1/2hour. Two scripts could have run side by side causing double messages.

szy 04-26-2005 12:47 PM

Lierduh, thanks for your time, one more question...

gateway.php starts to work when i... delete these line:

Code:

require_once('include/functions.php');
... and then I get:
Code:

Gateway version 2.3.2  1 group(s) gatewayed.

Connecting to server, server says: 200 NNTP Service 6.0.3790.206 Version: 6.0.3790.206 Posting Allowed

Info for microsoft.public.access at msnews.microsoft.com: 211 15392 1 139321 microsoft.public.access

Getting message number 2:

... and nothing more.

So, could you please what exactly functions from functions.php you use in this hack? It will be easier to find the reason... :|

Thx,
Szy.

lierduh 04-27-2005 12:18 AM

Quote:

Originally Posted by szy
Lierduh, thanks for your time, one more question...

gateway.php starts to work when i... delete these line:

Code:

require_once('include/functions.php');
... and then I get:
Code:

Gateway version 2.3.2  1 group(s) gatewayed.

Connecting to server, server says: 200 NNTP Service 6.0.3790.206 Version: 6.0.3790.206 Posting Allowed

Info for microsoft.public.access at msnews.microsoft.com: 211 15392 1 139321 microsoft.public.access

Getting message number 2:

... and nothing more.

So, could you please what exactly functions from functions.php you use in this hack? It will be easier to find the reason... :|

Thx,
Szy.

You can check the web server log and see what sort of errors you had. I couldn't remember what functions were used. It will be too time consuming for me to go through all the scripts and find the functions. Actually it is near impossible without writing an auto script to do so.

szy 04-27-2005 08:20 AM

In PHP error log:

Code:

[Wed Apr 27 11:16:26 2005] [error] PHP Fatal error:  Cannot redeclare construct_phrase() in ./includes/functions.php on line 36
Lines 34-72 of vB's functions.php are:

Code:

function construct_phrase()
{
        static $argpad;

        $args = func_get_args();
        $numargs = sizeof($args);

        // if we have only one argument, just return the argument
        if ($numargs < 2)
        {
                return $args[0];
        }
        else
        {
                // call sprintf() on the first argument of this function
                $phrase = @call_user_func_array('sprintf', $args);
                if ($phrase !== false)
                {
                        return $phrase;
                }
                else
                {
                        // if that failed, add some extra arguments for debugging
                        for ($i = $numargs; $i < 10; $i++)
                        {
                                $args["$i"] = "[ARG:$i UNDEFINED]";
                        }
                        if ($phrase = @call_user_func_array('sprintf', $args))
                        {
                                return $phrase;
                        }
                        // if it still doesn't work, just return the un-parsed text
                        else
                        {
                                return $args[0];
                        }
                }
        }
}

Hm?

Szy.

Marco van Herwaarden 04-27-2005 09:49 AM

This error means that the function "construct_phrase" is being defined for the second time. This can have different causes:
- Your custom script defines a function with the same name before calling functions.php.
- You made an edit somehow duplicating that function in functions.php
- You are using a "include" or "require" of functions.php instead of "include_once" or "require_once" making the functions.php to be loaded twice.

And probably some more i didn't think of now.

szy 04-27-2005 02:42 PM

But... it is fresh forum, no changes at all, no modification... and files from Lierduh's zip file. Arggh. I'll go crazy :/

Thanks.

Szy.

szy 04-27-2005 03:11 PM

Is it really correct, to load all the functions.php to strip bb code only?

Lines 59-60 of gateway.php
Code:

// strip_bbcode
require_once('includes/functions.php');

I have no idea, what can duplicate functions :/

Szy.

lierduh 04-27-2005 11:03 PM

Quote:

Originally Posted by szy
But... it is fresh forum, no changes at all, no modification... and files from Lierduh's zip file. Arggh. I'll go crazy :/

Thanks.

Szy.

The construct_phrase function has been declared twice!

Do
#grep 'function construct_phrase' * -r
Under the console shell if possible. Otherwise, resend the files again.

kevinrstruck 04-28-2005 02:38 AM

Any idea why I would be able to get posts but not send?

szy 04-28-2005 10:04 AM

Quote:

Originally Posted by lierduh
#grep 'function construct_phrase' * -r

It's present in two files:

./includes/functions.php
./clientscript/vbulletin_global.js

Right or wrong, if the second is javascript? (Un)fortunately, I'm not a coder ;)

Szy.

Marco van Herwaarden 04-28-2005 08:08 PM

Do another grep but now for 'includes/functions.php' Will give you a whole list, but only interested in lines with "require" or "include" (not require_once or include_once).

lierduh 04-28-2005 10:07 PM

Quote:

Originally Posted by szy
It's present in two files:

./includes/functions.php
./clientscript/vbulletin_global.js

Right or wrong, if the second is javascript? (Un)fortunately, I'm not a coder ;)

Szy.

Which php version are you running? If it is too old, consider upgrade. Also try out a non-edited php.ini if possible.

If all the files have not been edited and not corrupted, then your problem must be caused by the server/setup. In case you are running the latest php 5, it may have features to cause this. I am not running php 5, so the scripts may not work with php 5.

szy 04-29-2005 07:32 AM

I really appreciate your help.

PHP version is 4.3.10. Too old?

Szy.

SEO Report 04-29-2005 07:04 PM

lierduh,

Spam is becoming really annoying in my case, and while the kill file helps a lot, it isn't sufficient due the crazy number of rubbish posted msg :(

How about adding regular expression support to the killfile routine? (might not be an easy task, I don't know...). I'm not a php programmer, but after looking at the killfile_match() function, I figured that one can strip title and body text and test them against a configurable list of reg expressions, we would have a great antispam filter!

Perhaps something like :

PHP Code:

foreach ($RegExpSetting AS $eachRegExp)
  
preg_match_all ($eachRegExp$eachRegExp$killfile_array); 

What do you think?

-k

lierduh 05-01-2005 11:54 PM

Quote:

Originally Posted by SEO Report
lierduh,

Spam is becoming really annoying in my case, and while the kill file helps a lot, it isn't sufficient due the crazy number of rubbish posted msg :(

How about adding regular expression support to the killfile routine? (might not be an easy task, I don't know...). I'm not a php programmer, but after looking at the killfile_match() function, I figured that one can strip title and body text and test them against a configurable list of reg expressions, we would have a great antispam filter!

Perhaps something like :

PHP Code:

foreach ($RegExpSetting AS $eachRegExp)
  
preg_match_all ($eachRegExp$eachRegExp$killfile_array); 

What do you think?

-k

That could cause a support nightmare. We have already had quite a few posts regarding how to use the existing simple killfile format.:)

I have allowed custom settings to be created via the Admin interface, so a killfile with Regular Expression can be entered through Admin interface. You can then add custom functions to the scripts...


All times are GMT. The time now is 05:11 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.02199 seconds
  • Memory Usage 1,865KB
  • 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
  • (7)bbcode_code_printable
  • (4)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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