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)

Slapyo 04-29-2004 10:43 PM

hm, my script is derived from the original script. it should work if you followed the install instructions.

i take it you are using a Yahoo!News feed. those work fine for me, i am using the sports feed for my site.

make sure you follow the instructions step by step in the setup. i know you probably did. but not knowing what is going on, that is all i can tell you right now.

MaxScript 04-29-2004 11:04 PM

if you like to go in as admin , Pm me

krohnathlonman 05-02-2004 12:27 AM

I'm having a bunch of dumplicate post problems....

Slapyo 05-03-2004 01:08 AM

does your news feed have a pubDate field. if it doesn't have a date field, or if it is named something other than pubDate you will get duplicate posts.

Leah 05-03-2004 06:08 AM

Is it possible to get this to work with rdf also?

Milez 05-03-2004 12:39 PM

Quote:

just gotta find those places or deal with the tiny TINY descriptions.
Anyone have any idea where these feeds might be? 3 words does not a useful thread make.

Good script btw been following it since it was first hashed out.

krohnathlonman 05-03-2004 02:17 PM

The duplicate posts are the lack of pubdate.....

Also how do I make " display as " instead?

Slapyo 05-03-2004 03:48 PM

Quote:

Originally Posted by Leah
Is it possible to get this to work with rdf also?

will have to see if i can find an RSS/RDF class that can be incorporated into this.

Slapyo 05-03-2004 03:50 PM

in rss_update.php FIND:
Code:

                                // Setup the thread
ABOVE ADD:
Code:

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


Slapyo 05-03-2004 03:53 PM

Quote:

Originally Posted by Milez
Anyone have any idea where these feeds might be? 3 words does not a useful thread make.

Good script btw been following it since it was first hashed out.

http://www.syndic8.com

search there for RSS feeds. you might find some that are longer than a sentance description.

bradsears 05-03-2004 04:10 PM

I'd love to get google news alert emails to work with this system. They generally have a slightly longer description and you can create them for any group of key words.

danbc 05-04-2004 09:05 AM

How/what/where do one use to get personalised information posted automaticly?

We have 3 news sources we want to use..

1 anticheat news
2 jokes & fun
3 tournement news

These items we want to post both on our own site in 3 different forums, but also make the RSS available to affiliate sites, who will then use a PHPNuke version of this script to have the same contens posted.

But I can?t find any way of doing this without being a scriptgeek :( I?ve tried Nucleus, which has a admin login page, which fits our needs, since other site admins should be allowed to post news aswell..

But I can?t seem to get this to work :(

Any input/ideas?

The hack is working like a charm btw, so it?s gonna end up on our final site..:!

Slapyo 05-04-2004 12:10 PM

hm, if i understand you correctly. you can set up 3 different news bots to run. then vbulletin comes with an external data provider.

admincp -> vBulletin Options -> External Data Provider

you can chose javascript, RSS, XML.

danbc 05-04-2004 06:30 PM

Yep, but the problem is making a news source that the bots can connect to, and preffereble a solution that has an ability to have different users adding the source.

Ted S 05-05-2004 03:58 AM

Great hack, I had it up and running in minutes (yes minutes). I have only one question and that would be how/where do I modify class.RSS.php to filter for a word. That is to say I intend to pull down the entire rss feed from the bbc and cnn but I only want to use resutls that contain the word(s) "scuba" "diver" or "diving" in either their description or title. Clearly having this as a per-bot feature would be great but if you can tell me how to hard code it I'd be ever thankful.

vau7 05-06-2004 02:30 AM

I moved to a new Server and now i get these errors if i run the cron:

Code:

Warning: main() [function.main]: open_basedir restriction in effect. File(../class.RSS.php) is not within the allowed path(s): (/www/htdocs/v109581/) in /www/htdocs/v109581/includes/RSS/rss_update.php on line 28

Warning: main(class.RSS.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/v109581/includes/RSS/rss_update.php on line 28

Fatal error: main() [function.main]: Failed opening required 'class.RSS.php' (include_path='.:..') in /www/htdocs/v109581/includes/RSS/rss_update.php on line 28

Any Idea? I've installed & checked it now 3 Times, everything seems to be correct...


Thanks ins Advance

Leah 05-06-2004 04:23 PM

Quote:

Originally Posted by Slapyo
will have to see if i can find an RSS/RDF class that can be incorporated into this.

That would be great.
What are the requirement for the rss/rdf class?

I'm an amateur when it comes to this, but is this what you're looking for?
http://www.fase4.com/en/rdf/sub,doc,index.html

Slapyo 05-06-2004 05:46 PM

Quote:

Originally Posted by vau7
I moved to a new Server and now i get these errors if i run the cron:

Code:

Warning: main() [function.main]: open_basedir restriction in effect. File(../class.RSS.php) is not within the allowed path(s): (/www/htdocs/v109581/) in /www/htdocs/v109581/includes/RSS/rss_update.php on line 28

Warning: main(class.RSS.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/v109581/includes/RSS/rss_update.php on line 28

Fatal error: main() [function.main]: Failed opening required 'class.RSS.php' (include_path='.:..') in /www/htdocs/v109581/includes/RSS/rss_update.php on line 28

Any Idea? I've installed & checked it now 3 Times, everything seems to be correct...


Thanks ins Advance

might be a problem with the INI file and permissions set. if you can't change your INI file, you should contact your hosting provider. that's all i can think of.

Slapyo 05-06-2004 05:48 PM

Quote:

Originally Posted by Leah
That would be great.
What are the requirement for the rss/rdf class?

I'm an amateur when it comes to this, but is this what you're looking for?
http://www.fase4.com/en/rdf/sub,doc,index.html

looks like it could work. when i have some time i will go through this some more. in midterms right now with lots of tests and papers due. *faints*

LLFan 05-06-2004 05:52 PM

Fantastic addition to the vB hack community--thank you.

I have this issue when trying to run the scheduled task manually (since I have had no posts):

Code:

Warning: main(.rss.php): failed to open stream: No such file or directory in /home/mysite.com/forums/admin/cronadmin.php on line 56

Fatal error: main(): Failed opening required '.rss.php' (include_path='.:/usr/local/lib/php') in /home/mysite.com/forums/admin/cronadmin.php on line 56

Any ideas?

Slapyo 05-07-2004 12:31 AM

yup, your path is wrong in your scheduled task. go make sure it says this:

PHP Code:

./rss.php 


LLFan 05-07-2004 03:45 AM

Thanks. =)

For some reason the All Headlines News is only formatting news in this format:
Code:

politicalwire.com - May 7 2004 5:25:0 GMT
Is that correct?

Ted S 05-07-2004 05:20 AM

Anyone know how I could add a field to each bot to make a fitler for required words so that instead of a bot pulling down every feed it pulls down only certain, matching feeds?

LLFan 05-07-2004 05:21 PM

A couple things,

* do I need to enable html in the forum the bot posts in? If not why is this: " showing?
* Can people reply to the threads or does it have to be a bot only forum?

I ask because when I tried to have a thread of my own creation the BBC Bot threw up a ton of news under my username! The id is correct, and not mine.

Any ideas?

LLFan 05-08-2004 04:11 AM

>>I ask because when I tried to have a thread of my own creation the BBC Bot threw up a ton of news under my username! The id is correct, and not mine.<<

Did it again but different newsbot and in a completely closed forum for everyone but the bots. Note, it's also using people who have no permissions to post in there.

Any ideas?

Slapyo 05-10-2004 08:56 PM

Quote:

Originally Posted by LLFan
>>I ask because when I tried to have a thread of my own creation the BBC Bot threw up a ton of news under my username! The id is correct, and not mine.<<

Did it again but different newsbot and in a completely closed forum for everyone but the bots. Note, it's also using people who have no permissions to post in there.

Any ideas?

the feed you are using may not have the pubDate field in it, this could be causing the problems with the date.

are you using the latest version of the news bot? this was a problem with a previous version that has now been fixed. you have to edit a couple of files as well as upload the included files.

can people reply to the posts? yes, if your forum is set up with it's permissions to allow it.

this should fix the &quot; problem:

in rss_update.php FIND:
Code:

                                // Setup the thread
ABOVE ADD:
Code:

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


Slapyo 05-10-2004 08:57 PM

Quote:

Originally Posted by Ted S
Anyone know how I could add a field to each bot to make a fitler for required words so that instead of a bot pulling down every feed it pulls down only certain, matching feeds?

that would require some changes to the script as well as some changes to the mysql tables. you would need to make a table that had the words you want to use as a filter. then you would have to modify the code in the script to make it check for those words.

Leah 05-11-2004 06:34 PM

Quote:

Originally Posted by Slapyo
looks like it could work. when i have some time i will go through this some more. in midterms right now with lots of tests and papers due. *faints*

Hehe..
I know the feeling. I shouldn't even be here now. :o

LLFan 05-12-2004 05:01 PM

Using 1.2.4 which is the latest release to the best of my knowledge.

>>can people reply to the posts? yes, if your forum is set up with it's permissions to allow it.<<

I wanted to know if it is a known issue to allow members to post in the forum the bot posts in because of the issue I was having with the bot using the wrong userID.

Slapyo 05-12-2004 06:21 PM

oh no, that shouldn't be a problem allowing users to start posts as well as the bot to make posts.

the way i have mine set up is that only the bot is allowed to start posts, but people can reply to them. however for some time i did have it so that anyone could start a post. as long as you have the bot installed properly with the correct file edits, everything should work perfectly. your bot will make the posts and they won't show up from some other user.

Aceman 05-12-2004 08:40 PM

I have a display problem when it comes to showing TITLES of threads created from the RSS from scifi.com

http://www.scifi.com/scifiwire/rss/index.xml

The threads titles appear like this:

&apos;Potter&apos; Designer Talks Challenges

THE ORGINAL TEXT IS: 'Potter' Designer Talks Challenges

Now I fixed my display problems in the thread with replacement for "&apos;" to " ' " and those are showing fine.. however the thread titles are not.. What can I do to fix this?

Aceman

Link to my news forum: http://www.scifi-meshes.com/forums/f...splay.php?f=90

Aceman 05-12-2004 08:46 PM

I'm a duffis.. I fixed it buy using the code you placed eariler:

$rss_title = str_replace("&apos;", "'", $rss_title);
$rss_description = str_replace("&apos;", "'", $rss_description);

Aceman 05-12-2004 11:37 PM

I'm getting duplicated threads when the rss runs on the hour. I checked the (scifi.com) rss link and it DOES have a pubdate.

<pubDate>Wed, 12 May 2004 12:26:39 EST</pubDate>

Yet I still have duplicates?? Any suggestions.

Slapyo 05-12-2004 11:41 PM

newest version: 1.25 (PHP > 4.3.0) and 1.25a (PHP < 4.3.0)

this update fixes the problems with &quot; and it also will insert into the scheduled task log if you have it turned on ... atleast it should. heh, of course any problems let me know.

files changed are: rss.php and rss_update.php ... so if you want to make the changes yourself, or just upload those 2 files ... that's fine.

in rss.php FIND:
Code:

?>
ABOVE ADD:
Code:

log_cron_action('RSS News Feed Posted', $nextitem);
in rss_update.php FIND:
Code:

                                // Setup the thread
ABOVE ADD:
Code:

$rss_title = str_replace("&quot;", "\"", $rss_title);
$rss_description = str_replace("&quot;", "\"", $rss_description);
$rss_title = str_replace("&apos;", "'", $rss_title);
$rss_description = str_replace("&apos;", "'", $rss_description);


Slapyo 05-12-2004 11:50 PM

Quote:

Originally Posted by Aceman
I'm getting duplicated threads when the rss runs on the hour. I checked the (scifi.com) rss link and it DOES have a pubdate.

<pubDate>Wed, 12 May 2004 12:26:39 EST</pubDate>

Yet I still have duplicates?? Any suggestions.

i think the problem lies within the &quot; and &apos; problem. if there is a " or ' in the title it is changed and then in the database it is checked.

" != &quot;
' != &apos;

so it thinks it's a new title and it then posts. could you please check in phpMyAdmin and see if it is storing the data for the title with the &quot; or &apos; .... unfortunately i have not seen this in my news articles yet so i can't verify this.

Aceman 05-13-2004 12:51 AM

I'm not sure if this was the fix YET.. but I did notice something about code..

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;
                                }
                        }
                }

Around pubDate there was NO ' ' so I put them in.. seems to be working.. but I'm still testing.. I'll post soon.. if you already know (cause your a php pro) that this isn't the solution.. please tell me.. cause I'm definately NOT a php pro..

Aceman

***UPDATE*** This did NOT fix my duplication problem. I'm getting ALOT of duplicated threads.. help me!

Aceman 05-13-2004 04:46 PM

Quote:

Originally Posted by Slapyo
... could you please check in phpMyAdmin and see if it is storing the data for the title with the &quot; or &apos; .... unfortunately i have not seen this in my news articles yet so i can't verify this.

I just checked my phpMyAdmin and this is how threads that are replicated are having their TITLES stored in the database.

New &quot;Mobile Console&quot; Plays PC Games

Does this help? is their a fix?

Certain threads ARE still duplicating.. and I reuploaded your files to my server again to make sure it wasn't something I'd screwed up. I'm using 1.25 as my version of PHP is higher then 4.3.0.

Aceman

Slapyo 05-13-2004 05:45 PM

ya ok, then it is what i think it is and this should be fixed by my update i am hoping. i made it fix the titles with " and ' in them instead of having &quot; or &apos; they will have " and ' .... here is the problem:

New &quot;Mobile Console&quot; Plays PC Games

does not equal

New "Mobile Console" Plays PC Games

when compared to each other the " and ' are not converted to &quot; or &apos; ... or vice versa. the literal strings do not match each other even though to me and you they are the same. let it run for a little bit on the new 1.25 and let me know if this fixes the problem with the multiple posts.

P.Jackson 05-15-2004 10:34 PM

any ideas why the thread and post count isnt updating in subforums?

Slapyo 05-17-2004 02:35 AM

it should. the newest version takes care of that. make sure you have the latest version. it updates on mine and i am running the same version i have uploaded here, no changes.


All times are GMT. The time now is 06:17 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.01803 seconds
  • Memory Usage 1,844KB
  • 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
  • (13)bbcode_code_printable
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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