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)

AWS 07-06-2005 10:31 PM

Quote:

Originally Posted by Kadence
Ah, duh?$debug is used when passing ?debug=1 in from the URL ;) Without it the logging() function doesn't work.

So I added the following lines after line 71 in gateway.php:
PHP Code:

$log $vbulletin->GPC['log'];
$debug $vbulletin->GPC['debug']; 

The .zip file in the post above has been updated.

Thanks much. I'll give it a try on my test box.

Gottcha 07-06-2005 11:42 PM

can someone help me here.... i have most of it all installed but the file tries to download...so i went to the ms site and attempted to edit the registry. i found the key and added a new value and got it all up to the point of adding the value data. It wont let me add HEX 0x1. Id really like to install this and get it all working...thanks in advance.

Key: HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings

Value name: IsTextPlainHonored
Value type: DWORD
Value data: HEX 0x1

FIXED IT....WELL ACTUALLY RAN THE FILE ON ANOTHER MACHINE

Kadence 07-07-2005 01:26 AM

OK?I made some more changes :)

There was an issue with form variable names on nntp_groups.php line 278 (original line 256), of the same variety as the print_forum_chooser problem on line 263 (241). This was causing problems with "Add Newsgroup", rather than "Edit"; when trying to add a newsgroup, the forum would be set to 0, rather than the forumid.

Also, I replaced all instances of $vboptions['...'] with $vbulletin->options['...'] and global $vboptions with global $vbulletin in functions_nntp.php. Looks like this affects a lot of attachment stuff.

I have no idea if attachments work now; perhaps someone will test it and share their results :squareeyed:

My earlier post has the updated .zip file.

danrak 07-07-2005 05:59 PM

Would it be possible to use this to share posts between sites? How would it be done?

lierduh 07-10-2005 08:50 AM

Quote:

Originally Posted by Kadence
Tremendous mod :)

Only problem is the speed. I seem to be getting only about 3,500 posts/hour, whereas it takes under a minute to download that number through NNTP on a newsreader. But I suppose that's probably because of the vBulletin database functions taking up a lot of time, rather than the download of articles itself...?

vB indexes all the words in the post contents, that is why it is very fast to search a term from the post. Whereas a normal news reader usually only index the subject. To find a keyword within the post would basically require a full article scan. I believe the indexing takes up most of the time for importing.

To speed up a bit, one can delete the index for 'msgid' in the post table, and reindex that field with a smaller size. It is quite easy to do with myphpadmin. Just set the size of the index to 10 or 15. That might(according to mysql manual) improve some speed.

lierduh 07-10-2005 08:56 AM

Quote:

Originally Posted by Skalek
Yeah I got that all working, but now I have a problem where the script is not following the its own time constraints. From what I understand it is supposed to run no longer than 30 minutes. Also another instance should not run within 30 minutes of the first starting. This makes sense so that you dont have multiple copies running at the same time.

My problem is that gateway.php seems to be running for 2 hours + so that if I cron it multiple instances will occur. Anyone else run into this problem?

I actually mentioned this somewhere, if not in the instruction, it will be somewhere in this thread.

The script tries to check if there is another instance of script running within 30 minutes from the time the last script was run. It will ignore the checking if it is over 30 minutes and considers the last run crashed.

So it is important not to set up the cron job before the completion of the initial import, as the initial importation may take too much time.

krohnathlonman 07-11-2005 03:31 AM

Quote:

Originally Posted by lierduh
vB indexes all the words in the post contents, that is why it is very fast to search a term from the post. Whereas a normal news reader usually only index the subject. To find a keyword within the post would basically require a full article scan. I believe the indexing takes up most of the time for importing.

To speed up a bit, one can delete the index for 'msgid' in the post table, and reindex that field with a smaller size. It is quite easy to do with myphpadmin. Just set the size of the index to 10 or 15. That might(according to mysql manual) improve some speed.

Could you give us some more information on this as well as anything else that can speed the import process up... So far I've just been tossing SCSI drives at it and simply waiting LOL

lierduh 07-11-2005 04:00 AM

Quote:

Originally Posted by krohnathlonman
Could you give us some more information on this as well as anything else that can speed the import process up... So far I've just been tossing SCSI drives at it and simply waiting LOL

To delete the old index:

ALTER TABLE `post` DROP INDEX `msgid`;

and to add a partial index for msgid:

ALTER TABLE `post` ADD INDEX ( `msgid` ( 10 ) ) ;

10 means instead of indexing the whole length of the field (128), we only index the first 10 charactors. This will reduce the size of the index. The full length index is fastest at the time of retrieving, a partial index means the DB engine needs to read more lines at the time of retrieving but needs less work at writing.

To people who needs to import large amount of posts in one go. I think if you disable the index building process at the time of importing, it will speed up a lot. You can then rebuild the index using the AdminCP. Bear in mind, rebuilding the index takes a VERY long time. The total time used to rebuild the index should be less than the time used to import large amount of messages and build the index at the same time. I have not done this, this is only base on the theory that it is very slow to insert records into a fulltext index table, and it is faster to build the fulltext index after all the insertions are done.

If you do not need to search the imported messages, then disabling the index build will surely speed up the import. To do this, just comment out

build_post_index($postid, $foruminfo);

line in the /include/functions_nntp.php

vprp 07-15-2005 07:34 PM

I'm gonna go ahead and test the 3.5 version on my test version. I'll let you all know how things go.

krohnathlonman 07-18-2005 04:51 PM

the 3.5 version works good an does support attachments from the testing I've done....


All times are GMT. The time now is 08:59 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.01913 seconds
  • Memory Usage 1,753KB
  • 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_php_printable
  • (5)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