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

keith021773

I have found out that if most feeds come from feedburner and sites like that.   Just put </div> in for the REGULAR EXPRESSION.  Works for me.

PatrickPriest

My feed is coming straight from my website.

LotusRS

whether it can automatically separate the image from the text by code <br /> <br />?

Surf3rDud3

By any chance this mod work for 2.0 RC3?

timmytimmy

#1144
Quote from: Surf3rDud3 on December 23, 2010, 11:39:42 PM
By any chance this mod work for 2.0 RC3?

yes, does this still work with 2.0 RC3?

willing to donate if you can make this happen :)

ford1001

how often are the feeds updated?

rakicko

#1146
what to write here :
regular Expression
Required if retrieving full article. This must be PCRE format. The match is expected to be in second index of the array ([1]).

my forum
http://www.champions-side.com

and a rss

Quotehttp://www.balcanw.com/external.php?type=RSS2&forumids=11


rakicko

#1147
can anybody help me with this?maybe just how to remove a acctuall post link?

rakicko

few guys shows me ..how to do it..so for me ..dont worry :)

endomorph

Perfect Mod, much better than the other one.

Just one thing, how can I strip all the URL's from the article body ? Two of the feeds I am pulling in lace their article bodies with tag URL's

rakicko

i am getting this error ..when starting sculder task
Class 'Net_IPv6' not found in /Sources/Subs-Rss.php on line 12140

JBlaze

Dime, I'm getting a ******load of errors in my error log. Haven't had time to look at them, but I figured I'd post them for you anyways.

SMF 2.0 RC4
PHP 5.2.13
Apache 2.0.63 (Unix)
Jason Clemons
Former Team Member 2009 - 2012

SlammedDime

There's a post a page or two back I think... need to adjust the error logging line in index.php to exclude Strict errors from being logged... just add '& ~E_STRICT' to the error_reporting call in index.php and that should clear it up.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

JBlaze

Quote from: SlammedDime on January 08, 2011, 12:15:00 PM
There's a post a page or two back I think... need to adjust the error logging line in index.php to exclude Strict errors from being logged... just add '& ~E_STRICT' to the error_reporting call in index.php and that should clear it up.
Ah cool. Thanks.
Jason Clemons
Former Team Member 2009 - 2012

Makar

SlammedDime 

few questions
I did as written in the message

Quote from: Spuds on January 12, 2010, 03:30:34 PM
@Satfreak
find:
// Format the post
$message =
($item->get_permalink() !== null ? '[url=' . $item->get_permalink() . ']' . $title . '[/url]' : $title) . '
' . ($item->get_date() !== null ? '[b]' . $item->get_date() . '[/b]
' : '') . '
' . $body . '

' . (!empty($source) ? '[b]' . $txt['rss_feed_source'] . ':[/b] ' . $source . '

' : '') . (!empty($feed['footer']) ? $feed['footer'] : '');


replace with:

// Format the post
$message =
$title . '
' . ($item->get_date() !== null ? '[b]' . $item->get_date() . '[/b]
' : '') . '
' . $body . '

' .  (!empty($feed['footer']) ? $feed['footer'] : '');


how to remove the time? (why would it ever be put there)
how to remove the link from the message body?
or make them inactive ........

Sorry for my english

Makar

Quote from: Makar on January 09, 2011, 11:56:14 AM

replace with:

// Format the post
         $message =
$title . '
' . ($item->get_date() !== null ? '' . $item->get_date() . '
' : '') . '
  dell
' . $body . '

' .  (!empty($feed['footer']) ? $feed['footer'] : '');


how to remove the time? (why would it ever be put there) found and made himself
how to remove the link from the message body?  -------- it is still relevant
or make them inactive ........



I understand we must add a rule here?

// We're all set to finally create the post
// Strip out all of the tags so it's just text with new lines and line breaks
// We're gonna try and maintain as much HTML as possible
$body = striphtml(html_to_bbc(preg_replace(array('~^\s+~', '~\s+$~'), '', $body)));
$title = striphtml($item->get_title());
$feed_title = $rss_data->get_title() !== null ? striphtml($rss_data->get_title()) : '';


$body = striphtml(html_to_bbc(preg_replace(array('~^\s+~', '~\s+$~'), '', $body)));

what replace it?
tell me please


Sorry for my english

tbombaci

I have read through most of the thread for an answer but only found the same question asked back in 2009.

Any feed I add to the system yields this error upon execution:

Quote(The data could not be converted to UTF-8)

Any help is appreciated.

Tom

Stigmartyr

Quote from: tHe-KiLlEr on December 11, 2010, 08:17:50 PM
What does the mod mean by "Required if retrieving full article. This must be PCRE format. The match is expected to be in second index of the array ([1]). "


Can anyone kindly explain how this feature works?  I'd like to use it but I have no idea the parameters or how it works or what regular expression means :P

SlammedDime

See the very first post of the topic... there is a link to a post later in the topic that explains how to create a regex.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

fukdup

Quote from: Walgermo on March 17, 2010, 04:07:29 PM
Hi

I am getting a lot of errors every time RSS Feeder fetches feeds, but it still works..

The error i get is:
Quote8192: Assigning the return value of new by reference is deprecated
/httpd.www/Sources/Subs-Rss.php
Line: 15009

And when i click on that file (/httpd.www/Sources/Subs-Rss.php) i get this

QuoteFatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10914559 bytes) in /customers/styrkeboka.com/styrkeboka.com/httpd.www/Sources/Subs.php on line 2585

is this common? is there some fix for this?

*I have attached the files in the description.

well i managed to find how to fix it without adjusting the error reporting.go to the sources folder and open rss-subs.php.i use crimson editor cause it's free and has a search and replace function.

search for "=& new" and replace every occurence with "= new"

worked a treat.i think there were like 93 occurences, so get a program thatwill do it for u.....

no error when it's ran even if i run it manually for me now using default error reporting

Advertisement: