The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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
|
Comments |
#602
|
|||
|
|||
Hmmm.. this sounds like a tricky one
If you are getting the headers correctly, then we know it's talking to the INN server correctly and understands how to retrieve header information by message number. The next thing the script does is to run those headers through the spam filter and if it decides it's an article we want, it requests the body from the news server using the message number and the 'body()' method from perl NNTP module. Assuming you have no replacements set, this must be the bit that is failing to retrieve the article from the server. Why it's failing, I have no idea. Have you got another news server you can try. That way you can determine if it's an INN specific thing. You might want to make sure you have the latest NNTP module from CPAN aswell. |
#603
|
|||
|
|||
Quote:
Thats not a major problem though. I was simply wondering if anyone had bumped into this one before.. I'm going to hack some debugging into your code and see what it *thinks* it's inserting into the DB =). A look at the database would probably be helpful, too. BTW, have you thought about using a newsfeed instead of a poll method to populate the database? I wrote a perl script (still have it if you want it) that plugged into an INN server and pushed postings into a mysql database. It's spawned by INN when it starts, and INN pushes it an id of every message that INN gets sent (whether by an external feed, or a client) and then the script uses an INN supplied command to turn that id into a path to the physical location of the posting. The script reads it into an NNTP::Article structure and gets all the headers/body and dumps it into relevant fields in a MySQL database. It's a bit broken atm, no checking for SQL statements in the body/headers etc but it works. I was originally going to turn it into a vB clone, but then I found your hack. Much nicer to get vB to do all the hard work thats already been done, eh? |
#604
|
|||
|
|||
Quote:
|
#605
|
|||
|
|||
Quote:
I hope you find it useful. I notice that you don't use News::Article for parsing of the articles? You'd probably find you would have better luck using that to handle all the character set issues and to avoid using home-grown regex's. I'm sure it uses regex's internally (not bothered to look) but why reinvent the wheel, eh? How do Supernews feel about you polling their servers every 30 minutes? |
#606
|
|||
|
|||
Hrm...
The postings are definately in the database, and your newnews.pl is definately pulling out the body fine, its just that vB is not displaying it at all. Very strange Feh. Do you know if there is any debugging I can turn on in vB that will show extended information about the postings when viewing threads? its almost as if the posting isn't being associated with the thread properly. In fact I described my problem incorrectly. The threads are being created but individual posts are not showing up in the threads - it's not the body of the message at all - Doh... |
#607
|
|||
|
|||
For some reason newnews.pl isn't assigning a threadid to any of the posts that it inserts into the DB. More investigation needed I think =)
|
#608
|
|||
|
|||
Quote:
|
#609
|
||||
|
||||
Here's is a news server that I found.
ccnews.thu.edu.tw Joey |
#610
|
|||
|
|||
Quote:
Msql-Mysql-modules-1.2216 perl 5.6.1 those are the latest afaics What versions are you using to develop with? |
#611
|
|||
|
|||
Quote:
The problem you are seeing is due to something not handling the mysql_insertid() function. Others had the same problem and solved it by upgrading their modules. Perhaps it's a MySQL issue. I'm not sure as I have never encountered the problem. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|