News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

RSS Feed Poster

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

Previous topic - Next topic

RRasco

Hrm, I have been trying to get this to work, but can't.  Tried cron jobs, fake cron jobs, different feeds, etc and nothing works.  When visiting the cronrss.php directly, I get a 500 Internal Server Error.  I have run a test script to test for fsockopen() and it appears to be enabled.  I am checking with my host, but anyone else get an Internal Server Error?

My fsockopen() test script....
<?php 
$fp 
fsockopen("www.google.com"80$errno$errstr30); 
if (!
$fp) { 
    echo 
"$errstr ($errno)<br />\n"
} else { 
    
$out "GET / HTTP/1.1\r\n"
    
$out .= "Host: www.google.com\r\n"
    
$out .= "Connection: Close\r\n\r\n"
 
    
fwrite($fp$out); 
    while (!
feof($fp)) { 
        echo 
fgets($fp128); 
    } 
    
fclose($fp); 

?>
Vehicle Management System for SMF - SMFGarage.com

vbgamer45

Try changing the permissions on Sub-Rss.php and the other rss feed poster files to 755
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

berwynboris

Hi vbgamer, I have been following this thread because I am having similar problems. fsock is enabled, I am using real cron with cronjob set every 30 minutes. If I manually go to cronrss.php, some of my feeds will load, others will not. When I edit the feed settings it seems to work OK, but checking the error log shows:

8: Undefined offset: 21
File: .../Sources/Subs-RSS.php
Line: 130

at line 130, of course is:

$depth[$parser]++;

Can you shed some light on what's happening (or not happening?)

All Feeed Poster files are set to 755.

thanks.

berwynboris

Bump and more...

...OK, I've gotten  my feeds to all work properly. I uninstalled and deleted everything RSS Feed Poster, and then reinstalled everything from scratch. I then set the permissions for all FP files to 755.

Then, I ran all of the feeds that I wanted to be posted through feedburner, and "dumbed them down" to RSS 2.0, no html.

et VIOLA!

One problem remains, however. Feed Poster will not will not do the updates itself. I have to manually load cronrss.php, then new posts appear.

vbgamer- any idea why that would be happening?

Cheers,

-b

Chopper

I get the following error after installation and try to access the feed poster configuration:

Unable to load the 'FeedPoster' template

Any ideas how to fix this?

Thanks

Chopper


ceewee

I use RSS2html for this, no problemo, no crobjob and smf-independent.

Chopper

Quote from: Chopper on November 21, 2007, 03:39:00 PM
I get the following error after installation and try to access the feed poster configuration:

Unable to load the 'FeedPoster' template

Any ideas how to fix this?



Thanks

Can anyone help? Have i done something wong that its not working correctly?

nadglobtrotter

Hello,

First of all, many thanks to vbgamer45 for his work on this mod, which is really great! Thanks also to all of you who are helping here, it is much needed!

I've installed the mod on my site, and had some troubles to make it work properly, so I read through ALL the posts in this thread.... >:(.... (yes I know I must be crazy) and I've noticed that a lot of people are asking the same questions over and over again. Which, in my experience, means that the information they are asking for is not easily available to them.
So I propose to put here below a summary of the responses for the main questions about RSS Feed Poster. Please correct me if you see mistakes in this text (I am not very technical, I'm just trying to put here what I've understood of all the conversations).

??? What RSS Feed Poster mod does:
The mod gets news/posts from a web feed (definition on wikipedia : hxxp:en.wikipedia.org/wiki/Web_feed [nonactive]) and adds each of them to a new thread in the forum of your choice on your SMF install. It uses a cron job to update the forum by adding any new news/posts from the feed into new threads.

??? Requirements:
RSS Feed Poster requires "fsockopen" php function to be enabled. There is no way around this.

??? Checking your feed url
Before posting error messages, check that the feed url you want to use is valid at hxxp:www.feedvalidator.org/ [nonactive] for example.

??? For non-English forums:


  • Get the Feed Poster configuration link in your menu: if you don't use English in your forum, when you first install RSS Feed Poster, the link to the config page does'nt appear. Instead you have a blank line. To fix this, copy the content:
    // Begin RSS FeedPoster Text Strings
    $txt['smfrssposter_admin'] = 'Feed Poster Configuration';
    // END  RSS FeedPoster

    from the file Themes/default/languages/Modifications.english.php into Modifications.yourlanguage.php (even if you don't use the default theme).


  • Special non-utf-8 characters in feeds: If your feed is not encoded in utf-8, special characters (accents, cedille etc.) won't show at all and will even block the rest of the post/news to be retrieved. To fix that, you need either to make sure your feed is encoded in utf8, or to convert the text from your feed into utf-8.
    To convert, you need to modify file Sources/subs-RSS.php as described by vipmoney in post #510 (use of library iconv):
    www.simplemachines.org/community/index.php?topic=141776.msg1209771#msg1209771
    or you can use the hack written by tsmalmbe in post #575 (use of function mb_convert_encoding): www.simplemachines.org/community/index.php?topic=141776.msg1263143#msg1263143
    (even though personally none worked for me, apparently my server doesn't know neither iconv or mb_convert_encoding  :()

  • Translate the configuration page of RSS Feed Poster: create a duplicate of file Theme/default/languages/FeedPoster.english.php, call it FeedPoster.yourlanguage.php and translate the chains in it.

??? About Cron jobs
Beginners read TrueSatan advice : www.simplemachines.org/community/index.php?topic=141776.msg1194863#msg1194863
In RSS Feed Poster, Real cron jobs seem to be highly preferable than Fake cron jobs, which can potentially slow down your website and impose a high load on your server. So use it only in last resort.
What's the difference between Real cron job and Fake cron job?
- Real cron jobs calls a script to run automatically every xx minutes in order to update your RSS feed.
- Fake cron jobs launch the update only each time the page is loaded.

??? Read also:
Admin of hxxp:nadglobtrotter.online.fr [nonactive] and hxxp:dessepe.online.fr [nonactive]

nadglobtrotter

Quote from: Chopper on November 22, 2007, 03:34:15 PM
Quote from: Chopper on November 21, 2007, 03:39:00 PM
I get the following error after installation and try to access the feed poster configuration:

Unable to load the 'FeedPoster' template

Any ideas how to fix this?



Thanks

Can anyone help? Have i done something wong that its not working correctly?

Hey Chopper,
Seems that the FeedPoster template is not on the server. Did you try to redo the install? Maybe something went wrong.
Admin of hxxp:nadglobtrotter.online.fr [nonactive] and hxxp:dessepe.online.fr [nonactive]

rockinaway

How can I get it so that some of the HTML (like the <ul> and <li>) is shown as HTML and not returned as text?
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.

rockinaway

I have HTML enabled but it shows it like that.. show I untick it to make it actually show the HTML correctly..
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.

rockinaway

Seems that when it isn't selected it parses the HTML correctly..
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.

Chopper

Quote from: nadglobtrotter on November 23, 2007, 09:47:22 AM
Quote from: Chopper on November 22, 2007, 03:34:15 PM
Quote from: Chopper on November 21, 2007, 03:39:00 PM
I get the following error after installation and try to access the feed poster configuration:

Unable to load the 'FeedPoster' template

Any ideas how to fix this?



Thanks

Can anyone help? Have i done something wong that its not working correctly?

Hey Chopper,
Seems that the FeedPoster template is not on the server. Did you try to redo the install? Maybe something went wrong.

Thanks for your reply i seemed to be getting somewhere, however, when trying to add a feed i get the following message:

XML error: syntax error at line 1

Help anyone?

nadglobtrotter

What is in your XML file at line 1?
Did you check you rss feed with hxxp:www.feedvalidator.org/ [nonactive]?
Admin of hxxp:nadglobtrotter.online.fr [nonactive] and hxxp:dessepe.online.fr [nonactive]

Chopper

Quote from: nadglobtrotter on December 04, 2007, 04:34:04 AM
What is in your XML file at line 1?
Did you check you rss feed with feedvalidator?

Hi,

I dont know what i done but i managed top get it working. Great mod and thanks for your help

TrueSatan

The chances are that you had a feed that wasn't valid and the feed provider fixed whatever invalid elements there were in it thus solving your problem.

Chopper

Quote from: TrueSatan on December 04, 2007, 09:41:16 AM
The chances are that you had a feed that wasn't valid and the feed provider fixed whatever invalid elements there were in it thus solving your problem.

More than likely the case as im not too familiar with these type of things but im getting there thanks to some great help on this forum.

vbgamer45

If you have the feed post the url for the feed so we can take a look at it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Norbert

#619
Thx for the great mod.

I want to change the Format of the URL to the feed in BBC-Code, because I don't want to allow direct links. What do I have to change?

Advertisement: