vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   NNTP Gateway (Usenet/Newsgroups) (https://vborg.vbsupport.ru/showthread.php?t=35247)

floleb7 02-25-2002 06:13 PM

i have this : fr.rec.son-image.dvd-video.titres how i can use this newsgroup with the hack ? (no login or pass required )

Gilby 02-26-2002 09:40 PM

Quote:

Originally posted by floleb7
i have this : fr.rec.son-image.dvd-video.titres how i can use this newsgroup with the hack ? (no login or pass required )
Go in the database and set the newsgroup to fr.rec.son-image.dvd-video.titres and then fill in the server with the host name of the server you have access to. You can then leave the username and password blank since it's not required for you.

annams 02-26-2002 11:34 PM

First of all, thanks a bunch for this great hack.

I have tried fastforward's version before but I couldn't continue to use it because of CPU restrictions for PERL scripts with my ISP.

I have installed this script successfully and imported webdiscuss news postings with no problems. But, while posting new threads and replies I get the following problem:

===
group(s) gatewayed.
Logging in to webdiscuss.com, group webdiscuss.test
Posting Message from Srinivas Annam: 441 Can't parse "Date" header
Posting Message from Srinivas Annam: 441 Can't parse "Date" header
===

I get can't parse error twice when a new thread is posted and once when a reply is being posted.

- Srinivas

Gilby 02-27-2002 02:09 AM

Quote:

Originally posted by annams
I get can't parse error twice when a new thread is posted and once when a reply is being posted.
Since you were using the test server, webdiscuss.test, I know it has nothing to do with the server accepting it. I checked out your site where your forums are and it returned "X-Powered-By: PHP/4.0.3pl1" and the date format I use requires PHP 4.0.4 or greater to work.

So, either you can try to convince your webhost to upgrade, or you can make the following changes:

Whereever you find:
Code:

date("r",
Replace it with:
Code:

date("D, j M Y H:i:s O",
I'll have that change in the next release.

lifesourcerec 02-27-2002 07:29 AM

Quote:

Originally posted by Gilby


If you are on a unix or linux server and have shell access, you can make a crontab by putting this line:
Code:

5,15,25,35,45,55 * * * * /usr/bin/lynx -source "http://www.yourserver.com/vbdir/gateway.php?log=cron"
in a text file, let's say it's name is crontab.txt, and then type in at the command line:
crontab crontab.txt

That'll set you up with a cron job that'll execute every 10 minutes. You can change the 5,15, etc part to be whatever you want. That corresponds to the minutes of the hours.

Ok. And one more thing. How do I get the posts to show up in a forum? I used different forumid numbers and nothing showed up. But it did list everything in stats (total posts, top poster, etc.). How do you determine the forum if you have sub-forums?

Gilby 02-27-2002 11:59 AM

Quote:

Originally posted by lifesourcerec
Ok. And one more thing. How do I get the posts to show up in a forum? I used different forumid numbers and nothing showed up. But it did list everything in stats (total posts, top poster, etc.). How do you determine the forum if you have sub-forums?
Just go into the forum you want to use for the newsgroup and in the URL, it'll have something like "forumid=3" and this corresponds to forum 3, so put 3 in the forumid column in the database.

ART 02-27-2002 12:35 PM

thanx Gilby for the work!
all went smooth :)

The Realist 02-27-2002 01:07 PM

On running the gateway file the following eror is showing, any clues to solving this:

1 group(s) gatewayed.
Could not connect to NNTP-serverLogging in to news.demon.net, group alt.binaries.satellite-tv,alt.dss
Not connectedNot connected

annams 02-27-2002 02:04 PM

Quote:

Originally posted by Gilby


Whereever you find:
Code:

date("r",
Replace it with:
Code:

date("D, j M Y H:i:s O",
I'll have that change in the next release.

Thanks for the help. That fixed it.

I have one more minor issue:

I have posted few test messages to the test newsgroup at webdiscuss. My message got transmitted properly, but I see the following lines below my actual message:

===
--
Srinivas Annam - Moderator

'$2' ($1)
===

What is the $2 and $1? Is it somehow trying to put my signature on to the usenet? If so, how do I disable it?

Also, transmitting Moderator to the USENET newsgroup is not a good idea in my opinion.

I appreciate very much for this hack!

- Srinivas

annams 02-27-2002 02:33 PM

I have done a bit more testing. Looks like it is not the signatures which is the problem (since quotes is also giving the same issue). It appears like another issue with older PHP.

Could you please take a look at this thread and offer me a fix please:

http://www.unicyclist.com/forums/sho...threadid=16654

PS: Thank you for putting up with my old version of php. I don't have much choice in the PHP version, my ISP (pair.com) does not easily upgrade it. (they go through rigorous evaluation/testing process before upgrading).


All times are GMT. The time now is 09:30 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.01479 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)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