RSS Feeder

Started by SlammedDime, January 11, 2009, 06:06:42 AM

Previous topic - Next topic

Kindred

no file or variable.   go to admin > maintenance > Scheduled Tasks

As for "no different than having an active forum". You're incorrect, especially if you are drawing from your own feed on your own server...   feedback loop?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SlammedDime

Quote from: Kindred on February 25, 2011, 11:37:25 AM
strange....   The "import full article" worked for one article, but every other article is just the stub from the RSS feed



~<div class="msgarea entry-content">(.*)<\/div>~siU
pulling from
http://rss.groups.yahoo.com/group/LegionsOfSteel/rss


or
~<!-- Generated by XStandard version 2.0.6.0 on 2011-02-18T16:56:07 --><p>(.*)<!-- Start of articleButtonNav.jsp -->~siu
pulling from
http://feeds.games-workshop.com/Astronomican

I'm not sure on the first one, will have to test later... for the second one... there is an intermediate page between the feed and article, which asks for locale.  That is what is likely stopping it from working properly.  The second one isn't an actual feed though, it's an HTML page... you'd want to use http://feeds.games-workshop.com/Astronomican?format=xml instead.  But that still results in the same issue, with the intermediate page.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

f_aston



I modified the .xml file to install this Mod on 2.0 RC 5 and it appears to have worked fine.


Great mod!  We're impressed already! 

SlammedDime

Would have been easier to use the 'Advanced' version emulate in the bottom of the Browse Packages screen... but glad it worked for you! :)
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

ford1001

Please upgrade this mod, i find it better than the other one, but now i can't use it because it isn't updated to RC5

Kindred

It works fine on rc5
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ford1001

it comes up for me that the package is either corrupt or cannot work on this software

Kindred

Use the emulate version feature... Under advanced
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Angelina Belle

#1208
I think I'm liking this mod, SlammedDime. Nice work. Thanks for sharing and supporting it.

I was looking for an easy (for me) way to create a non-HTTP way to make SMF posts.
This is for users who will be temporarily out of HTTP range, but will have a text-only email tunnel (via HF radio digital modes) to the internet, to enable them to post some on-the-scene updates from their remote location.

And I think I've found it. Email the plain-text (can even attach a pic if conditions/bandwidth is good enough) to google blogger and, an hour later, there it is.

Your code is easy enough to follow, and I figured out the answer to my question about caching. I see exactly how I could have shortened the time-to-cache-refresh during testing.

I have one questions.

Would you consider changing the way the mod handles an RSS post with no title? Currently, the results are ugly for a blogspot blog. If you want me to create you an example, I'll do it. I don't have one at the minute (I fixed the blog).
   * I fixed the blogspot blog (added missing blog post titles)
   * I deleted the imported posts from my forum -- all of them
   * I deleted the RSS Feeder feed
   * I added the RSS Feeder feed back[/s]
   * But I'm still getting at least one post with a blank title.  In fact, I think I've got it twice now -- once with and once without the title. Only , it is hard to tell, because the URL for the no-title post is bad (http://www.rockhallsailingclub.org/smf2test/data:post.url) for the no-title post.

2) What about caching of the feed? How often is that updated?
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Angelina Belle

This is a pretty minor "why would anyone want to do that" kind of things that you might call a bug.
When there are errors in the Add Feed form and you send it back to the user to fix, you don't do all the necessary specialchars stuff.
So that, if the regex contains ", it breaks the form.

Here's what I did:
  • I supplied regex ~<div class="entry-content">(.*)<div id="ilikeposts">~siU
  • I forgot to fill in "post as"

    Here's what happened:
    <input type="text" size="50" name="feed_regex" value="~<div class="entry-content">(.*)<div id="ilikeposts">~siU" />with predictable (and perhaps browser-dependant?) results.

    I had the same problem when I repeated the experiment with backslashes on the quotes:
    <input type="text" size="50" name="feed_regex" value="~<div class=\"entry-content\">(.*)<div id=\"ilikeposts\">~siU" />

    Of course, the workaround is just to I get the whole form right the first time -- all the specialchars stuff gets done to it in that case.


Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

SlammedDime

Thanks for that... I'll have to fix that real soon, as that could be a security vulnerability...
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Angelina Belle

Quote from: AngelinaBelle on April 05, 2011, 05:03:53 PM
Would you consider changing the way the mod handles an RSS post with no title? Currently, the results are ugly for a blogspot blog posting with a blank title

Glad to find it. How about the problem of a post with no title? Google Blogger allows that.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Moodx

Hi all fellow smfu's ;)

I noticed when my vps was down because of a problem at the datacentre that feeds were not being fetched, wow pretty obvious.
I also noticed that when, for whatever reason, a feed can't get fetched it is set to disabled. My question is quite simple; Is there a way to keep feeds enabled even when they can't be fetched?
Like, can I change anything in the code so feeds won't get disabled anymore?

Thanks very much! :-D

Regards,
Robert

MrMorph

Hi SlammedDime, what a great mod this is :)

I'm planning to use it on one of my sites and will send you a donation for all your efforts.

One thing I need help on though.  One feed I have doesn't show the images quite right, see screen shot.

I searched through the thread but found no solution.  How could I get a couple of line breaks in there after the image ?

I'm only using this one feed on my site and all their images are doing that.

Would really appreciate your assistance :)

Thanks !

MrMorph

OK so not much in the way of support then ?

Another problem though, for some reason it keeps disabling itself.  Is that a 'feature' ?

SlammedDime

The 'find/replace' search would have to be modified to add some line breaks.  The reason the feed keeps disabling itself is because it is encountering errors (which can be seen in the error log) preventing the script from retrieving the feed.  It's a feature to prevent continuous hits to a non-working RSS feed that could consume unneeded resources.

In Subs-Rss.php, you can try editing the following on line 68:
Code (Find) Select
"[img]\\1[/img]",

to
Code (Replace) Select
"[img]\\1[/img]\n\n",
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

MrMorph

Ah great, thanks for your reply and please forgive my impatience  ::)

I'll try the image edit out.  I thought the disable feature might be something like that, very smart idea.  I think my source rss is up the creek then.  Bah.  Maybe I can get them to fix the errors in their feed.

Many thanks for your assistance :)

FlipPro

Has anyone been able to make this work on 1.1.13 yet? I understand that this mod relys heavily on the scheduled tasks function of SMF2.0. But what if we took out the scheduled tasks and setup our own cron job to check for feeds? I only ask this because this mod WORKS. It worked great on mmf when i ran RC2 but now I am running the original version, and I have been fighting with vbs mod for the past 3 days trying to get it to post right. I already have an engine which converts all feeds into full feeds, and your mod worked great when posting it. Is there some type of limitation in 1.1.13 that is prevents us from posting in HTML so that div tags and <p> tags are properly converted? I need to understand all this more because its crucial to the new site I'm opening up.

InfoStrides

Hello,

Is it possible to have the source with website name? Such as below:

Source: The InfoStrides
Source: BBC UK

Angelina Belle

Here's a tiny little display problem:
When the html is re-cast as BBC, you can wind up with BBC like [size=85%], which is not valid bbc, circa SMF 2.0.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Advertisement: