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)

Highlander 05-23-2004 06:26 AM

THX LIEDERUH:


its nots completely working, but it was an IE issue and with the registry fix i added manually in the registry the IE is now wirkoing corectly, but now i have an error message.

the site gateway.php is loading and messaging folling line:
Code:

<b>Warning</b>:  Wrong parameter count for rtrim() in <b>/www/home93/html/board/includes/nntp.php</b> on line <b>132</b><br>
it seems that the RTIM is now a PHP 4.0.6 command??


any ideas .. its the code in uincludes/nntp.php at line 132
PHP Code:

     $line rtrim(fgets($this->fp), "\r\n"); 

thank fpr the help, i think we are nearly on a working script :D

Highlander 05-23-2004 06:43 AM

okai i fixed it but maybe not really correctly :D

changed this lines:
PHP Code:

    $post '';
    while(!
feof($this->fp)) {
        
//$line = trim(fgets($this->fp, 256));
        //Took out the length, some lines are longer than that
     
$line rtrim(fgets($this->fp), "\r\n"); 

to this lines:
PHP Code:

    $post '';
    while(!
feof($this->fp)) {
        
$line trim(fgets($this->fp256));
        
//Took out the length, some lines are longer than that
     //$line = rtrim(fgets($this->fp), "\r\n"); 

if there is a better way fixing this LASt issue so tell me please, but with this canges now everything is working, the posts apear now and i can read and post ionto newsgroups .. and it writes the group messages into the forum!

many thanks to liederuh he is giving a excellent support here!!! really .. you are after logician the second one i would install hacks without reading :D

Questions
  1. How to create a cron job, when i dont have shell, telnet access? Can i use the cron manager of the vb Software? and add the /vb-directory/gateway.php to it .. so it would call the gateway once hourly.
  2. Why i cant call gateway.php for 30 minutes after it loaded out and imported successfully articles from the groups?
  3. When i post with prefix in articels they wont appear as anser, they will show up as news articels, is there any fix?
thanks for the great help :D

mcncyo 05-23-2004 11:04 AM

i can answer #2 for you. It didn't finish going though all of the messages and time out. The reason why there is 30 mins is so two programs will not run at one time. When one program gets down it is supose to change the 1 to 0 in a table. which will let it run again.

lierduh 05-23-2004 12:00 PM

Quote:

Originally Posted by Highlander
$line = rtrim(fgets($this->fp), "\r\n");[/php]
Questions
  1. How to create a cron job, when i dont have shell, telnet access? Can i use the cron manager of the vb Software? and add the /vb-directory/gateway.php to it .. so it would call the gateway once hourly.
  2. Why i cant call gateway.php for 30 minutes after it loaded out and imported successfully articles from the groups?
  3. When i post with prefix in articels they wont appear as anser, they will show up as news articels, is there any fix?
thanks for the great help :D

Download the new version, it should fix the rtrim problem, it had problem working with an older version of php.

1) Last time I checked, you can just include the gateway.php in the vB cron job. It will be run every hour.
2) The only time you have this problem is the script crashed. This is to prevent a race condition from more than one running script.
3)You don't want to add prefix to the posts, otherwise, they will not be threaded properly.

lierduh 05-23-2004 12:03 PM

Quote:

Originally Posted by KevinM
Lierduh,

It's my own leased server (although I'm stuffed when it comes to knowing how to configure it :ninja: ). I tried creating the directories and changing the path in the script but it had the same error. I then tried changing the v+ to w+ in the fopen statement and the script loops through the attachments without breaking, but produces the following error upon with each attachment:
The attachment is downloaded and inserted correctly for viewing, except for the thumbnail.

Please try the new v2.1.0. It may solve your problem.

chas_h 05-23-2004 09:22 PM

Bravo Lierduh! I am very impressed with how far you have taken this in the last few weeks and very happy that you have decided to continue developement.

Thank you!

Erwin 05-24-2004 01:07 AM

The new versions - can you explain in a post here if people need to upgrade, or are they only for people who want mailing list support?

lierduh 05-24-2004 01:44 AM

Quote:

Originally Posted by Erwin
The new versions - can you explain in a post here if people need to upgrade, or are they only for people who want mailing list support?

Erwin, I would say use the latest one. Other than mailinst list support. I have improved handling for mime encoded messages, even if you do not use binary group (not really designed as a binary gateway I must say). People use mime encoding for PGP signatures and other purposes. There are a few new options available now in the setting table. I am not sure which version are you using, but chances are there were bugs fixed with the newer version. I had a quick browse through my cvs logs, there are quick a few areas changed since last release. It is not urgent though to upgrade, this release does not contain major bug fixes. Naturally, there might be new bugs created.:) However, the upgrade only needs you to log in to the AdminCP and open the pages, other than uploading the files.:)

Odoin 05-24-2004 02:35 AM

Quote:

Originally Posted by Imhotep
Good idea, Allan... I am going to look into it.

thanks!

I did not see a answer to my post... How can I get this to show up as something other then:

Unknown Location
/forum/gateway.php?log=cron

In the user lists with CRON runs the gateway?

Mike11212 05-24-2004 02:45 AM

Hi

I started to install the script when my server went down and only some of the tables for the database were created. When I run the settings I get a MYSQL Error.

Can someone tell me what Tables were created so I can delete them manually and reinstall it.


All times are GMT. The time now is 09:32 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.01890 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_code_printable
  • (3)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
  • (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