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)

lierduh 05-13-2004 09:18 PM

Quote:

Originally Posted by himerus
Mine's also not assigning posts to the proper thread after this change. I'm going to look over the code again for another hour or so, and revert to my last version if I can't get it working properly.

Messed up part is, the posting via the vB adminCP scheduled tasks worked after only minimal tweaking of the new script, and I have it tested to successfully post properly. (which was my only problem before)

I think the main problem is coming from the references. They don't seem to be assigning at all anymore.

I think you are not using the "a" version I uploaded not long after the first upload. I posted a message about this.

I did some quick test with vB adminCP schedule tasks, it worked for me. What is the exact problem and what have you need to do to fix?

himerus 05-13-2004 09:22 PM

Okay, that's a relief, so I can update the table, and reset them all to an empty value without fear of messing it up entirely.

I'm still plugging away at a few of the other oddities. I think some of them may also be since I switched the news server I was using on a few of the groups.

Imhotep 05-13-2004 09:32 PM

well, let us know when it's all ready to go. i just got the green light from my host to try the script again. :D

lierduh 05-13-2004 09:39 PM

Looks like some version of MySQL might not support this SQL statement. I will come up with another one to get around.

Could you do a test on your server. Just run this SQL manually:
=======================================
UPDATE post, thread SET post.isusenetpost = 1 WHERE
post.threadid = thread.threadid AND
post.isusenetpost = 0 AND
thread.forumid NOT IN (25,27,29,34)
=======================================

Quote:

Originally Posted by allan grossman
Got a little trouble here too, lierduh :)
Code:

Database error in vBulletin 3.0.1:

Invalid SQL: UPDATE post AS post, thread AS thread SET isusenetpost = 1 WHERE
        post.threadid = thread.threadid AND
        isusenetpost = 0 AND
        thread.forumid NOT IN (25,27,29,34)
mysql error: You have an error in your SQL syntax near 'AS post, thread AS thread SET isusenetpost = 1 WHERE
        post.threadid = thread.th' at line 1

mysql error number: 1064

Date: Thursday 13th of May 2004 04:24:04 PM

Any thoughts?


hubba 05-13-2004 09:39 PM

>update the table, and reset them all to an empty

How? Alter table thread set.... ???

lierduh 05-13-2004 09:45 PM

Quote:

Originally Posted by hubba
>update the table, and reset them all to an empty

How? Alter table thread set.... ???

UPDATE thread SET msgid = '';

hubba 05-13-2004 09:47 PM

Thx!

lierduh 05-13-2004 11:05 PM

New version release:

**Build X-No-Archive header honouring system
**Improved speed
**Bug fixes
**Verbose output when run manually. Easier to find problem when interating with NNTP server.

change the honor_no-archive record from 0 to 1 to stop importing messages with X-No-Archive header, just as Google Group does.

Download it from:

https://vborg.vbsupport.ru/showpost....&postcount=658

allan grossman 05-14-2004 12:04 AM

Output from the manual query -

==========

Error

SQL-query :

UPDATE post,
thread SETpost.isusenetpost = 1 WHERE post.threadid = thread.threadid AND post.isusenetpost = 0 AND thread.forumid NOT IN ( 25, 27, 29, 34 )

MySQL said:

You have an error in your SQL syntax near ' thread SET post.isusenetpost = 1 WHERE post.threadid = thread.threadid AND post' at line 1

==========

MySQL version is 3.23

Imhotep 05-14-2004 12:24 AM

installed registry patch from M$, ran setlastmsg.php and got...

Quote:

1 group(s) gatewayed.
<br />
<b>Fatal error</b>: Call to undefined function: logging() in <b>/nfs/home/cghaus2/public_html/forums/nntp.php</b> on line <b>77</b><br />

hubba 05-14-2004 12:28 AM

for me it works just fine... just a question for the crontab: Has to be a Carriage Return at the ent of the line in the crontab.txt?

Edit: Ist has :rolleyes:

lierduh 05-14-2004 12:52 AM

Thanks. Looks like that SQL only works with MySQL 4.

Please download the new version. I have got rid of this section of code altogether.



Quote:

Originally Posted by allan grossman
Output from the manual query -

==========

Error

SQL-query :

UPDATE post,
thread SETpost.isusenetpost = 1 WHERE post.threadid = thread.threadid AND post.isusenetpost = 0 AND thread.forumid NOT IN ( 25, 27, 29, 34 )

MySQL said:


You have an error in your SQL syntax near ' thread SET post.isusenetpost = 1 WHERE post.threadid = thread.threadid AND post' at line 1

==========

MySQL version is 3.23


lierduh 05-14-2004 01:17 AM

Quote:

Originally Posted by Imhotep
installed registry patch from M$, ran setlastmsg.php and got...

Use this modified one. Delete this file after installation!

Imhotep 05-14-2004 06:34 PM

thank you sir! that new file did the trick.

I have a new error now. lol :)

Code:

Database error in vBulletin 3.0.1:

Invalid SQL: UPDATE post
SET attach=attache + 1 WHERE postid=25711
mysql error: Unknown column 'attache' in 'field list'

mysql error number: 1054

Date: Friday 14th of May 2004 12:20:03 PM
Script: http://
Referer:
Username: Unregistered
IP Address:


I'm getting this once per hour as my crontab runs.

hmmm... :ermm:

allan grossman 05-14-2004 08:42 PM

Quote:

Originally Posted by lierduh
Thanks. Looks like that SQL only works with MySQL 4.

Please download the new version. I have got rid of this section of code altogether.

That worked. Everything's going swimmingly now, lierduh - thanks :)

allan grossman 05-14-2004 08:48 PM

lierduh, there's a typo in your SQL query for the upgrade from May 12 script - the two-line query at the bottom of the post -

"hohor_no-archive" should read "honor_no-archive"

I fixed my database but others might not have seen it.

cheers -

allan

Imhotep 05-14-2004 11:16 PM

I think we should start another thread... lol

Any thoughts on this new error?

Quote:

Database error in vBulletin 3.0.1:

Invalid SQL: UPDATE post
SET attach=attache + 1 WHERE postid=25715 mysql error: Unknown column 'attache' in 'field list'

mysql error number: 1054

Date: Friday 14th of May 2004 04:20:11 PM
Script: http://
Referer:
Username: Unregistered
IP Address
PHP version 4.3.3

Running latest files posted.

allan grossman 05-14-2004 11:34 PM

Quote:

Originally Posted by Imhotep
I think we should start another thread... lol

Any thoughts on this new error?



PHP version 4.3.3

Running latest files posted.

Change line 353 in gateway.php

from

SET attach=attache + 1 WHERE postid=$postid");

to

SET attach=attach + 1 WHERE postid=$postid");

lierduh 05-15-2004 12:23 AM

Thanks Allan.

I will upload the file with the typos corrected shortly.

I have received permission from Gilby allowing me to release this hack under the vB3 section of the forums. So I will create a thread there in the next one or two days. That should make the support easier.

allan grossman 05-15-2004 12:35 AM

Quote:

Originally Posted by lierduh
Thanks Allan.

I will upload the file with the typos corrected shortly.

I have received permission from Gilby allowing me to release this hack under the vB3 section of the forums. So I will create a thread there in the next one or two days. That should make the support easier.

No - thank you, lierduh - you've really gone above and beyond.

cheers -

allan

hubba 05-15-2004 12:38 AM

Also thx from me, you make a very good job.

Imhotep 05-15-2004 02:30 PM

Thanks to both lierduh and allan grossman... I should have fingered out that error.

thanks

lierduh 05-15-2004 03:07 PM

New release and new thread. I have released the gateway to the vB3 section of the forums. Thank you very much Gilby for allowing me to do so. Please post to the new thread for support and questions.

https://vborg.vbsupport.ru/showthread.php?t=65152

If you feel I have been in a little hurry, that is because I have more time on the weekend to do something.:)

Bro_Joey_Gowdy 06-24-2004 01:58 PM

Thanks, downloaded and installed


Quote:

Originally Posted by lierduh
New release and new thread. I have released the gateway to the vB3 section of the forums. Thank you very much Gilby for allowing me to do so. Please post to the new thread for support and questions.

https://vborg.vbsupport.ru/showthread.php?t=65152

If you feel I have been in a little hurry, that is because I have more time on the weekend to do something.:)


memobug 07-27-2004 04:46 AM

Quote:

Originally Posted by Sportbikeworld
We use news ranger http://www.newsranger.com and they work great!

I also used Newsranger for the past 4 months. Recently I learned that the Newsranger.com is going to close at the end of this month, so I need to change services. Is there anything out there that is comparable? That is known to work with this hack? Newsranger was around $5 a month for a minimal account, which met my needs Newsranger used recurring paypal billing.

I really need read & write access to only one newsgroup - rec.arts.bonsai, and no binaries required.

Thanks for your suggestions!

Matt

Regards,

Matt

limey 07-27-2004 01:40 PM

Yep I recently had to switch from Newsranger because they just cut me off suddenly, going out of business.

NewsGuy looked ok for me. No paypal recurring though.

NietzscheKid 08-07-2004 02:07 AM

Thank you for the quick response. :)

I tried your example server (microsoft that you gave as an example). With that one it works.

However, I am trying to get this one to work but with no luck. It seems that my settings are correct though. It is a google one:

Newsgroup name: alt.music.pearl-jam
Server name: groups.google.com

That doesn't work though.

Is there something I did wrong? I know that these are stupid questions but I think I have done everything correct as the example server you mentioned in your readme file worked perfectly.

Thanks

mpascal 07-15-2005 11:01 PM

What SQL modifications does the NNTP hack do ?
I got the following error:
Quote:

nvalid SQL:
SELECT post.*, thread.*,
post.dateline AS postdateline, post.msgid AS postmsgid,
thread.title AS threadtitle, post.visible AS postvisible,
thread.visible AS threadvisible
FROM vb_post as post LEFT JOIN vb_thread as thread
ON (thread.threadid = post.threadid
AND post.userid = thread.postuserid
AND post.postid = thread.firstpostid)
WHERE post.isusenetpost = 0
AND post.postid > 49509
AND thread.forumid = 32

mysql error: Unknown column 'post.msgid' in 'field list'

mysql error number: 1054

Date: Friday 15th of July 2005 03:43:34 PM
I have a field postid but I don't have a field msgid.


All times are GMT. The time now is 01:36 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.02228 seconds
  • Memory Usage 1,809KB
  • 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
  • (2)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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