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

ConqSoft 04-13-2004 11:56 PM

Well, I just installed for the first time, using the latest 1.22 ZIP and I have a couple of issues.

1) I'm getting duplicates. :( Any ideas? (Using the Yahoo! News Oddly Enough feed only, for now.)

2) If a " is in the title, it shows up as "

Slapyo 04-14-2004 12:01 AM

you shouldn't get duplicates. the newest version checks for duplicates. check your vb3_thread table and see if the bot posts have entries in the rss_feed and rss_date fields. i am using a yahoo news feed myself and don't get the duplicates. another person using the BBC news feeds was getting duplicates, but then says that problem is gone with the new version.

the function in the rss hack checks to see if the title & pubDate are the same. if both are the same, it is considered old.

PHP Code:

$rss_title html_entity_decode($rss_titleENT_NOQUOTES);
$rss_description html_entity_decode($rss_descriptionENT_NOQUOTES); 

that SHOULD take care of converting the " to ". that is the purpose of the function according to PHP. however, if that doesn't work then you can insert this code just below the code i posted above.

Code:

$rss_title = str_replace(""", "\"", $rss_title);
$rss_description = str_replace(""", "\"", $rss_description);


ConqSoft 04-14-2004 12:12 AM

Ok, that fixed the quote problem. Thanks!

I'll let it run for a while again now and see if the dupes show up.

Thanks again.

ConqSoft 04-14-2004 12:20 AM

Ok. I verified that the rss_date field is being updated.

So, I went to the RSS manager and deleted all news.

Then I manually ran the cron job using the Run Now button in my scheduled task manager.

And it pulls in several copies of each message for some reason. The duplicates aren't right next to each other in the list. It's just like it pulled the RSS feed twice for some reason, and didn't catch the dupes. I dunno...

I tried it a couple of times with the same results...

SnowBot 04-14-2004 12:21 AM

OK i did all that, i run the task again and this time i DIDNT get that error but no post :( hehe it just dont like me i guess :(

ConqSoft 04-14-2004 12:27 AM

Nevermind. :( I think it's just the feed itself repeating articles.

Thanks!

SnowBot 04-14-2004 12:40 AM

:( Well the user i set up still has NOT appeared on whois online or posted :(

No db errors

Nothing, i have rechecked my install / file edits and everything is correct as far as i can see, just nothing is happening.

Any ideas?

Want me to set up an admin login so you can check ?

dethfire 04-14-2004 01:17 AM

I have my cron set to every 20 hours, however once that 20 hours comes around the script seems to run 3 times creating 3 sets of duplicated

rocket98 04-14-2004 01:42 AM

Quote:

Originally Posted by Slapyo
ok, i have fixed the duplicate post problem. it now inserts the data into the rss_feed and rss_date fields. it should check the post and not post it if it is a duplicate.

also, i have included in the rss_update.php file a section of commented code. if you use a version of PHP prior to 4.3.0 you will need to uncomment this section out, and then comment the 2 lines above it.

I will try this, thank you Slapyo !!!!

rocket98

----------------------------------------

I am at a complete loss ... I was playing and playing and then I uploaded the attached file and for some reason I got a BBC feed immediately after doing a manual run, no dups nothing just a BBC feed with 30 threads.

I think this was from the original hack. I found it on hotscripts today when i was looking around at all things RSS.

I honestly don't know what is different from your edits to the original hack. No PHP problems to speak of. Not sure if this works for others but i tried it and it seems to go ...

Here is my forum

SnowBot 04-14-2004 01:56 AM

over an hour later and still nothing..... im at a loss now


All times are GMT. The time now is 06:48 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.02279 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_code_printable
  • (1)bbcode_php_printable
  • (1)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