SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
February 10, 2012, 08:07:02 pm

Login with username, password and session length
Members
Total Members: 9904
Latest: toytoy5555
Stats
Total Posts: 27798
Total Topics: 4859
Online Today: 79
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 71
Total: 72
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 ... 4 5 [6] 7 8 ... 13 Go Down Print
Author Topic: [Mod] RSS Feed Poster  (Read 99740 times)
bigaldizzler
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #75 on: October 24, 2007, 12:31:35 pm »

 Undecided I need help with this mod....

I was hoping this mod would be pretty straight forward to get working but I am stuck.  I chmod source/subs-rss.php to 755 and cronrss.php to 755 as well.  Whenever I do anything with the feed for example create a feed/edit a feed it takes forever for the page to load after hitting save and results in a blank page.  When I try to access my cron url it takes forever to load and will result in a blank page as well.  I set the feed to post from http://www.digg.com/rss/index.xml recently to post every 30 minutes to see whats wrong but no post.  I've created a user to serve as a bot and gave permission for that bot to post in the area of the forum but no post were ever made.  Error log shows this
Quote
[19-Oct-2007 15:38:23] PHP Warning:  fopen(http://www.digg.com/rss/indexnintendo_wii.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysiteSources/Subs-RSS.php on line 314
[19-Oct-2007 15:38:35] PHP Warning:  fopen(http://www.digg.com/rss/indexnintendo_wii.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314
[19-Oct-2007 15:38:43] PHP Warning:  fopen(http://www.digg.com/rss/indexnintendo_wii.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314
[19-Oct-2007 21:09:19] PHP Warning:  fopen(http://www.digg.com/rss/indexnintendo_wii.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314
[23-Oct-2007 15:17:44] PHP Warning:  fopen(http://www.digg.com/rss/indexnintendo_wii.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314
[23-Oct-2007 15:18:13] PHP Warning:  fopen(http://www.digg.com/rss/indexnintendo_wii.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314
[23-Oct-2007 15:35:16] PHP Warning:  fopen(http://www.digg.com/rss/indexnintendo_wii.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314
[23-Oct-2007 15:36:43] PHP Warning:  fopen(http://www.digg.com/rss/indexnintendo_wii.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314
[23-Oct-2007 20:17:00] PHP Warning:  fopen(http://www.digg.com/rss/indexnintendo_wii.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314
[24-Oct-2007 00:00:24] PHP Warning:  fopen(http://www.digg.com/rss/indexnintendo_wii.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314
[24-Oct-2007 00:04:00] PHP Warning:  fopen(http://digg.com/rss/index.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314
[24-Oct-2007 11:48:31] PHP Warning:  fopen(http://digg.com/rss/index.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!  in /home/***/public_html/mysite/Sources/Subs-RSS.php on line 314

I hope there is a easy solution to this...I really love to see this mod working!
Logged
drgsldr69
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #76 on: October 31, 2007, 07:04:51 am »

ok i REALLY need the html fix if anyone has gotten one can ya pm me with a fix for it? i need it to where it can parse the html to show the images and links right.
Logged
Boxxer
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #77 on: November 07, 2007, 05:31:17 pm »

First, sry 4 my bad english Wink
Is it possible that the Mod remove some things automatic?
Things like: " title=", &amp;,quot; and so on?
And display Images which are in the importet rss?
At the moment i only get this:
Code:
<img src="http://static3.gigagfx.de/images/cache/71/f61ae08270220034c56c86474e6992.jpg" width="120" height="90" style="float: left; padding-right:3px; padding-bottom:3px;" alt="" title="" />
But no picture.

Hope you understand what i want Wink
Logged
Boxxer
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #78 on: November 08, 2007, 11:05:03 am »

Ore is it possible to put
Code:
[html][/html]
before the <img and after />?

hopeful, Boxxer.
Logged
Boxxer
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #79 on: November 09, 2007, 01:03:21 pm »

nobody?
Logged
berwynboris
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #80 on: November 13, 2007, 11:23:41 am »

I have installed the MOD and it works to a certain degree. I've been through the discussions here, and on Simple Machines, and have seen people with the same problems but I haven't been able to discover any fixes or workarounds.

I have it set up with a cron job running cronrss.php every 30 minutes. It won't grab new items unluss I go directly to the cronrss.php file in my browser, wait for it to run/load and then go back the forum. Then, new posts will appear.

Also, it generates a lot of these kinds of errors:

http://www.mysite.com//index.php?action=feedsadmin;sa=editfeed2
Apply Filter: Only show the errors with the same message
8: Undefined offset: 21
File: /usr/local/etc/httpd/htdocs/ILBIRDS/Sources/Subs-RSS.php
Line: 130


I've seen a lot of people report this error, but have not been able to find out why it happens, if it's important or what to do about it.

Lastly, it doesn't seem to be able to handle ATOM and maybe it's just a URL issue. I've seen feeds that end like so:

.../feed,RSS1.0/no_html,1/

or with a type designator: ;type=xml

or nothing. What is the preferred type of link, and what types of feeds can it handle?

Thanks in advance for any info offered.
Logged
Boxxer
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #81 on: November 13, 2007, 11:53:18 am »

For the Cronejob add this in first line on cronrss.php
Code:
#!/usr/lib/cgi-bin/php -q
It works for me Wink
Hope that helps
Logged
berwynboris
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #82 on: November 14, 2007, 08:55:43 am »

For the Cronejob add this in first line on cronrss.php
Code:
#!/usr/lib/cgi-bin/php -q
It works for me Wink
Hope that helps

...didn't do a thing. Thanks anyway.
Logged
tippex
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #83 on: November 16, 2007, 08:14:19 am »

I know this will be a noobie question but how do I enable curl and disable fsockopen for the mod?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9399


View Profile
« Reply #84 on: November 16, 2007, 07:56:39 pm »

CURL is not currently support I need to do some more testing with it first.
Logged
rockinaway
Newbie
*
Offline Offline

Posts: 4


View Profile WWW
« Reply #85 on: December 01, 2007, 01:35:41 pm »

I think I have found a fix for this problem with fsockopen and the usage of cURL.

It works for me...

Open Subs-RSS.php

And find:

Code:
$fp2 = fopen($url, "r");
if (!fp2)
{

}
else
{
$failed = false;

$contents = '';
while (!feof($fp2))
{
  $contents .= fread($fp2, 8192);
}

fclose($fp2);

return $contents;
}


$fp = fsockopen($url_array['host'], 80, $errno, $errstr, 30);
if (!$fp)
{

}
else
{


   $out = "GET " . $url_array['path'] . @$url_array['query'] . "  HTTP/1.1\r\n";
   $out .= "Host: " . $url_array['host'] . "\r\n";
   $out .= "Connection: Close\r\n\r\n";

   fwrite($fp, $out);

   $rssdata = '';

   while (!feof($fp))
   {
       $rssdata .= fgets($fp, 128);
   }
   fclose($fp);

   // Get rid of the stupid header information! Wish the function did it for me.
   $rss2 = explode("\\r\\", $rssdata);
   $finalrss = $rss2[1];

   return  $finalrss;

That should be in the GetRSSData Function

Replace that with:

Code:
$failed = false;
/*$fp2 = fopen($url, "r");
if (!fp2)
{

}
else
{
$failed = false;

$contents = '';
while (!feof($fp2))
{
  $contents .= fread($fp2, 8192);
}

fclose($fp2);

return $contents;
}


$fp = fsockopen($url_array['host'], 80, $errno, $errstr, 30);
if (!$fp)
{

}
else
{


   $out = "GET " . $url_array['path'] . @$url_array['query'] . "  HTTP/1.1\r\n";
   $out .= "Host: " . $url_array['host'] . "\r\n";
   $out .= "Connection: Close\r\n\r\n";

   fwrite($fp, $out);

   $rssdata = '';

   while (!feof($fp))
   {
       $rssdata .= fgets($fp, 128);
   }
   fclose($fp);

   // Get rid of the stupid header information! Wish the function did it for me.
   $rss2 = explode("\\r\\", $rssdata);
   $finalrss = $rss2[1];

   return  $finalrss;
} */

Worked for me.. comments..
Logged

http://www.adminfuel.com - The website for forum administrators
Quinn
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 10


Some will, some won't, so what...


View Profile WWW
« Reply #86 on: December 01, 2007, 02:40:16 pm »

I have a question related to the RSS Feed Poster, (Excellent hack BTW!) Is there a way to control the amount of the feed it is posting or I should say gathering from the rss feed, ie: the full article? It seems to cut off or stop before completing.

Also, I would have to ask if there is a fix for the HTML problem yet?

Thanks!


« Last Edit: December 01, 2007, 02:42:17 pm by Quinn » Logged

tootie
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #87 on: December 02, 2007, 06:52:16 am »

hello,

apology if this has been asked/answered before, but i have gotten this mod to work well (using real crontab) on an internal machine.

i am getting 3 or more new items from a number of different feeds and everything is working fine, but, is there any way to reverse the order in which the items are posted?

what i mean is that it will post all '3' new items from a feed, but the order it is posting them in is actually backwards from what it should be, where newer items will be posted to smf first.

where would i reverse this?

thank you.
Logged
rockinaway
Newbie
*
Offline Offline

Posts: 4


View Profile WWW
« Reply #88 on: December 02, 2007, 02:14:54 pm »

How can I get it so that some of the HTML (like the <ul> and <li>) is shown as HTML and not returned as text?
Logged

http://www.adminfuel.com - The website for forum administrators
Ashley
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #89 on: December 05, 2007, 09:46:46 pm »

Any news on a html fix yet?
I tried to mod the code in the sub-rss.php file to add the html tag to the post, but it only half works..lol

What I mean by that is it does in fact add the html tag, but for some reason SMF will not display the post correctly unless I click "modify post" and "save" at which time it is diplayed correctly...

This tells me that SMF is not seeing the "Feed poster" as having permissions to post html even though it is utilizing a members name that does in fact have those permissions...

I hope this info will help develop a fix..

Thanks
Rick


Hi,

I am also experiencing the same problem, and have tried the same workaround-attempt as Rick has. However, SMF isn't recognizing the permissions of the "Poster Name" that is set in the config, (it seems).

I tried replacing the line 262 with:

Code:
'body' => '[b]' . $msg_title . "[/b]\n\n[html]\n\n" . $msg_body . "\n\n[/html]",

And I assume that Rick tried the same thing. The only fix I can assume would work is editing the "Basic HTML" that SMF allows non-admin users to post.

Thanks,
Ash.
Logged
Pages: 1 ... 4 5 [6] 7 8 ... 13 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 03:36:31 pm]

[Today at 02:42:09 pm]

[Today at 02:23:51 pm]

[Today at 10:26:45 am]

[February 09, 2012, 05:30:55 pm]

by exit
[February 09, 2012, 04:47:13 pm]

[February 08, 2012, 09:09:16 pm]

[February 08, 2012, 09:11:02 am]

[February 08, 2012, 09:07:32 am]

[February 08, 2012, 03:46:49 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.331 seconds with 21 queries.