RSS Feed Poster

Started by SMFHacks.com Team, January 11, 2007, 07:46:04 PM

Previous topic - Next topic

jay.clark

Quote from: riou on June 23, 2011, 07:44:49 PM
Only Admins can do html stuff in 2.0 series unfortunately, what I found is you can just edit the post and save and it will format it if your account is an Admin, it's some extra work but, eh maybe it gets changed in the future :P

Whoa ... I had expected something better than that from da Gamer.

To me the whole point of putting RSS feeds into posts is to have additional content with minimal additional labor, ether by creating a feed as I have done, or by importing a feed.

Having to go in and "touch" each post seems kinda brain damaged. Especially since you have to have admin rights in order to create the link, and since any user on my system can use HTML.

I will go try your cure, but I certainly hope for an upgrade or perhaps a pointer to another mod that does not have this feature.

Vegas Jay
SMF 1.11- SMF 2.0 RC2/RC3 - - RSS Feed Poster 2.2,RSS Feeder 1.1.4, Downloads System Pro 1.0.17.1, SMF Classifieds 1.3.5, SMF Gallery Pro 3.0.2, SimpleDesk - Integrated Helpdesk for Simple Machines Forum 1.0 Felidae, Aeva Media 1.1b, Ultimate Profile     0.9, Google Analytics Code 1.1, Twitter and Facebook Publisher mod 2.4, Stop Spammer 2.3.7, SMF Links 2.2, Site map 2.1.2, AjaxChat Integration 3.2.1, Ad Management 2.3.6

SMF (Donated) SMF Links (donated) - Ad Manager (donated) - phpMyChat (donated)

lazylivin

Quote from: lazylivin on June 19, 2011, 02:35:56 AM
Question when the feed posts on my forum it posts the brief description and link to the article however when I view the same feed with my reader I get pictures and everything. Is that as designed? Is their way to get full article when it posts like my reader does?

Just a Bump. Thanks

ukhalik2

Can it get attachments from other smf forums feeds as well?

vbgamer45

Quote from: ukhalik2 on June 25, 2011, 06:51:16 PM
Can it get attachments from other smf forums feeds as well?
No it just can get what is in the feed itself
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

eforhan

By any chance, has anyone come up with solutions to either the HTML or the "doesn't list the latest feed item" issues,  yet?

Hardliner

I have the mod currently installed and the Feed Poster Configuration page was loading properly. Now it only loads the first half of the feed list. All options below and even SMF copyright info is missing. I believe there is a corrupted file and have reinstalled the mod with no success. Suggestions?

Saftek

I've spent a lot of time trying to get this to work. Currently it pulls feeds and dumps them into posts without doing any translation... so there is a page of html code, no graphics and its impossible to read.

I'm sure there must be something I'm doing wrong, but I certainly can't find it... html is enabled in SMF and in this program... any ideas?  And, no opening and saving the messages does not work... obviously that isn't an option in any event.

npiccoli

#2187
I too have been spending days trying to get this working properly. I am not sure if it's something with my forums' hosting or if it has something to do with the feed URL I am using. Could somebody help me find out the problem? I don't have the /cronrss.php file, so I am using the fake ones and selecting to use "all" with the "feed download method." Nothing is working...

This is the feed URL: http://news.google.com/news?ned=us&topic=t&output=rss

EDIT: Okay, this is weird. After attempting to use this URL for hours it just now started working properly...

EDIT 2: It seems to have quit working again. Nothing I do helps...

hesaab

Hi,
My forum language is persian(utf8). when rss fedd poster post a rss, all of the post become like this:
"????????????"
?????
???????????????????????? ?????????????????? ????????? ????
How can I solve this problem?
Thanks
<a href="http://www.tasavi.ir [nofollow]" rel="no-follow">تالار گفتگوی حسابداری</a>

dematrix2571

Hello everyone,  I have use this feeds and so much appreciate the developers on this.  I have a question on the AMOUNT  informaiton it pulls from each feeds.  I know from other feeds mods  that you can add parameters to grab a few more lines of the feed.  Is there a way to grab extras few lines of the feeds.  For example, we are pulling feeds from a local newspaper. It grabs the first paragraph of the feeds.  Then I put a source link of the feed.   

I want to pull 2 paragraph in length of the feed.  Is there a way to do that?

mikser

Thanks for a useful mod!

Would it be possible for the mod to understand pubDate-tag and put it into the body of the message or/and the subject? It would be very useful, especially for articles-feeds which may contain entries many months or even years from now...

derockonroll

This is a terrific mod that is working beautifully on my forum. The only problem is that the html in one of the feeds doesn't display properly, and all the post titles have question marks for some reason. I've tried to correct this by enabling and then disabling html, but that had no effect. What's causing the problem? I'm using 2.0R3.


GhostHunter

Quote from: acadiaforum.net on April 04, 2011, 01:55:22 PM

Here's what I had to do to get HTML tags to parse correctly in the rss feeds.

In Subs_RSS.php, find this line (mine was line 294)
     $msg_body = '[ HTML ]' . $msg_body . '[ /HTML ] ';

and replace it with this:
     $msg_body = '[HIDDENTAG]' . $msg_body . ' [/HIDDENTAG]';

Then in Subs_Post.php, find the HTML parsing 'if' loop (line 210-220) and add this code after it:

if (!$previewing && strpos($parts[$i], '[HIDDENTAG]') !== false)
{
$parts[$i] = preg_replace('~\[HIDDENTAG\](.+?)\[/HIDDENTAG\]~ise', '\'[html]\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'\', \'  \' => \'  \')) . \'[/html]\'', $parts[$i]);
}



First of all, I want to thank all of the people in these Forums who have the time and knowledge to figure all of this stuff out and help the rest of us. I have been indebted to your service many times over the past months. Thank you very much!

I was overjoyed when I found this solution, and subsequent reports that it worked well. I know just enough about PHP to stay out of trouble, and I can usually suss out what is going on in a basic sort of way and find problems of my own creation. This really looked like it would work. But I just.can't.get.it.to.work. The first line of code replaces the html tag with my (suitably obscure) hidden tag, as it should. But the second part of the mod does not replace the hidden tag with the html tag, leaving the hidden tag in place and visible in the message body.

"find the HTML parsing 'if' loop (line 210-220) and add this code after it" seems pretty clear, and I have tried inserting the new code at various places at and around the end of the 'if' loop with no success over the past week. It looks (to me) like it should work, but it doesn't. I'm not finding any error messages in any logs, either. ???

What am I missing?

SMF 1.1.14, host PHP version 5.3.6.

Regards,

Jim

mikser

Useful mod, thanks!

I am told, that the bug I found is not in the SMF, but that it should be fixed in this mod instead. Could you please look into it and fix the problem? http://www.simplemachines.org/community/index.php?topic=444972.0

frytec

Quote from: mikser on August 06, 2011, 02:43:51 PM
Useful mod, thanks!

I am told, that the bug I found is not in the SMF, but that it should be fixed in this mod instead. Could you please look into it and fix the problem? http://www.simplemachines.org/community/index.php?topic=444972.0


im getting this same issue on my topics.

i would really appreciate if you update the mod to do this conversion, so links and imgs can shown correct in topics.

i can make you a donation for your time spent to do that.

thank you very much, sir.

GhostHunter


frytec

i dont get why smfhacks is not working on this mod anymore.
its a really requested mod with no other like solutions, and im sure all people wanting this feature, like me, would be glad to pay for this mod (like some of the smfhacks' mods).
Pls, dont let it die.

vbgamer45

I run into way too many issues and can't easily be solved plus I have about 50 other projects I am working on anytime and I actually mean 50.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

luuuciano

#2198
Hi! I am trying to add this feed: http://www.smn.gov.ar/feeds/alertas.xml
Here an example content:
<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.00"><title>Servicio Meteorológico Nacional | Alertas Meteorológicos</title>
     <link>http://www.smn.gov.ar</link>
     <description>Información Meteorológica actualizada las 24 horas</description>
     <language>es</language>
     <webMaster>[email protected]</webMaster>
     <copyright>Copyright 2003 SMN | Todos los derechos reservados</copyright>
<channel><image>
     <title>Servicio Meteorológico Nacional | Alertas Meteorológicas</title>
     <url>http://www.smn.gov.ar/gifs/cab-smn.jpg</url>
     <link>http://www.smn.gov.ar/</link></image>

   
   <item>
      <title>Alerta Meteorologica para:  ESTE DE CHACO, CORRIENTES, NORTE DE ENTRE RíOS, NORTE Y CENTRO  DE SANTA FE </title>
  <link>http://www.smn.gov.ar/?mod=pron&amp;id=51</link>
      <description> PROBABLES TORMENTAS FUERTES  </description>
       </item></channel></rss>


I click the Add feed button and then it shows "XML error: not well-formed (invalid token) at line 1"

Any idea? can this be fixed on my side or I will have to ask smn.gov.ar people to fix the feed? :(

best regards! nice mod!

edit: here another one, issue in line 35 http://www.infobiker.com.ar/rss/rss_noticias.php
w3 validator shows nothing there...

edit2: will be trying the fix on #2192, someone have it working ok? any solution to that issue? (html codes as html entities inside html bbc tags)

Well it looks like #2192 works ok but half way... changing the tag to hiddentag do that html tags gets no converted to html entities... but then, it looks like the second code section do not works properly, and [hiddentag] is not converted back to [./html]... any idea how to fix that code to work properly?

it is the last if section here:

if (!$previewing && strpos($parts[$i], '[html]') !== false)
{
if (allowedTo('admin_forum'))
$parts[$i] = preg_replace('~\[html\](.+?)\[/html\]~ise', '\'[html]\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'&#13;\', \'  \' => \' &#32;\', \'[\' => \'&#91;\', \']\' => \'&#93;\')) . \'[/html]\'', $parts[$i]);

// We should edit them out, or else if an admin edits the message they will get shown...
else
{
while (strpos($parts[$i], '[html]') !== false)
$parts[$i] = preg_replace('~\[[/]?html\]~i', '', $parts[$i]);
}
}

if (!$previewing && strpos($parts[$i], '[HIDDENTAG]') !== false)
{
$parts[$i] = preg_replace('~\[HIDDENTAG\](.+?)\[/HIDDENTAG\]~ise', '\'[html]\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'\', \'  \' => \'  \')) . \'[/html]\'', $parts[$i]);
}

No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

GhostHunter

Quote from: luuuciano on August 27, 2011, 12:18:27 PM

Well it looks like #2192 works ok but half way... changing the tag to hiddentag do that html tags gets no converted to html entities... but then, it looks like the second code section do not works properly, and [hiddentag] is not converted back to [./html]... any idea how to fix that code to work properly?


This has been an ongoing problem that several of us have been asking about. The author does not have time to fix it right now: http://www.simplemachines.org/community/index.php?topic=141776.msg3134234#msg3134234 .


Advertisement: