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)
-   -   RSS News Feed Hack (https://vborg.vbsupport.ru/showthread.php?t=60899)

mirdin 04-12-2004 07:38 PM

Quote:

Originally Posted by Slapyo
after thinking about your problem some, it sounds like the problem that i had before. did you make the changes in your functions_newpost.php? it should change the build_new_post function and then change the global variables just below that in the function.

You hit the nail on the head :)
I did make the changes to functions_newpost.php, but guess what? I forgot to upload it :o
It seems to work correctly now :)

mirdin 04-12-2004 08:09 PM

hmm..I seem to get double posts from the yahoo feed
The second time the cronjob ran it posted all the articles again. The articles are identical.

Slapyo 04-12-2004 08:16 PM

are you sure they are complete doubles? because i noticed that too from yahoo, but when looking at it closer, the news article has the same title, but the description and/or link are a little different, so it shows up as a completely new article. atleast that is how i understand it.

mirdin 04-12-2004 08:23 PM

Yes, they are identical, the first time it added 50 articles. The second run, it added the same 50.

How does it exactly check for doubles?

Is it this code?

PHP Code:

        // filter out the old items
        
while($rss_thread_data $DB_site->fetch_array($rss_query)) {
            for(
$j count($rss_allItems) - 1$j >= 0$j--) {
                if(
$rss_thread_data[title] == $rss_allItems[$j][TITLE] &&
                   
$rss_thread_data[rss_date] == $rss_allItems[$j][pubDate]) {
                    
$rss_allItems[$j][OLD] = true


Slapyo 04-12-2004 09:20 PM

ya, that looks like it. that was from the original author. i made no changes to the way it retrieves the articles or checks the articles to see if they are old or not. it appears to be checking the title and the date. if both the title and the date of the article are the same then it marks it as old and doesn't enter it.

maybe it could be yahoo updating a news article so the title, link, description are all the same, but since the news was updated the date was different. maybe load up the rss file in your browser and check the pub dates, then check em again later on. see if duplicate titles, descriptions, links have different pub dates.

i know i get a couple repeat articles from yahoo as well.

dethfire 04-12-2004 11:41 PM

Warning: file(): URL file-access is disabled in the server configuration in /htdocs/www/includes/RSS/rss_update.php on line 32

Warning: file(http://rss.news.yahoo.com/rss/topstories): failed to open stream: no suitable wrapper could be found in /htdocs/www/includes/RSS/rss_update.php on line 32

Warning: implode(): Bad arguments. in /htdocs/www/includes/RSS/rss_update.php on line 32

Slapyo 04-13-2004 12:39 AM

i started a new thread with the new file so people wouldn't get confused as to which one they should download in this thread. all support for the hack will be handled over in that thread.

@dethfire ... that error sounds like it is problem with your server config. did the script work for you before, or is this the first time you are using it?

pgowder 04-13-2004 05:28 PM

Quote:

Originally Posted by Slapyo
i started a new thread with the new file so people wouldn't get confused as to which one they should download in this thread. all support for the hack will be handled over in that thread.

@dethfire ... that error sounds like it is problem with your server config. did the script work for you before, or is this the first time you are using it?

Can you post a link to the new thread?

Slapyo 04-14-2004 03:40 PM

Quote:

Originally Posted by pgowder
Can you post a link to the new thread?

that would help wouldn't it .... sorry bout that.

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

P.Jackson 04-14-2004 04:58 PM

a list of some rss feeds and urls would be cool :)


All times are GMT. The time now is 04:27 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.01442 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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