• Welcome to Simple Machines Community Forum. Please login or sign up.

RSS Feed Poster

Started by SMFHacks.com Team, January 11, 2007, 07:46:04 PM

Previous topic - Next topic

rockinaway

How do I get the Cron Job to work with it? It doesn't seem to post them.. I have got one set up in my webhosting panel attached to the cronrss.php file.. but it won't work :S
Have I helped you? Then please join AdminFuel - The forum for forum administrators.

If you need help managing your forum, or maybe launching it, then visit us and view the quality articles, downloads and posts.

Force73

Hi all,

am I the only one, who's NOT see a link to the configuration area? I have installed this mod (fopen is allowed), it told me that it's installed perfect, but I can't see the link.

The other problem: I've checked if there the cron.php (named so I belive) is in the right folder, after install, but it's not. What's the matter with this? I am using 1.1.4, only a handfull small other extensions and can't use the RSS Posting thing, please tell me, whats wrong. I am from Germany, using German as language and the Classic Yabb Template. Also, if I put the board to english language, I can't see a link to configuration.

Please help me :-)

TrueSatan

Please try the mod in the SMF Default theme. Like almost all mods this mod only installs automatically into the SMF Default theme. In this case the theme isn't edited but three new files are added to it and to make it work in other themes you may need to add them to each additional theme.

FeedPoster.template.php to the theme directory

FeedPoster.english.php to the theme language directory

FeedPoster.english-utf8.php to the theme language directory

You will have to translate the mod to make it work in German...the English files should be translated and the original English versions left in place unedited with the additional German versions added to the forum.

jossanaijr

October 17, 2007, 07:13:03 PM #583 Last Edit: October 17, 2007, 09:11:34 PM by jossanaijr
Quote from: tsmalmbe on October 04, 2007, 07:01:11 PM
Another solution to the problem with non-US characters. The other solutions here have not worked for me (for instance, iconv does not exist in my php). Anyway, here goes something that has been tested with swedish and finnish characters ("nordic" that is).

Subs-RSS.php

// Create the Post
$msg_title = htmlspecialchars(($feed['html'] ? $context['feeditems'][$i]['title'] : strip_tags($context['feeditems'][$i]['title'])), ENT_QUOTES);
$msg_title = mb_convert_encoding($msg_title, "UTF-8", mb_detect_encoding ($msg_title, 'UTF-8, ISO-8859-1, ASCII'));
$msg_body =  htmlspecialchars(($feed['html'] ? $context['feeditems'][$i]['description'] . "\n\n" . $context['feeditems'][$i]['link']  : strip_tags($context['feeditems'][$i]['description'] .  "\n\n" . $context['feeditems'][$i]['link'])), ENT_QUOTES);
$msg_body = mb_convert_encoding($msg_body, "UTF-8", mb_detect_encoding ($msg_body, 'UTF-8, ISO-8859-1, ASCII'));


What does it do? It tries to detect what encoding the incoming text has, and then converts it to UTF-8. If your forum is running on some other encoding, then just change the destination encoding scheme in the code above (second parameter in mb_convert_encoding). This works with mixed feeds that are ISO-8859-1 and UTF-8 - all result in proper characters in UTF-8. If you have an exotic character-set, just add it to the list in the mb_detect_encoding-function.

Hope this solves something for someone.

Changing the code I'm having this error:
Parse error: syntax error, unexpected ';', expecting T_PAAMAYIM_NEKUDOTAYIM or '(' in

Any help?

EDIT: Solved by myself.  Working fine!

bigaldizzler

hmmm.... I need some help.

I just installed this mod it seemed pretty easy from the start but its not working.  I dont know where I messed up.

I have the mod installed and set up a feed that pulls news from digg related to my forum topic.  I then create a member that would serve as the 'NewsBot'....I saw 2 new news article posted on the particular digg link I am using...but my 'NewsBot' haven't posted anything...I dont know whats wrong...do I have to have it logged in every time or something...

My news forum section is restricted so only admin and mods can post so I promoted 'NewsBot' to global mod...but no post were made...

I've visited my link http://www.yourforums.com/cronrss.php [nofollow] but it takes forever and results in a blank page....also when I edit my feed or setup the feed it takes forever and loads to a blank page as well...but when I go in cpanel I can see the feed was created/edited...Fsocketopen is enable on Hostgator hosting...

I hope this is enough infor...thanks in advance for the help!  :D

bigaldizzler

Quote from: bigaldizzler on October 22, 2007, 06:37:52 PM
hmmm.... I need some help.

I just installed this mod it seemed pretty easy from the start but its not working.  I dont know where I messed up.

I have the mod installed and set up a feed that pulls news from digg related to my forum topic.  I then create a member that would serve as the 'NewsBot'....I saw 2 new news article posted on the particular digg link I am using...but my 'NewsBot' haven't posted anything...I dont know whats wrong...do I have to have it logged in every time or something...

My news forum section is restricted so only admin and mods can post so I promoted 'NewsBot' to global mod...but no post were made...

I've visited my link http://www.yourforums.com/cronrss.php [nofollow] but it takes forever and results in a blank page....also when I edit my feed or setup the feed it takes forever and loads to a blank page as well...but when I go in cpanel I can see the feed was created/edited...Fsocketopen is enable on Hostgator hosting...

I hope this is enough infor...thanks in advance for the help!  :D

Ah...I spent a few hours today no luck...still cant get this to work!  I chmod folder cronrss.php and sub-rss.php to 755 and set cron time to 30 mins and used the main digg.com index as a feed url, but no post made....my error log shows this by the way maybe...

Most recent error...
[24-Oct-2007 00:04:00] PHP Warning:  fopen(http://digg.com/rss/index.xml [nofollow]) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/*****/public_html/mydomain/Sources/Subs-RSS.php on line 314

I dont know...read a few post related to this problem but no real solution... :'(


TrueSatan

It looks as though your host doesn't allow fopen in which case this mod can't work on your hosting...change hosts or persuade your current one to change policies/settings or don't use mods that need fopen...

KGIII

TrueSatan: There's another post, burried of course, that has to do with another non-packaged method to import RSS feeds. I'm not 100% certain but (I think it uses Magpie) that may not require the fopen? I have a copy of it kicking around somewhere so if you're interested in it then kick me a PM and I'll upload it or email it to you.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

bigaldizzler

Quote from: TrueSatan on October 24, 2007, 05:05:23 AM
It looks as though your host doesn't allow fopen in which case this mod can't work on your hosting...change hosts or persuade your current one to change policies/settings or don't use mods that need fopen...

Hmm I dont know but my site is hosted with Hostgator...I've asked them twice now fopen is enabled so that shouldn't be the issue.  I have chmod the files subs-rss and cronrss to 755. Everytime I add/edit a feed it takes forever to load and will result in a blank page, but it still change/be created because I can go back to my site and click admin -> feed config and see a feed was created or check on the setting to see if its been edited.  When I visit my cron url it takes forever to load and results in a blank page as well...error logs show
[24-Oct-2007 00:04:00] PHP Warning:  fopen(http://digg.com/rss/index.xml [nofollow]) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/*****/public_html/mydomain/Sources/Subs-RSS.php on line 314 all of them pointing to Line 314 in the subs-rss.php.  Anyone got this to work with hostgator hosting?  I dont know what I did wrong :(.

Ming the Merciless

October 28, 2007, 07:57:39 AM #589 Last Edit: October 28, 2007, 09:07:51 AM by Ming the Merciless
Quote from: mett on April 20, 2007, 04:16:09 AM
Hello

I have a problem when i run cronrss.php:

Fatal error: Cannot redeclare class akismet in /home/xxxxx/public_html/Sources/Akismet.class.php on line 55

I search forum before this post and somebody said something about duplicate code in Post and Subs-Post.php...but i don't have any duplicated code.

Right now, i can update only one feed per request and only the first one in the list, even i have added 10 feeds.

I try to use fake cron from mod but it's crash my admin area

Any ideea why?

Thanks

I see that there was another question about this, but I didn't see any answers.  I'm having the same issue.  Does anyone have a solution? I'm thinking that somewhere in the code for the Akismet plugin, there's an include() that could be an  include_once(), but I don't know where to start looking.

Ming the Merciless

I found it.

To get rid of the Fatal error: Cannot redeclare class akismet on line 55 error when using the Akismet mod and the RSS Feed Poster mod with cronrss.php make the following change:

In Sources/Subs-Post.php
find
require($sourcedir."/Akismet.class.php");

Replace with
require_once($sourcedir."/Akismet.class.php");

ryukenden

November 01, 2007, 08:49:58 PM #591 Last Edit: November 01, 2007, 08:52:07 PM by ryukenden
I have installed at following.

www.ihealthtalk.com/forums

But only first posts appear in my forums. I use RSS from yahoo answers and I like all questions and answers to be fed into my forums but instead feedposter is only feeding first posts which are in fact questions.
www.nicewebhosts.com
www.iphones.info

TrueSatan

First off check the feeds themselves to see that they contain the data you want then check them in a reliable feed validator to see if they are proper and valid feeds.

jossanaijr

Quote from: L.G.S on June 23, 2007, 07:28:13 AM
hi i have a problem

Id like the rss news to update in the forum stats as well, but it doesnt.

When I used fake crons it did, but as soon as I started real crons it just stopped working.

Can I fix this somehow please?
Hi,
I just notice that I have this stats issue too.
RSS Feed is working fine but it does not change stats numbers ("Forum History (using forum time offset") althought it changes my post numbers and "Forum Stats" in main page ("Forum Stats xxxx Posts in yyyy Topics by zzzz Members"). Is there a fix?

taurean

My RSS Feed is working superb. as soon as there is a new post/ Topic it is reflected thru RSS Feed. Nice Mod.

A small Issue now:   i have some Private boards which are not for members but only for Forum Staff like Admin/ Moderators. So any discussion/posts here are private and not counted as a post. But the same is also reflected in RSS feed.

i have permissions for Guests to view the Boads (Not Private Boards) but not the links inside.

Mine is  basically a MP3 Site. help me to solve ths issue
Eager to Learn SMF

Dominic_1

November 07, 2007, 01:28:15 AM #595 Last Edit: November 07, 2007, 01:50:56 AM by Dominic_1
I've just installed this mod. The fake cron jobs worked perfectly but almost slowed the forum to a complete hault. I have now set up an actual cron job. The feeds are not updated however. They are only updated if I physically visit the hxxp:myforum/mydirectory/cronrss.php [nonactive] page. After typing this url in my browser, and waiting for the page to load (it never completely loads) I return to my forum and the posts have been made.

Can anyone explain what I'm doing wrong, or what I need to do in order to not have to do this manually?

Also, after installing this mod, as others have stated in this thread, the configuration link is missing, there is a blank space where I suppose it should be. I'm running the latest .4 version as well. I saved the configuration page to my favorites, luckily.

I would appreciate any advice from the SMF community and look forward to your response.

Thank you,
Dominic

unExpected

I have found two problems with RSS feed poster.

1- Blogspot has got full content RSS feed but when feed poster is used it makes Thread but without any Title, so it is not accessable.

2- When Feeds are posted from Feedburner, it ads unwanted HTML Tags in the Thread

Please tell me what is the solution for that
Newbie :)

rumfa

November 12, 2007, 05:33:41 AM #597 Last Edit: November 12, 2007, 05:35:31 AM by rumfa
Hey..just saw this mod and it's wow no words..Having somebodies news on your own forum and automated..The life itz good  8)

But one small thing
I just keep getting this error

8: Undefined offset: 41
Datoteka: /home/selovese/public_html/Sources/Subs-RSS.php
Linija: 130

Any ideas what is is..

Here is the code that's seems to make a problem.

127function startElement2($parser, $name, $attrs)
128{
129   global $depth;
130   $depth[$parser]++;
131}


rumfa

November 12, 2007, 07:47:57 AM #598 Last Edit: November 12, 2007, 07:52:26 AM by rumfa
Quote from: Dominic_1 on November 07, 2007, 01:28:15 AM
I've just installed this mod. The fake cron jobs worked perfectly but almost slowed the forum to a complete hault. I have now set up an actual cron job. The feeds are not updated however. They are only updated if I physically visit the http://myforum/mydirectory/cronrss.php page. After typing this url in my browser, and waiting for the page to load (it never completely loads) I return to my forum and the posts have been made.

Can anyone explain what I'm doing wrong, or what I need to do in order to not have to do this manually?

Also, after installing this mod, as others have stated in this thread, the configuration link is missing, there is a blank space where I suppose it should be. I'm running the latest .4 version as well. I saved the configuration page to my favorites, luckily.

I would appreciate any advice from the SMF community and look forward to your response.

Thank you,
Dominic

I have the same thing. It does work perfectly on fake cron but on the real one only the first time. When entering www.domain.com/cronrss.php it and when i return to a page..it updates the feeds. Setting the time to 30 min has no effect actually

rumfa

Well, i am really a noob BUT  i found solution till this things are not solved. If you have the option of cronjob, and you probably have, you can use the cronjob to run the script every minute, day, month...or so you want. I tested it now and it works.. But i would rather prefer the option in the smf itself.
This is the command of your cronjob. and the time to run it you can set it yourself

php -q /home/pathonyourserver/cronrss.php 

Just paste and copy the command and ONLY change the serverpath.
Just getting better and better at this :D

Advertisement: