News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

RSS Feed Poster

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

Previous topic - Next topic

luuuciano

Yep, I read what vbgamer said, but the fix suggested before seems to work (at least it looks logical)... I do not know it it is working on 1.1 and do not in 2.0?
There is no one with regex knowledge here to help on that line?

If we can not fix it (that issue)... how to use this mod properly?? is someone using it?
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


I agree that it looks logical. It does not work on 1.1.14, it behaves just as you described. M understanding is that it is a permissions issue that would take some time to sort out.



luuuciano

Anyway... the other issue of not posting the latest news of the feeds is worse... Guess Ill trying the another half dead rss feeder mod, lol
:)
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


The feeds are working fine on mine. I did get an error once that was similar to yours, but I re-enabled it a few days later and it worked. Sometimes it just doesn't seem to find anything to feed. I've got six feeds running right now.

Let us know what you find.


acadiaforum.net

Quote from: GhostHunter on August 06, 2011, 01:32:05 PM
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.

Hmm, this should work fine in 1.1.x - just so you can see it in context, here's what I have for Subs-Post.php for lines 210-228, including the new chunk of code for the hidden tag replacement...


if (!$previewing && strpos($parts[$i], '[html]') !== false)
{
if (allowedTo('post_html'))
$parts[$i] = preg_replace('~\[html\](.+?)\[/html\]~ise', '\'[html]\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'\', \'  \' => \'  \')) . \'[/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], '[myHiddenTag]') !== false)
{
$parts[$i] = preg_replace('~\[myHiddenTag\](.+?)\[/myHiddenTag\]~ise', '\'[html]\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'\', \'  \' => \'  \')) . \'[/html]\'', $parts[$i]);
// We should edit them out, or else if an admin edits the message they will get shown...
}

// Let's look at the time tags...

What this does is look for [myHiddenTag] ... anything... [/myHiddenTag] and should replace it with the HTML ...anything... /HTML tags. make sure your closing tag matches whatever you put for the closing tag above. Otherwise, it should work perfectly (at least it does for me)
New GM Crossover Forums: AcadiaForum.net [nofollow] | EnclaveForum.net [nofollow] | SaturnOutlookForum.net [nofollow] | TraverseForum.com [nofollow]

GhostHunter

Ah, this is interesting. Me edit is the same as yours, EXCEPT:

At line 212 where  you have:

if (allowedTo('post_html'))



Mine has this:

if (allowedTo('admin_forum'))



I have not been able to find yet when or why this was changed, but it is like this in the 1.1.14 full package. I've been patching up since 1.1.8, IIRC. Surely  this is why it isn't working right for me, but I'm hesitant to change it without knowing knowing for sure the consequences.

Thanks for your help! :)

Jim

Dave6

RSS Feed Poster 3.0.2 not working:
This is the error I am getting:
Template Parse Error!
There was a problem loading the /Themes/default/languages/FeedPoster.english.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING

------------------------------------------------------------------------------------------------------------------
The mod installs without any errors reported during the install, it works the first time you use it  and not again. below are the forum details.
I am running:
Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC
Protected by: Forum Firewall © 2010-2011
Bad Behavior has blocked 100 access attempts in the last 7 days.
MySQl version: 5.0.92-community
Apache version 2.2.15
PHP version 5.3.1
forum address: hxxp:www.star-trekfan.com/ [nonactive]
Cron Job Url: hxxp:www.star-trekfan.com/cronrss.php [nonactive]

rocky33

hey guys, im running smf 2.0 gold with simple portal 2.3. the module installed correctly. everything is proper and everything is set up correctly. no errors. i wait and wait and wait still no posts?

am i doing something wrong? appreciate the help.

Dave6

Ok this is doing my head in now I started out with smf 1.1.5 and upgraded to 1.1.14 and still the RSS feed poster 3.2.0 only worked one time and never again, so I started a second board smf 2.0  hxxp:www.star-trekfan.com/News/index.php [nonactive]  and success the poster works using the fake cron job, as for my main site I found a unique solution using the EzPortal 0.5.1 by making RSS blocks for the forum boards I want the selected links to appear in. Ok I can't have poster bots but I still have the stories. The Hard part is I actually had the feeder working at one point but now my server host who hooked it up have suddenly taken a bit of amnesia on how to do that.

GhostHunter


The odd thing about my situation was that at first it wasn't working, but later it started to work all by itself - I hadn't changed anything other than changing or re-entering some of the feeds I was trying to pull. My theory was that there was something not quite right WRT the mod on the site(s) I wanted feeds from. I'm using a real cron job that polls for feeds twice a day.

I would really be happy if it could be made to handle HTML correctly. With all the buzz about 2.0, I wonder if 1.1.x is becoming abandonware among the mod writers.


Dave6

I don't know very much about code issues kinda new to that stuff, but there must be a way of making it work as I said my forum work with the feed poster mod but my server host did something so the real cron in my c-panel sent the signal to post, wish I knew what the heck they did. Iam hoping someone here knows the answer?

luuuciano

Quote from: luuuciano on August 27, 2011, 12:18:27 PM
Hi! I am trying to add this feed: http://www.smn.gov.ar/feeds/alertas.xml
Here an example content:

Here a workaround to that kind of issues... used http://chimpfeedr.com/ to "sanitize" the xml... lol
I have used it for this one http://www.infoclima.com/pronosticos/rss.asp?l=10

buuuuuut... nothing is done!

Is that the bug of not importing the latest item news? as that feed have just 1 news content... nothing is done... lol
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).

MrMike

When I use RSS Feed Poster (SMF 2.01 and RSS FP 3.0.2a) I get a lot of my feeds coming in like this:

Quote<p><strong><em>Text of speech presenting the Richard Dawkins Award on behalf of Atheist Alliance of America, Houston, 8th October 2011</em></strong></p>

<p><img src="http://c3012132.r32.cf0.rackcdn.com/111008CH%26RD-8374-2.jpg" width="550" /><br></p>

<p>Today I am called upon to honour a man whose name will be joined, in the history of our movement, with those of Bertrand Russell, Robert Ingersoll, Thomas Paine, David Hume.</p>

Is the rendering of the <p> and other elements fixable with a configuration setting?

I have "Enable basic HTML in posts" checked and all BBC tags enabled as well. In the feed settings I have "HTML Enabled" checked.

How can I get the <p> and other tags to render properly (that is, as HTML and not as '<p>')?

MoreBloodWine

There's still alot of bugs / things to be worked out I've been trying to get done for a while now but what it's doing is copying the HTML of a post which is one eof the original features I requested / paid for. It's been some time since I tried talkin to VB because I don't want to rush him and make him lose interest but I'll shoot him a PM and see where were at development wise.
Quote from: MrMike on October 10, 2011, 05:40:58 PM
When I use RSS Feed Poster (SMF 2.01 and RSS FP 3.0.2a) I get a lot of my feeds coming in like this:

Quote<p><strong><em>Text of speech presenting the Richard Dawkins Award on behalf of Atheist Alliance of America, Houston, 8th October 2011</em></strong></p>

<p><img src="http://c3012132.r32.cf0.rackcdn.com/111008CH%26RD-8374-2.jpg" width="550" /><br></p>

<p>Today I am called upon to honour a man whose name will be joined, in the history of our movement, with those of Bertrand Russell, Robert Ingersoll, Thomas Paine, David Hume.</p>

Is the rendering of the <p> and other elements fixable with a configuration setting?

I have "Enable basic HTML in posts" checked and all BBC tags enabled as well. In the feed settings I have "HTML Enabled" checked.

How can I get the <p> and other tags to render properly (that is, as HTML and not as '<p>')?
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits



bwakino

Quote from: Hardliner on July 04, 2011, 02:39:02 PM
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?

Any solutions to this?  I have the same problem.

vbgamer45

Quote from: bwakino on October 11, 2011, 01:31:38 AM
Quote from: Hardliner on July 04, 2011, 02:39:02 PM
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?
Check your forum's error log fro related errors might be a code conflict.

Any solutions to this?  I have the same problem.
Community Suite for SMF - Take your forum to the next level built for 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

MrMike

Quote from: MoreBloodWine on October 10, 2011, 05:48:17 PMIt's been some time since I tried talkin to VB because I don't want to rush him and make him lose interest but I'll shoot him a PM and see where were at development wise.

I've been poking around in it so I may come up with some simple code to manage the html and tags.

epseja

Using 2.0.1 and trying to set up a feed using the Admin > Configuration > Feed Poster Configuration page and getting the following error: XML error: XML_ERR_NAME_REQUIRED at line 11

Here's the feed I'm trying to set up: hxxp:www.facebook.com/feeds/page.php?id=34756197818&format=rss20 [nonactive]

Any ideas?


vbgamer45

Quote from: epseja on October 11, 2011, 01:44:06 PM
Using 2.0.1 and trying to set up a feed using the Admin > Configuration > Feed Poster Configuration page and getting the following error: XML error: XML_ERR_NAME_REQUIRED at line 11

Here's the feed I'm trying to set up: http://www.facebook.com/feeds/page.php?id=34756197818&format=rss20

Any ideas?


Malformed feed can't be read by the php parser.
Community Suite for SMF - Take your forum to the next level built for 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

Advertisement: