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)

lierduh 10-30-2004 02:09 AM

Quote:

Originally Posted by Marv
You?re funny, lierduh - don?t you think I?ve already tried this before ;)
Since my first installation of your hack the param `gateway.php` isn?t working for me. With this I only receive a blank page in admincp and gateway.php is doing nothing. Wether importing nor exporting.

I used gateway.php in my limited test. It does not give errors. It is possible the error you received was caused by the php running as cgi. 'gateway.php?debug=1' will definitely fail by the way.

Using "http://www.myforums.com/forum/gateway.php" as the file name in the cronCP will fail on most servers unless 'allow_url_fopen' is turned on in php.ini. Even that, different versions of php will behave differently.

Since the lastest version sends the debug message through email (set $do_cron_log = 1). I would like to see someone with this problem post some debug messages.

If possible, the Unix cronjob is the preferred way to run the script. I think some ISP provides cron job through the ISP's control panel if you can not access to the shell. Because I do not use the vB3 cron, the test done on them is very limited. Also the vB3 cron has been designed to run some simple scheduled tasks. It was never designed to run complicated tasks as gateway.php.

SaN-DeeP 11-06-2004 09:40 AM

HI lierduh,
so far i appreciate the time and work you have devoted for this hack :) and it works perfectly fine now.
i need to ignore posts from this newgroups forums to get added to the global (total no. of threads and posts on my forums home - whats going on box

how can i acheive this ?

Regards,

AWS 11-06-2004 01:06 PM

Quote:

Originally Posted by SaN-DeeP
HI lierduh,
so far i appreciate the time and work you have devoted for this hack :) and it works perfectly fine now.
i need to ignore posts from this newgroups forums to get added to the global (total no. of threads and posts on my forums home - whats going on box

how can i acheive this ?

Regards,

<off-topic>
San Deep,
Sorry I missed you when you tried to IM me. You messaged me whenever I was idle and when I was going to reply you were offline.
</off-topic>

lierduh 11-07-2004 01:13 AM

Quote:

Originally Posted by SaN-DeeP
HI lierduh,
so far i appreciate the time and work you have devoted for this hack :) and it works perfectly fine now.
i need to ignore posts from this newgroups forums to get added to the global (total no. of threads and posts on my forums home - whats going on box

how can i acheive this ?

Regards,

I have not looked into this. I believe someone has mentioned about a hack to do this, most likely in this thread.

esfron 11-07-2004 03:12 PM

I tryied to get running cronjob from Cpanel but I can't get it working.

Crontab with GET /home3/blalbla/public_html/forum/gateway.php

Any idea ?

-
edit: fixed

we_are_borg 11-07-2004 10:27 PM

I run this script for some time now but i have one aquestion to the programmer. Is it posible with the passwords not to show the real one but as it should ***** as replacements. This is far beter then others can also use that section to add there newsserver.

lierduh 11-08-2004 12:19 AM

Quote:

Originally Posted by we_are_borg
I run this script for some time now but i have one aquestion to the programmer. Is it posible with the passwords not to show the real one but as it should ***** as replacements. This is far beter then others can also use that section to add there newsserver.

Use the attached file.

Torqued 11-08-2004 01:15 AM

awesome! I'm not using it for newsgroups, but have it working just fine w/ mailing lists.

*clicks install*

SaN-DeeP 11-08-2004 09:34 PM

Quote:

Originally Posted by Qwest
Everyone I found out how to make the posts not count towards your total board post counts.

Note: this hack is totally the work of Wayne Luke. I'm just copy/pasting


Quote:

Quote:
Originally Posted by Wayne Luke
Should be easy...

Add a smallint field on the database record such as "is_usenet" and set it to '1' for the forums that are.

Then in index.php find the following code (it is near the bottom):
PHP Code:
if (is_array($forumcache))
{
foreach (
$forumcache AS $forum)
{
$totalthreads += $forum['threadcount'];
$totalposts += $forum['replycount'];
}
}




And change it to:
PHP Code:
if (is_array($forumcache))
{
foreach (
$forumcache AS $forum)
{
if (!
$forum['is_usenet']) {
$totalthreads += $forum['threadcount'];
$totalposts += $forum['replycount'];
}
}
}





My only addition is that you have to go into your AdminCP and update post counts for the changes to take affect. Try running gateway.php as well.

i found the solution in this HUGE thread finally :)
But now, need to know a little more details on implemeting the same ?

How do i proceed, what field needs to be added into db which table ? how to add forums id there etc. etc

Looking for help

Regards,

esfron 11-09-2004 07:34 AM

Default Footer set to: default_footer
organization_check 0
nofooter 1
nosignature 0

All is working fine except signature and moderating queue.

1) Signature
Thread and profile links are working fine in outgoing posts. Signatures are showing in http forum but they aren't exported in outgoing messages. Signatures are showing usenames instead the real signature i.e. if username is esfron. signature display is:
-------
esfron

2) Moderation
I have both threads and posts moderation enabled in a usenet forum but usenet posts are going directly to the forum instead of the moderatong queue. They aren't held back.

Any idea ?

Michael2 11-09-2004 08:03 AM

Seems to be working ok but posts aren't being exported. I have vBulletin set up to run the task every 15 minutes. I just made a post and this is what I get when I run it manually...

Quote:

Gateway version 2.3.2 1 group(s) gatewayed.

Connecting to server, server says: 200 News.GigaNews.Com

Server responded after user name: 381 more authentication required

Server responded after password: 281 News.GigaNews.Com

Info for rec.food.veg.cooking at news.giganews.com: 211 896 28612 29507 rec.food.veg.cooking

Can we post? server responded: 340 send article
Posting Message 'Re: How to make Rice krispes' from Michael. Result: 240 post accepted.

The part in bold, that means my post was sent to (and received) by the newsgroup right? It's a moderated newsgroup so I can't just check to see if it made it.

Does this mean I need to set this up as a cron job? I've never set one up. If that's what I need to do can someone help me through it?

James T Brock 11-09-2004 08:27 AM

Quote:

The part in bold, that means my post was sent to (and received) by the newsgroup right?
Yes.

Michael2 11-09-2004 12:52 PM

Ok, I *think* I have this set up right (I want it to run once per hour). Like I said I've never set up a cron job so if someone could take a look and tell me if it looks right I'd appreciate it. :)

AWS 11-09-2004 09:57 PM

Quote:

Originally Posted by Michael2
Ok, I *think* I have this set up right (I want it to run once per hour). Like I said I've never set up a cron job so if someone could take a look and tell me if it looks right I'd appreciate it. :)

The command should be.
Code:

php -q /path/to/gateway.php

lierduh 11-10-2004 08:01 PM

Quote:

Originally Posted by esfron
Default Footer set to: default_footer
organization_check 0
nofooter 1
nosignature 0

All is working fine except signature and moderating queue.

1) Signature
Thread and profile links are working fine in outgoing posts. Signatures are showing in http forum but they aren't exported in outgoing messages. Signatures are showing usenames instead the real signature i.e. if username is esfron. signature display is:
-------
esfron

2) Moderation
I have both threads and posts moderation enabled in a usenet forum but usenet posts are going directly to the forum instead of the moderatong queue. They aren't held back.

Any idea ?

1). Your profile links should not show since you have "nofooter 1"
Make sure when you post, "Show your signature" is checked. No matter what settings you have. Your user name will always be appended.

2). Your forums set up is wrong somewhere. If local posts show up in moderated forums, then it is nothing to do with the script.

The Prince 11-11-2004 09:36 PM

Hi lierduh,

I'm having the same problems. Posts are being sent no problem. Footer is sent no problem. Username sent too. But signatures only appear in local forum and are not sent in usenet. And the signature box before posting is selected.

Signature: XXXXXXXXXXXXX

NNTP Settings:

nosignature = 0
nofooter = 1
default_footer = http://www.mywebsite.com
send_message = 1

Result in usenet:

--
The Prince

http://www.mywebsite.com


Also, you modified the email sent to usenet, is it still possible to have the emails sent the old way?

ThePrince.1dnp9z@mywebsite.com


thanks!

Torqued 11-11-2004 11:49 PM

Quote:

Originally Posted by AWS
The command should be.
Code:

php -q /path/to/gateway.php

I'm still not able to get the cron stuff sorted. :(

I've tried:

/usr/local/bin/php /home/<username>/public_html/forums/gateway.php

and

php -q /home/<username>/public_html/forums/gateway.php

I should be able to run these from the commandline and have it execute, no?

When I run it w/ the php -q command @ the commandline it spits out html code to the screen, I get emailed this error:

Quote:

Database error in vBulletin :

Link-ID == false, connect failed
mysql error:

mysql error number: 0

Date: Thursday 11th of November 2004 07:42:55 PM
Script: http://./gateway.php
Referer:
IP Address:
Can anyone help me get the cron stuff sorted? :(

AWS 11-11-2004 11:54 PM

Quote:

Originally Posted by Torqued
I'm still not able to get the cron stuff sorted. :(

I've tried:

/usr/local/bin/php /home/<username>/public_html/forums/gateway.php

and

php -q /home/<username>/public_html/forums/gateway.php

I should be able to run these from the commandline and have it execute, no?

When I run it w/ the php -q command @ the commandline it spits out html code to the screen, I get emailed this error:



Can anyone help me get the cron stuff sorted? :(

The error you're getting is because the script can't connect to mysql. The script did run so you have another problem.

Torqued 11-12-2004 12:47 AM

Quote:

Originally Posted by AWS
The error you're getting is because the script can't connect to mysql. The script did run so you have another problem.

Any ideas? Becuase I can run it if I run http://www.mydomain.com/forums/gateway.php and it runs correctly.

I can also run it via a Scheduled vB Task, but would rather have it as a cron job.

jarvis 11-12-2004 01:18 AM

Okay, so I've been trying to read all 44 pages. :)

I used this hack in vb2 for a while, but then stopped using it because the "Find New Posts" became very bothersome for users when there were 1000's of new usenet posts showing in their search.

It looks as if some have found a way around this? I'd love to install this again and open up Usenet for my users.

Thanks much in advance!!

Torqued 11-12-2004 11:56 AM

I thought maybe I screwed up something on the install, so I reinstalled.

"which php" shows my php path to be:

/usr/local/bin/php

When I try to run the gateway.php via cron w/ the command of:

/usr/local/bin/php /home/<username>/public_html/forums/gateway.php

I get the following error message:

"nntp.php and mime.php files need to be in the './includes/' directory"

The nntp.php and mime.php files are in the ./includes directory. My gateway.php is in my /forums directory.

I can get it to run via the vB task scheduler. Are there any advantages/disadvantages w/ vB Task Scheduler vs cron? Does it matter?

trackpads 11-12-2004 12:20 PM

Quote:

Originally Posted by AWS
The command should be.
Code:

php -q /path/to/gateway.php

On my server for some reason I could never run a php script in the cron. What I use is this, maybe it can help you:


Code:

lynx -dump http://www.trackpads.com/forum/gateway.php

jcrash 11-12-2004 03:23 PM

Two questions:

#1) Has anyone noticed an increase in the number of threads not being found and instead having new threads created? Im getting a LOT of these. It started prior to my install of the latest scripts and seems to be continuing

#2) I installed the latest scripts and it seems to run slower. Anyone notice that?

ryee 11-13-2004 02:24 PM

First of all, great job and I appreciate all of the work that has gone into this hack.
When I run the gateway.php, I get the following:
<snip>
Gateway version 2.3.2 2 group(s) gatewayed.
Could not connect to NNTP-server. (Connection timed out (110))

Not connected
Not connected
Could not connect to NNTP-server. (Connection timed out (110))

Not connected
Not connected

</snip>

I checked with my hosting provider and port 119 is being blocked for outgoing and incoming traffic. The output seems to validate that fact. I read on some other posts about using another port. How can I configure the newsreader to use a port other than 119 to connect to the new server. I'm not sure if my news hosting provider (newsgroups.com even supports ports other than 119.

Thanks,

Torqued 11-14-2004 03:41 PM

Quote:

Originally Posted by trackpads
On my server for some reason I could never run a php script in the cron. What I use is this, maybe it can help you:


Code:

lynx -dump http://www.trackpads.com/forum/gateway.php

crap. my host has wget and lynx disabled right now..

Anyone else out there that has had problems w/ getting the cron working but finally figured it out?

lierduh 11-14-2004 10:55 PM

Quote:

Originally Posted by ryee
I checked with my hosting provider and port 119 is being blocked for outgoing and incoming traffic. The output seems to validate that fact. I read on some other posts about using another port. How can I configure the newsreader to use a port other than 119 to connect to the new server. I'm not sure if my news hosting provider (newsgroups.com even supports ports other than 119.

Thanks,

Some commercial provider let you access the NNTP server via port 80 for instance. All you need to do is search for 119 in the gateway.php file, and replace it with 80.

lierduh 11-14-2004 10:56 PM

Quote:

Originally Posted by jarvis
Okay, so I've been trying to read all 44 pages. :)

I used this hack in vb2 for a while, but then stopped using it because the "Find New Posts" became very bothersome for users when there were 1000's of new usenet posts showing in their search.

It looks as if some have found a way around this? I'd love to install this again and open up Usenet for my users.

Thanks much in advance!!

See the end of the readme file.

Neobud 11-15-2004 06:36 PM

Hello all. I'm a new user and think this hack is completely awesome. Been running the Usenet component for a few days for testing without dramas. For those on a Windows platform who lack the functionality offered by Cron (and are not happy with Win Task Scheduler), I have been using nnCron and can recommend it for achieving the same.

lierduh 11-15-2004 11:11 PM

Quote:

Originally Posted by Neobud
I've done a number of searches and failed to find an answer to my question... I can't get the Mail List component to work. I was hoping somebody could confirm the correct configuration in pop.php (copied below). Is there any other code that needs to be modified?

There is no need to edit php files. Just follow the readme file to setup.

Beermonster 11-16-2004 11:42 AM

How would I stop this increasing the forum post count?

ryee 11-17-2004 01:47 AM

Can anyone recommend a NNTP provider that provides NNTP access over port 80? I need to use port 80 for my gateway.php because my hosting provider blocks all traffic on port 119.

Thanks.

James T Brock 11-17-2004 01:53 AM

I *think* giganews.com allows traffic over port 80. Someone else in this thread said so. You can sign up with them for a 3-day trail before they will charge you.

Stephan Whelan 11-17-2004 08:47 AM

Guys,

I'm having a small issue. When a user posts to our usenet forum it gets posted to the relevant Newsgroup, however during the next import run means the posted message gets imported as a seperate post on the thread. I suspect it isn't supposed to work that way.

Any ideas?

jcrash 11-17-2004 05:32 PM

Anyone else having problems with imported posts not getting added to the original thread and instead creating a NEW thread with the exact same title? This is getting to be a real bother.

lierduh 11-20-2004 08:20 AM

Quote:

Originally Posted by Stephan Whelan
Guys,

I'm having a small issue. When a user posts to our usenet forum it gets posted to the relevant Newsgroup, however during the next import run means the posted message gets imported as a seperate post on the thread. I suspect it isn't supposed to work that way.

Any ideas?

If you go through the settings, you will find the answer.

The Prince 11-20-2004 12:16 PM

Hi lierduh PLEASE HELP,

I'm having signature problems. Posts are being sent no problem. Footer is sent no problem. Username sent too. But signatures only appear in local forum and are not sent in usenet. And the signature box before posting is selected.

Signature: XXXXXXXXXXXXX

NNTP Settings:

nosignature = 0
nofooter = 1
default_footer = http://www.mywebsite.com
send_message = 1

Result in usenet:

--
The Prince

http://www.mywebsite.com


Also, you modified the email sent to usenet, is it still possible to have the emails sent the old way?

ThePrince.1dnp9z@mywebsite.com

Finally, is it possible to strip the footer of a message? The reason I'm asking is that in the newgroup I'm using there are many similar footers used by other websites, and I'd like to prevent my users from seeing the link of a competitor. I'd like for these footer not to show. (it says in the settings that the killfiles are not set to work with usenet)


thanks!

lierduh 11-21-2004 01:58 AM

Quote:

Originally Posted by The Prince
Hi lierduh PLEASE HELP,

I'm having signature problems. Posts are being sent no problem. Footer is sent no problem. Username sent too. But signatures only appear in local forum and are not sent in usenet. And the signature box before posting is selected.

In file functions_nntp.php

Around line 340. Replace the block of the code with the following:

PHP Code:

                $userinfo $DB_site->query_first("
                        SELECT email, signature, usertitle, customtitle                   
                        FROM " 
TABLE_PREFIX "user AS user
                        LEFT JOIN " 
TABLE_PREFIX "usertextfield AS usertextfield
                        ON user.userid = usertextfield.userid
                        WHERE user.userid = 
$newthread[userid]
                "
); 

Quote:

Also, you modified the email sent to usenet, is it still possible to have the emails sent the old way?

ThePrince.1dnp9z@mywebsite.com

Finally, is it possible to strip the footer of a message? The reason I'm asking is that in the newgroup I'm using there are many similar footers used by other websites, and I'd like to prevent my users from seeing the link of a competitor. I'd like for these footer not to show. (it says in the settings that the killfiles are not set to work with usenet)

thanks!
Leave the email as default (empty), then it will behavour the same way as before.

I think someone posted a modification about the chopping of footer for the usenet in this thread somewhere.

mcncyo 11-21-2004 11:25 PM

last couple of days i am gettting this error

[quote]
Invalid SQL: UPDATE forum
SET replycount = replycount + 1,
threadcount = threadcount + 1,
lastpost = '1101084923',
lastposter = 'Alexandr B.',
lastthread = 'tet',
lastthreadid = 10889
WHERE forumid IN ()

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 8

mysql error number: 1064

Date: Sunday 21st of November 2004 06:56:01 PM
Script: http://forum.*.com/gateway.php
Referer:
Username: Unregistered
IP Address: **.**.***.**

James T Brock 11-22-2004 03:41 PM

How do I change the blue font color on the usenet quotes to a different color? Im using a black background, and it's kind of dark. What file do I have to edit in-order to change it?

SaN-DeeP 11-24-2004 03:40 PM

oops suddenly stopped receiving/sending usenet posts to/from my forum

I am assuming this is a problem from server end related to port 119, i tried confirming the same with provider he says nothing has been changed.

Any one can confirm what is happening ? I have scheduled this task to run every hour in my task manager of vbulletin.. Here is the log according to same :

Code:

  10246 Gateway Messages Import 22:29, 24th Nov 2004 Ran NNTP Gateway
Gateway version 2.3.2 10 group(s) gatewayed.
Could not connect to NNTP-server. (Connection timed out (110))
Not connected
Not connected
Could not connect to NNTP-server. (Connection timed out (110))
Not connected
Not connected
Could not connect to NNTP-server. (Connection timed out (110))
Not connected
Not connected
Could not connect to NNTP-server. (Connection timed out (110))
Not connected
Not connected
Could not connect to NNTP-server. (Connection timed out (110))
Not connected
Not connected
Could not connect to NNTP-server. (Connection timed out (110))
Not connected
Not connected
Could not connect to NNTP-server. (Connection timed out (110))
Not connected
Not connected
Could not connect to NNTP-server. (Connection timed out (110))
Not connected
Not connected
Could not connect to NNTP-server. (Connection timed out (110))
Not connected
Not connected
Could not connect to NNTP-server. (Connection timed out (110))
Not connected
Not connected

Please let me know what would be wrong ? It was running fine since months then suddenly since 2 days getting those messages.

Regards,


All times are GMT. The time now is 02:46 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.03606 seconds
  • Memory Usage 1,880KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (22)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