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
  #442  
Old 05-25-2001, 04:12 AM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm assuming it's not happening on all posts right?

My guess is that for whatever reason, it couldn't find the date in the article header. Before the nntppostingdate column was introduced the script used to put the date straight into the dateline column. This dateline value was checked and set to the current date if null. This extra error checking seems to have been forgotten this time.

However, it doesn't explain why there are some articles coming through that the script can't parse. I've not actually seen it happen on my setup, so my guess is it's specific to a newserver and not an article. I did see it now and again when I was using Newsfeeds.com as a provider.

Let me know if you find anything out.
  #443  
Old 05-25-2001, 04:22 AM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just had another thought about this. The only other thing different between instalations that would affect the date is the version of the Date::Parse module. I use the str2time function from this module to parse the date and convert it into unix time.

There is a similar version number incompatibility with the DBI module and the 'mysql_insertid' function. In the older version, the function was returning null. I was pulling my hair out for weeks over this one as only captnroger had the problem. Then just last week, eric figured it out when he encountered the problem.
  #444  
Old 05-25-2001, 04:26 AM
NgtCrwlr's Avatar
NgtCrwlr NgtCrwlr is offline
 
Join Date: Jan 2002
Location: Fort Myers, FL, USA
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think... I found it.

The problem was not posts coming from usenet, it's on the local end when I replied to or started a new thread. What I did was add what I think is missing nntpdateline updates:

newthread.php
Code:
      $DB_site->query("INSERT INTO post (postid,threadid,  ..snipped..  ,iconid,visible,nntpdateline) VALUES (NULL,'$threadid','   ..snipped...  ,'$iconid','1','".time()."')");
newreply.php.
Code:
	$DB_site->query("INSERT INTO post (postid,threadid,title, ...snipped... ,iconid,visible,nntpdateline,inreplyto) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."', ....snipped...,'$iconid','$visible','".time()."','$inreplyto')");
Unless I'm missing something I think that's it? At least it seems to work right so far. I'm still waiting on usenet propagation to see what they look like externally.
  #445  
Old 05-25-2001, 04:44 AM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're right. I was just about to say it's in the instructions as a necessary code change, but I just went and checked and it's not there. That's exactly what I have on my setup though, so I guess I forgot to put it in the instructions. ooops

I intend to put up another little release tomorrow to include gilbys fix so I'll fix the instructions at the same time.

I've also got another little option that allows you to reduce the font size of quotes. I think it makes the posts easier to read. I've put it on dbforums.com already so you can see what I mean.
  #446  
Old 05-25-2001, 05:02 AM
NgtCrwlr's Avatar
NgtCrwlr NgtCrwlr is offline
 
Join Date: Jan 2002
Location: Fort Myers, FL, USA
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The quote option sounds great.

One other tiny problem you may want to fix is in newnews.pl
When doing a history pull and all articles on a run are not available last msg: counter does not increment and has to be updated by hand.

Also, it would be nice if when there are no messages in a group that the program would skip checking orphans and jump right to the next group. With a lot of groups I think that little diddy would speed things a bit.

Don't want to load you down again Paul, I just thought you might want to know about these being that you are updating again so soon.

Cheers!
-Larry
  #447  
Old 05-27-2001, 01:00 PM
mcncyo's Avatar
mcncyo mcncyo is offline
 
Join Date: Oct 2001
Location: derby, Kansas
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting this problem

Quote:
Query failed:
INSERT LOW_PRIORITY INTO post (title,allowsmilie,threadid,dateline,nntpdateline, pagetext,visible
,msgid,ord,username,userid,nntpfrom,ipaddress,isus enetpost) VALUES ('What is required for salvat
ion?',1,,990971890,990207918,'What do I need to do, be or whatever to be "saved"?\n','1','<3B055
FD2.88A00F0C@hotmail.com>','0','Tim',0,'Tim #timothyb24@hotmail.com#',0,1)

DBD::mysql::db do failed: You have an error in your SQL syntax near '990971890,990207918,'What d
o I need to do, be or whatever to be "saved"?\n','1',' at line 1 at ./newnews.pl line 609.



[QUOTE]
  #448  
Old 05-27-2001, 04:02 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by cyo
I am getting this problem
....
update your DBI module. The version you have is not returning the threadid.
  #449  
Old 05-27-2001, 04:07 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by NgtCrwlr
The quote option sounds great.

One other tiny problem you may want to fix is in newnews.pl
When doing a history pull and all articles on a run are not available last msg: counter does not increment and has to be updated by hand.
I think someone else had this problem and I couldn'd understand what they meant. However, I switched news serrvers this weekend and re-pulled all news and I saw the problem with my own eyes. I'll get on it.

I hope to get all these fixes done today and a new release out. If not today, definately tomorrow.
  #450  
Old 05-27-2001, 09:58 PM
NgtCrwlr's Avatar
NgtCrwlr NgtCrwlr is offline
 
Join Date: Jan 2002
Location: Fort Myers, FL, USA
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

While I was validating the output HTML I found that signatures from usenet messages can have invalid characters like (&, and high ASCII chars). htmlentities() action needed?

Also, I would like to see a nl2br in usenet signatures.

Oh-oh I think I hooked a big one!

I knew something wasn't quite right with... function update_last_active_thread because I have one thread title that displays B& amp;W Album. Looking into it further I think I see what is happening.

In function update_last_active_thread you are using
addslashes(htmlspecialchars($lastactivethread))
Unfortunately htmlspecialchars is not needed because vB has already preformed special character conversion and stores it converted in the DB.

This caused me to look further and I found that newnews.pl saves the thread title to the DB without processing for special characters. That would be OK if vB did it that way too.

Paul, tell me I'm wrong... please! If I'm not wrong this means a total purge of all usenet posts and new history pull. This is not that big of a deal for me because I don't have many posting users. Although the news feed I use is terribly slow.

God I love this stuff!

Cheers!
-Larry
  #451  
Old 05-28-2001, 04:52 AM
slinky
Guest
 
Posts: n/a
Default

The download link disappeared. In fact, so did the site. Could be down for maintenance but I'd love to get hold of this hack and implement on my system.
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 06:21 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.05363 seconds
  • Memory Usage 2,313KB
  • 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
  • (2)bbcode_code
  • (3)bbcode_quote
  • (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
  • (9)postbit_onlinestatus
  • (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
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete