• Welcome to Simple Machines Community Forum. Please login or sign up.
September 26, 2021, 02:34:30 AM

News:

Wondering if this will always be free?  See why free is better.


RSS Feeder

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

Previous topic - Next topic

gffb

Can I suggest that you make a zip version please and see if its my server thats causing the issue?

gffb

Ok I solved this issue by extracting all the files to my local PC then making a .ZIP file and uploading that.

Jimi1810

Quote from: Jimi1810 on February 09, 2009, 04:56:19 AM
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:

~<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?

SlammedDime

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

Jimi1810

Thanks again, I appreciate your help :)

rii

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.

MrSandman

is this limited to 1 page of feeds? i have filled 1 page and cannot add anymore feeds? any ideas/suggestions

SlammedDime

February 14, 2009, 02:43:16 PM #247 Last Edit: February 14, 2009, 02:46:24 PM by SlammedDime
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);
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

MrSandman

Quote from: SlammedDime on February 14, 2009, 02:43:16 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

derby

@poster pls how do i add it to my forum smf 1.1.8 step by step manual pls
LATEST JOB VACANCIES



www.derbhotjobs.com

MrSandman

Quote from: MrSandman on February 14, 2009, 02:59:04 PM
Quote from: SlammedDime on February 14, 2009, 02:43:16 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.

MrSandman

never mind. its working fine now. i forgot to save my changes. LOL

thanks again

SlammedDime

Quote from: derby 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
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...
                     

rii

February 14, 2009, 06:37:53 PM #253 Last Edit: February 14, 2009, 06:39:31 PM by rii
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.



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

SlammedDime

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

rii

February 14, 2009, 07:14:56 PM #255 Last Edit: February 15, 2009, 03:18:04 AM by rii
Yes. It works on the forum subject only but not on RSS block. Can you please test it on yours?

Thanks.

SlammedDime

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

NHWD

Quote from: SlammedDime on February 14, 2009, 06:26:00 PM
Quote from: derby 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
Upgrade to SMF 2.0.

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

SlammedDime

Quote from: CL0WNER on February 14, 2009, 10:21:29 PM
Quote from: SlammedDime on February 14, 2009, 06:26:00 PM
Quote from: derby 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
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...
                     


Advertisement: