Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-21-2001 Last Update: Never Installs: 3
 
No support by the author.

THIS THREAD IS CLOSED!
Posts in here will NOT be answered

This hack has undergone many major changes since this thread was started. Consequently, most of the posts have become dated and of little use. To coincide with the latest major release (20010712), a new one has been started.

See this thread for the latest version and discussion

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 02-14-2001, 02:14 AM
Guest
 
Posts: n/a
Default

Yeah newsfeeds.com definately works. I tested it with that.

Well as you can see, the messages are being inserted into the thread table correctly but the threadid is not being returned by the mysql_insertid function. I'm not sure why this is happening. Maybe it's something to do with your mysql setup, I have no idea. But if it happened to you, it will probably happen for others.

I have added another function in there that checks if the threadid is null and if it is, look it up again using the message id. So it will try to use the mysl_insert_id first and if that fails, it will find it itself.

Try that and see what happens. In the meantime I'm going to see what information I can find out about this function at mysql.com.
  #83  
Old 02-14-2001, 02:34 AM
Guest
 
Posts: n/a
Default

Hey, it looks like THAT WORKED!!!!!

Can ya believe it?!?!??!

Kind of a weird thing happened on the first import...the forums showed 'xx threads and xx posts', but if you clicked on the forum, the display was empty. Running the script the second time seemed to work!!!!!!!!!!

I'm going to play around a bit more just to make sure, but thank you!!!!! I'll let you know how it goes tomorrow.
  #84  
Old 02-14-2001, 11:29 AM
Guest
 
Posts: n/a
Default

Here was another one this morning...I've added a total of 8 newsgroups. The first few are processed fine, but this one keeps bombing out:

Fetching article body 48392... OK
Processing article batch...
Requested 44 messages... 0 not available or rejected.

DBD::mysql::db do failed: You have an error in your SQL syntax near ')' at line
1 at ./newnews.pl line 444.
Query failed (INSERT INTO usenet_ref (msgid,ref,cnt,dtm) VALUES ('<09020102.3649
@hotmail.com>','(none)',0+1,)) at ./newnews.pl line 444.

???? Looks like a new one.

One the plus side, my posts make it to the newsgroups just fine!
  #85  
Old 02-14-2001, 01:00 PM
Guest
 
Posts: n/a
Default

You seem to be hitting all those unusual situations that should never happen! This problem is due the xhdr function not being able to determine the date from the message header. I have added a fix for this.

The other thing you uncovered was the '(none)' in the refs column. This means the message had no references and is a thread starter so there is no need to put it in the refs table as it is already in the thread table. It wasn't doing any harm but it was wasting space.

regards
PAJ
--
the latest version of this hack is always in the post of this thread
  #86  
Old 02-14-2001, 01:31 PM
Guest
 
Posts: n/a
Default

Just call me troublemaker

I guess it's good and bad. Helps make your hack compatible with more systems, bad in the fact that I've put you through a bunch of hassle over the past couple of days.

I've installed a second test copy of vbulletin that I'm testing this hack with, and have previewed it to the other forum moderators on our site. They are impressed! Once we get the bugs worked out, it'll be great to roll this out to our users (many of which know nothing about newsgroups!)

I'll give the changes a whirl, and let you know how it goes.

Thanks again for your speedy reply!
  #87  
Old 02-14-2001, 01:42 PM
Guest
 
Posts: n/a
Default

When I run the script now, it stops after pulling the first group as follows:

Connecting to News.newsfeeds.com... Connected
Sending authentication info... Authenticated and logged in
Getting article batch from alt.test
Fetching headers of articles 849566 to 849665... done

It doesn't try to parse the articles. I don't think it's traffic related, as this happens each time I try it. I have to control-c to abort the script.

Sorry to be a pain...
  #88  
Old 02-14-2001, 01:52 PM
Guest
 
Posts: n/a
Default

I've seen this problem occasionally. It has to do with strange characters in the NNTPFrom header field. Once the batch is downloaded part of the processing is to parse this 'from' header to extract the email and real name. If there is something it doesn't like in here it can take forever to process. I've seen it take 10 minutes before. It does come back eventually though. This is very rare but I will try to determine exactly which characters it has trouble with.

Which newsgroup is it stopping on. I'll try the same one for testing. Try just letting it run for a while to see if it frees up.

regards
  #89  
Old 02-14-2001, 02:14 PM
Guest
 
Posts: n/a
Default

It's hanging on alt.test I bumped the article number up in the table to bypass the message, and it got much further along (I think it got to the 5th newsgroup), then bombed again:

DBD::mysql::db do failed: You have an error in your SQL syntax near ''wow $10 fo
r each referals and get paid for reading emails make money','skidrow' at line 1
at ./newnews.pl line 448.
Query failed (INSERT IGNORE INTO usenet_article (newsgroup,forum,msgid,dtm,subje
ct,poster,email,refs,body,msgnum,nntpposter,ord,th readid,postid) VALUES ('alt.fi
shing.catfish',8,'<09020102.3650@hotmail.com>',,'w ow $10 for each referals and
get paid for reading emails make money','skidrow1','skidrow1@hotmail.com','(none
)','hay guys check this out this is so cool u can make so much money just by ref
erals and reading emails its owsome its easy money very easy money all u have to
do is take out 5 mins daily and start makeing money \n\n\nhttp://www.inboxcash.
com/$10/referral.asp?id=521016',6731,'skidrow1@hotmail.com ',0+1,0,0)) at ./newn
ews.pl line 448.
  #90  
Old 02-14-2001, 02:18 PM
Guest
 
Posts: n/a
Default

Once again, got around this by bumping up the article number in the table. Clearly there is a character problem somewhere that the script doesn't like.
  #91  
Old 02-14-2001, 02:28 PM
Guest
 
Posts: n/a
Default

That SQL error is caused by not finding the date in the header again. There are two possible places for the date in the header, one is the 'Date' field and the other is the 'NNTPPostingDate'. Which ones it fills in is dependent on the news server and the posting client.

When I was using newsfeeds.com to test this script I was parsing the header myself to find any one of these. However, I rewrote that part to use the xhdr function as it's more reliable. Since the the rewite I haven't tested it on newsfeeds as I no longer have an account there. So it seems that newsfeeds is not consistent in which header field is used for the date.

I will add more logic to try date first (the client posting date), then if that's not there, use the NNTPpostingDate (the server date).

I'll have the fix done in an hour or so.
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04753 seconds
  • Memory Usage 2,278KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete