![]() |
Quote:
|
Quote:
I've just checked how you have implemented yours and that is similar to what I am trying to do - nice site! :) |
Quote:
PHP Code:
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 ;) |
Quote:
|
Quote:
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?). |
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 |
Is anyone supporting this hack??
|
Quote:
Quote:
|
Quote:
|
@ chas_h
I have the same gateway.php working for two forums on the same server. |
Quote:
|
Quote:
|
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... |
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) |
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. |
I got my issues sorted...thx
|
Quote:
Szy. PS. I've changed the URLs above. |
Other question: has anyone this hack working fine with vB 3.0.7?
Szy. |
Quote:
Make sure you have the nntp server to connect to and usenet newsgroup setup in admin. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Please check functions_nntp.php, around line 68, you should have: $parsed_body .= "\n\n"; |
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! |
Quote:
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. |
Lierduh, thanks for your time, one more question...
gateway.php starts to work when i... delete these line: Code:
require_once('include/functions.php'); Code:
Gateway version 2.3.2 1 group(s) gatewayed. 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. |
Quote:
|
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 Code:
function construct_phrase() Szy. |
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. |
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. |
Is it really correct, to load all the functions.php to strip bb code only?
Lines 59-60 of gateway.php Code:
// strip_bbcode Szy. |
Quote:
Do #grep 'function construct_phrase' * -r Under the console shell if possible. Otherwise, resend the files again. |
Any idea why I would be able to get posts but not send?
|
Quote:
./includes/functions.php ./clientscript/vbulletin_global.js Right or wrong, if the second is javascript? (Un)fortunately, I'm not a coder ;) Szy. |
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).
|
Quote:
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. |
I really appreciate your help.
PHP version is 4.3.10. Too old? Szy. |
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:
-k |
Quote:
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|