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)

mirdin 04-13-2004 07:02 AM

Quote:

Originally Posted by PranK
The last one sent my server load through the roof - is this likely to happen with this one?

Thanks!

Christian

Not likely. I believe the old hack would fetch the rss feed every time someone would enter the forum.

For this one you have to set a cronjob.

jluerken 04-13-2004 07:10 AM

Quote:

Originally Posted by rocket98
Hi,

Very interesting hack. I have installed it but got this error when I ran it to see what it would pull down.

Fatal error: Call to undefined function: html_entity_decode() in /homepages/23/d95339147/htdocs/public_html/forum/includes/RSS/rss_update.php on line 70


Thanks

I get the same error
Fatal error: Call to undefined function: html_entity_decode() in /home/www/web1/html/forum/includes/RSS/rss_update.php on line 70

mirdin 04-13-2004 07:20 AM

Quote:

Originally Posted by jluerken
I get the same error
Fatal error: Call to undefined function: html_entity_decode() in /home/www/web1/html/forum/includes/RSS/rss_update.php on line 70

This function is only present in PHP 4.3.0 and later, which version are you running?

http://www.php.net/manual/en/functio...ity-decode.php

jluerken 04-13-2004 08:07 AM

Quote:

Originally Posted by mirdin
This function is only present in PHP 4.3.0 and later, which version are you running?

http://www.php.net/manual/en/functio...ity-decode.php

I am running PHP Version 4.2.2

And what now?

mirdin 04-13-2004 10:49 AM

Quote:

Originally Posted by jluerken
I am running PHP Version 4.2.2

And what now?

You'll have to ask your host to upgrade to a more recent version of PHP.

Or if you follow the link to the php function I posted before, it shows this code:

PHP Code:

// For users prior to PHP 4.3.0 you may do this:
function unhtmlentities($string
{
   
$trans_tbl get_html_translation_table(HTML_ENTITIES);
   
$trans_tbl array_flip($trans_tbl);
   return 
strtr($string$trans_tbl);
}

$c unhtmlentities($a);

echo 
$c// I'll "walk" the <b>dog</b> now

?> 

If upgrading PHP is not possible for you then you could try to replace the html_entity_decode function using this example.


By the way, has anyone managed to fix the double post issues? I have these issues with both yahoo and bbc feeds.

Acido 04-13-2004 11:42 AM

Quote:

Originally Posted by Slapyo
http://www.sportsbabble.net/showthread.php?t=570

there is a link to a post made by my news bot and it has ' in it ... but without the leading \, what is the link to the rss feed you are using?

i just uploaded a new version that fixes the bot subscribing to the threads. it should no longer subscribe to threads. the change was in rss_update.php so you can upload just that file if you want.

i can't see what is causing the problem with stories being posted multiple times. on mine i don't get the multiple stories, but every once in a while. the original author included a check in the program, but it is obviously not working properly. the code for this is in rss_update.php. i will look at it more.

I'm getting multiple Stories too. The feed that i'm using is :
Quote:

http://www.lanacion.com.ar/herramientas/rss/index.asp?origen=2
If help, the fields: rdd_feed and rss_date in the thread table, are always empty :ermm:

I'll apreciate if you can help me to avoid duplications, triplications, etc... using the bot. I think that the filter most be based in the title of the feed only, but i dont know how fix it.

Thanx in advance !

Slapyo 04-13-2004 01:27 PM

ok, i think i have solved the problem with the duplicate posts. after acido mentioned that there were blank fields for the rss_feed and rss_date i realized that the vB function doesn't insert the new data.

so, to fix it i have uploaded v1.22 ... this includes the following changes:
- one more modification to functions_newpost.php (edit and upload)
- one fix to rss_update.php (just upload new one)

mharmon 04-13-2004 01:33 PM

On the Yahoo feeds located at:

http://news.yahoo.com/rss

Is there anyway to specify a variable in the URL so you can limit the amount of headlines it grabs? I don't want 40-50 news items appearing in a forum -- I'd rather limit it to 5-10 a day..

Slapyo 04-13-2004 01:40 PM

that would be up to the feed itself if they were to accept something like that. i mean i guess you could go into the code and change the loop so that it didn't loop from:

0 -> # news articles
to
0 -> 10 (or 5)

mharmon 04-13-2004 01:42 PM

Slapyo -- Where would I change that? Can you find where that it is and shoot it over to me?


All times are GMT. The time now is 09:14 AM.

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.01330 seconds
  • Memory Usage 1,746KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)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