Advertisement:

Author Topic: RSS Feeder  (Read 375331 times)

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,276
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
Re: RSS Feeder
« Reply #460 on: May 20, 2009, 04:22:57 PM »
Link?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline lukasz.nowicki

  • Semi-Newbie
  • *
  • Posts: 10
Re: RSS Feeder
« Reply #461 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.

Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: RSS Feeder
« Reply #462 on: May 21, 2009, 01:39:21 AM »
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.
« Last Edit: May 21, 2009, 11:19:40 AM by mrtrc266 »

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • SID Giessen
Re: RSS Feeder
« Reply #463 on: May 21, 2009, 04:27:39 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

Offline MUSTAfaINE

  • Semi-Newbie
  • *
  • Posts: 56
  • Gender: Male
  • Metal Up Your ASS!!
    • Metal Up Your ASS!!!


Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,276
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
Re: RSS Feeder
« Reply #465 on: May 21, 2009, 12:13:16 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 ''

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.

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...
                     

Offline lukasz.nowicki

  • Semi-Newbie
  • *
  • Posts: 10
Re: RSS Feeder
« Reply #466 on: May 21, 2009, 02:20:29 PM »
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 ''

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

Offline MUSTAfaINE

  • Semi-Newbie
  • *
  • Posts: 56
  • Gender: Male
  • Metal Up Your ASS!!
    • Metal Up Your ASS!!!
Re: RSS Feeder
« Reply #467 on: May 22, 2009, 03:02:16 AM »
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..


Offline TommyJoe

  • Semi-Newbie
  • *
  • Posts: 35
  • Gender: Male
Re: RSS Feeder
« Reply #468 on: May 22, 2009, 10:41:23 AM »
Well it looks like the 2.0RC1-1 also is not compatible with the feeder.

Any suggestions?

TIA

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,276
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
Re: RSS Feeder
« Reply #469 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
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline TommyJoe

  • Semi-Newbie
  • *
  • Posts: 35
  • Gender: Male
Re: RSS Feeder
« Reply #470 on: May 22, 2009, 04:15:39 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

Offline lukasz.nowicki

  • Semi-Newbie
  • *
  • Posts: 10
Re: RSS Feeder
« Reply #471 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

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,276
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
Re: RSS Feeder
« Reply #472 on: May 23, 2009, 05:50:36 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...
                     

Offline MUSTAfaINE

  • Semi-Newbie
  • *
  • Posts: 56
  • Gender: Male
  • Metal Up Your ASS!!
    • Metal Up Your ASS!!!
Re: RSS Feeder
« Reply #473 on: May 25, 2009, 02:30:09 AM »
no man, its not working in 2.0 also..


Offline Garou

  • Sr. Member
  • ****
  • Posts: 759
  • Gender: Male
  • On Hiatus.
    • Balance Games
Re: RSS Feeder
« Reply #474 on: May 25, 2009, 08:06:55 AM »
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.

Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: RSS Feeder
« Reply #475 on: May 26, 2009, 01:53:42 PM »
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.

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,276
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
Re: RSS Feeder
« Reply #476 on: May 26, 2009, 03:47:45 PM »
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...
                     

Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: RSS Feeder
« Reply #477 on: May 26, 2009, 04:06:09 PM »
Sorry for my ignorance but what exactly would I comment out?

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,276
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
Re: RSS Feeder
« Reply #478 on: May 26, 2009, 04:27:57 PM »
In ScheduledTasks.php
Code: [Select]
$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...
                     

Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: RSS Feeder
« Reply #479 on: May 26, 2009, 04:42:43 PM »
Did I do this right? Now when I run a scheduled task it gives me a 500 error.
 
Code: [Select]

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