News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

RSS Feeder

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

Previous topic - Next topic

SlammedDime

SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

lukasz.nowicki

I am sorry, I've just read the footer :)

I got two questions about this (great anyway) mod:

1. How to change word "Source:" at the bottom of added topic to my language? I'd prefer something like "Źródło: " ("Zrodlo" without polish characters).

2. Is there a way to run strip_tags function on body from feed? My feed give me images and I don't need them :)

Thank you in advance.

PS: sorry for my english.

mrtrc266

#462
Quote from: zach21uk on May 17, 2009, 01:24:26 PM
Hi There.  I have RSS Feeder running on my forum, however every day or two, my RSS feeds go from "Enabled" to "Disabled".

Any idea why this is happening?  Its quite annoying...

The same thing happens to me, this only seems to happen on feeds that I have keywords for though. I haven't been able to catch an error in the error log though.

Eclipse16V

Quote from: Eclipse16V on May 11, 2009, 12:52:23 AM
Hello, only once thanks Mod for this super. Runs with me in 2.0 RC1 without problems. I have times one only ask now. How can I make it that the RSS news those than 7 days am older, automatically to be deleted? Is there there in the Mod already a function which I unfortunately yet did not find or there is another possibility? Thanks
Help  ::)
I worked with:
SMF 2 in German

Shop:
SID Giessen


SlammedDime

Quote from: lukasz.nowicki on May 20, 2009, 05:20:34 PM
I am sorry, I've just read the footer :)

I got two questions about this (great anyway) mod:

1. How to change word "Source:" at the bottom of added topic to my language? I'd prefer something like "Źródło: " ("Zrodlo" without polish characters).

2. Is there a way to run strip_tags function on body from feed? My feed give me images and I don't need them :)

Thank you in advance.

PS: sorry for my english.
1) It's in ScheduledTasks.php.  I forgot to put the language string in the language file.
2) It already strips tags, but I purposefully left images in the feed.  You can look in the Subs-Rss.php file at the strip tags function and modify the <img> search and replace and change the replace variable to ''

Quote from: Eclipse16V on May 21, 2009, 04:27:39 AM
Quote from: Eclipse16V on May 11, 2009, 12:52:23 AM
Hello, only once thanks Mod for this super. Runs with me in 2.0 RC1 without problems. I have times one only ask now. How can I make it that the RSS news those than 7 days am older, automatically to be deleted? Is there there in the Mod already a function which I unfortunately yet did not find or there is another possibility? Thanks
Help  ::)
I thought I already replied to this.... it's not possible with the mod, and I probably won't be building that in.

Quote from: MUSTAfaINE on May 21, 2009, 05:01:01 AM
Quote from: SlammedDime on May 20, 2009, 04:22:57 PM
Link?

yeah man if th links are writen look like that www.blabla.com[ /ur l]

not working only writes something you know please check it or how can i edit the mod.
No, I mean, I need a link to your board with an example.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

lukasz.nowicki

Quote from: SlammedDime on May 21, 2009, 12:13:16 PM1) It's in ScheduledTasks.php.  I forgot to put the language string in the language file.
2) It already strips tags, but I purposefully left images in the feed.  You can look in the Subs-Rss.php file at the strip tags function and modify the <img> search and replace and change the replace variable to ''

Thank you very much, that was very helpful and it works great.
Best regards

MUSTAfaINE

slammeddime

http://metalfrm.com/index.php/topic,26381.0.html

i hope this link is shows you what i want to say

please look at the CYNIC - PROMO DEMO 2008 must be a download link..


TommyJoe

Well it looks like the 2.0RC1-1 also is not compatible with the feeder.

Any suggestions?

TIA

SlammedDime

Sure it is, I just haven't updated the package to be installable on RC1-1... You can emulate the RC1 version by clicking the 'Advanced' button below all of your installed packages and change the version to RC1
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

TommyJoe

Quote from: SlammedDime on May 22, 2009, 12:55:36 PM
Sure it is, I just haven't updated the package to be installable on RC1-1... You can emulate the RC1 version by clicking the 'Advanced' button below all of your installed packages and change the version to RC1

And you are absolutely correct, it did work. Surprised, I never saw any documentation on that little button!

Thank You! :D

lukasz.nowicki

Suggestion: additional checkbox "Mark as read for everybody" in options.
Is is possible or maybe even consider?
Best regards

SlammedDime

Quote from: lukasz.nowicki on May 23, 2009, 05:20:39 AM
Suggestion: additional checkbox "Mark as read for everybody" in options.
Is is possible or maybe even consider?
Best regards

Unfortunately it's not easily possible, I've already tried and considered it in the very first release of the mod.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

MUSTAfaINE

no man, its not working in 2.0 also..


Garou

Check the Feed at...
http://validator.w3.org/feed
It could be the link isn't in the feed to begin with or something else is configured in the feed incorrectly.

mrtrc266

Ok, I finally snagged a couple of errors.

As previously mentioned for one feed I have some keywords and that feed always was disabled automatically every day or 2. (that was the only feed that got disabled)

Today I checked again and both of my feed were disabled and here are the errors.

http://monsters-mansion.com/index.php?scheduled=task;ts=1243296000 
RSS Feeder: http://www.pokernews.com/news/rss.xml (cURL error 7: couldn't connect to host)

http://monsters-mansion.com/index.php?scheduled=task;ts=1243296000 
RSS Feeder: http://www.railbirds.com/rss/latestblogs.php (XML error: XML_ERR_NAME_REQUIRED at line 10, column 21)

Even if an error occures is there a way to make it so it won't disable the feed?

Thank in advance as always.

SlammedDime

Yea, it is easy enough just to comment out that block of code in ScheduledTasks.php... the purpose of it is to alert you that there may be an issue with the feed and if you have it set to run the feed script frequently, to prevent timeouts or script errors.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mrtrc266

Sorry for my ignorance but what exactly would I comment out?

SlammedDime

In ScheduledTasks.php
$smcFunc['db_query']('', '
UPDATE {db_prefix}rssfeeds
SET enabled = 0
WHERE id_feed = {int:feed}',
array(
'feed' => $id,
)
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mrtrc266

Did I do this right? Now when I run a scheduled task it gives me a 500 error.


   /*$smcFunc['db_query']('', '
    UPDATE {db_prefix}rssfeeds
    SET enabled = 0
    WHERE id_feed = {int:feed}',
    array(
     'feed' => $id,
    )*/

Advertisement: