Advertisement:

Author Topic: RSS Feeder  (Read 375974 times)

Offline gffb

  • Semi-Newbie
  • *
  • Posts: 86
Re: RSS Feeder
« Reply #240 on: February 12, 2009, 01:11:23 PM »
Can I suggest that you make a zip version please and see if its my server thats causing the issue?

Offline gffb

  • Semi-Newbie
  • *
  • Posts: 86
Re: RSS Feeder
« Reply #241 on: February 12, 2009, 01:26:05 PM »
Ok I solved this issue by extracting all the files to my local PC then making a .ZIP file and uploading that.

Offline Jimi1810

  • Semi-Newbie
  • *
  • Posts: 23
Re: RSS Feeder
« Reply #242 on: February 12, 2009, 04:04:57 PM »
Sorry if this has been covered but I am able to import the full article without any problems, except one; when ever there is a "£" symbol the text stops.

http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/football/gossip_and_transfers/rss.xml [nofollow]

thats the feed I'm using so if I take this post for example:

http://news.bbc.co.uk/sport1/hi/football/gossip_and_transfers/7878186.stm [nofollow]

where it says "AC Milan general manager Adriano Galliani admits their offer for David Beckham is way off what LA Galaxy want - the Americans are believed to value the midfielder at £15m. (Daily Mirror)"

I don't get that in the thread, I get "AC Milan general manager Adriano Galliani admits their offer for David Beckham is way off what LA Galaxy want - the Americans are believed to value the midfielder at"

It stops at the "£" and doesn't post anything else below it from the page, it does this for every story it imported which contains a "£" symbol, is there any way I can fix this? if it matters, the regular expression I am using is:

Code: [Select]
~<div class="mxb">(.*)<h3>Bookmark with:<\/h3>~siU
thanks, I love this mod, it's the main reason I am converting to SMF  :D

Sorry don't mean to be a pain SlammedDime, but have you had a chance to check this out at all?

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 #243 on: February 13, 2009, 11:14:13 AM »
Jimi- I've started looking into it... it looks like the regex is okay, so simple pie is doing it's job, it must be something with the code I wrote, i'll have to dig through it a bit more.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline Jimi1810

  • Semi-Newbie
  • *
  • Posts: 23
Re: RSS Feeder
« Reply #244 on: February 13, 2009, 12:39:34 PM »
Thanks again, I appreciate your help :)

Offline rii

  • Semi-Newbie
  • *
  • Posts: 33
Re: RSS Feeder
« Reply #245 on: February 14, 2009, 02:39:58 AM »
I would like to limit the length of the post titles. I have some article items with very long names. I just want them to be shown up about 20 characters only.

Please help me.


Thank you.

Offline MrSandman

  • Semi-Newbie
  • *
  • Posts: 13
Re: RSS Feeder
« Reply #246 on: February 14, 2009, 11:35:04 AM »
is this limited to 1 page of feeds? i have filled 1 page and cannot add anymore feeds? any ideas/suggestions

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 #247 on: February 14, 2009, 02:43:16 PM »
rii - you'll have to modify the relevant code in ScheduledTasks.php, search for $subject =


MrSandman - What happens when you try to add another one?  Does it just not show up?  It should show multiple page selections at the top.
Edit, I found the problem, damn...  I'll release a new version in the next day or two to solve the issue.
If you want to fix it yourself for the time being (you'll have to reverse the change to upgrade or uninstall)
Open ManageSettings.php
Code: (Find) [Select]
list($numFeeds) = $smcFunc['db_fetch_row'];
Code: (Replace) [Select]
list($numFeeds) = $smcFunc['db_fetch_row']($request);
« Last Edit: February 14, 2009, 02:46:24 PM by SlammedDime »
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline MrSandman

  • Semi-Newbie
  • *
  • Posts: 13
Re: RSS Feeder
« Reply #248 on: February 14, 2009, 02:59:04 PM »

Edit, I found the problem, damn...  I'll release a new version in the next day or two to solve the issue.
If you want to fix it yourself for the time being (you'll have to reverse the change to upgrade or uninstall)
Open ManageSettings.php
Code: (Find) [Select]
list($numFeeds) = $smcFunc['db_fetch_row'];
Code: (Replace) [Select]
list($numFeeds) = $smcFunc['db_fetch_row']($request);


thanks. great mod by the way

Offline derby

  • Jr. Member
  • **
  • Posts: 389
    • DerbHotJobs
Re: RSS Feeder
« Reply #249 on: February 14, 2009, 04:26:53 PM »
@poster pls how do i add it to my forum smf 1.1.8 step by step manual pls

Offline MrSandman

  • Semi-Newbie
  • *
  • Posts: 13
Re: RSS Feeder
« Reply #250 on: February 14, 2009, 04:31:01 PM »

Edit, I found the problem, damn...  I'll release a new version in the next day or two to solve the issue.
If you want to fix it yourself for the time being (you'll have to reverse the change to upgrade or uninstall)
Open ManageSettings.php
Code: (Find) [Select]
list($numFeeds) = $smcFunc['db_fetch_row'];
Code: (Replace) [Select]
list($numFeeds) = $smcFunc['db_fetch_row']($request);


thanks. great mod by the way

I made the change and am still only allowed 40 feeds. it does show "The feed was created successfully "
but then the feed is not listed. still only have 1 page of 40 feeds.

Offline MrSandman

  • Semi-Newbie
  • *
  • Posts: 13
Re: RSS Feeder
« Reply #251 on: February 14, 2009, 04:44:27 PM »
never mind. its working fine now. i forgot to save my changes. LOL

thanks again

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 #252 on: February 14, 2009, 06:26:00 PM »
@poster pls how do i add it to my forum smf 1.1.8 step by step manual pls
Upgrade to SMF 2.0.

This does not support 1.1.8, nor will it ever.  Sorry.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline rii

  • Semi-Newbie
  • *
  • Posts: 33
Re: RSS Feeder
« Reply #253 on: February 14, 2009, 06:37:53 PM »
Thank you for the response. I tried it like this in ScheduledTasks.php file. No error but not happening yet. The inserted lines are between //Test subject/title length comments.

Code: [Select]


// Might have to update the subject for the single topic people

$subject = (!empty($feed['topic_prefix']) ? $feed['topic_prefix'] . ' ' : '') . (!empty($feed['single_topic']) && empty($feed['topic_id']) && !empty($feed_title) ? $feed_title : $title);

//start Test subject/title length
$lengthnew=20;
$subjectnew= substr($subject, 0, $lengthnew);
//end Test subject/title length

// Create the message/topic/poster options and insert the topic on the board
$msgOptions = array(
'subject' => $subjectnew,
'body' => $message,
'approved' => !$feed['require_approval'],
'smileys_enabled' => false,
'icon' => $feed['icon'],
);

Can you look into this one?

Thanks.
« Last Edit: February 14, 2009, 06:39:31 PM by rii »

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 #254 on: February 14, 2009, 07:01:51 PM »
I don't see an issue with it... not sure why it wouldn't be working.  Is it still posting the regular length subject?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline rii

  • Semi-Newbie
  • *
  • Posts: 33
Re: RSS Feeder
« Reply #255 on: February 14, 2009, 07:14:56 PM »
Yes. It works on the forum subject only but not on RSS block. Can you please test it on yours?

Thanks.
« Last Edit: February 15, 2009, 03:18:04 AM by rii »

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 #256 on: February 14, 2009, 10:14:54 PM »
It works like it should for me.  Are you sure you saved your changes to the file?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline NHWD

  • Jr. Member
  • **
  • Posts: 304
Re: RSS Feeder
« Reply #257 on: February 14, 2009, 10:21:29 PM »
@poster pls how do i add it to my forum smf 1.1.8 step by step manual pls
Upgrade to SMF 2.0.

This does not support 1.1.8, nor will it ever.  Sorry.
just wondering but why not?

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 #258 on: February 14, 2009, 10:26:05 PM »
@poster pls how do i add it to my forum smf 1.1.8 step by step manual pls
Upgrade to SMF 2.0.

This does not support 1.1.8, nor will it ever.  Sorry.
just wondering but why not?
It would be far too difficult to backport and would require a lot of recoding and I don't have the time for it, nor do I plan on running any new sites of my own on the 1.1 line of SMF.  I don't normally do mods because other's need them, I do them because I need the functionality for one of my sites, so I choose to release my work because I know others will probably benefit from it.  It also uses a lot of 2.0 specific functions to perform tasks, so I would have to rewrite it to manually support what 2.0 does for me.  Not to mention the scheduled tasks portion.  And vbgamer wrote a similar mod to this for the 1.1 series, although he is no longer supporting it.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline Guy Verschuere

  • Jr. Member
  • **
  • Posts: 257
  • Gender: Male
    • guyverschuere on Facebook
    • Egregius on GitHub
    • guyverschuere on LinkedIn
    • @guyverschuere on Twitter
    • Egregius.be
Re: RSS Feeder
« Reply #259 on: February 15, 2009, 02:28:47 AM »