SMFHacks.com
SMFHacks
Community Suite
SMF Gallery
SMF Store
SMF Classifieds
Newsletter Pro
Downloads System Pro
Ad Seller Pro
Hacks and Mods
Latest SMF Hacks
TopTen Hacks
Styles and Themes
Add a Hack
Manage Hacks
Earn Money from Your Forum with these tips
SMF Theme Generator
Free SMF Hosting
HostGator Webhosting for SMF
Site Showcase
Search Forums
Advanced search
User
Welcome,
Guest
. Please
login
or
register
.
July 29, 2010, 04:22:41 pm
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Stats
Members
Total Members: 8182
Latest:
Laser077
Stats
Total Posts: 21474
Total Topics: 4005
Online Today: 43
Online Ever: 399
(March 21, 2008, 10:16:14 pm)
Users Online
Users: 0
Guests: 21
Total: 21
Sponsored Links
SMFHacks.com
Forum
Modifications/Themes
Modifications Talk
Latest Mods
[Mod] RSS Feed Poster
0 Members and 1 Guest are viewing this topic.
« previous
next »
Pages:
1
...
4
5
[
6
]
7
8
...
10
Author
Topic: [Mod] RSS Feed Poster (Read 80415 times)
bigaldizzler
Newbie
Offline
Posts: 2
Re: [Mod] RSS Feed Poster
«
Reply #75 on:
October 24, 2007, 12:31:35 pm »
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
Posts: 5
Re: [Mod] RSS Feed Poster
«
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
Posts: 4
Re: [Mod] RSS Feed Poster
«
Reply #77 on:
November 07, 2007, 05:31:17 pm »
First, sry 4 my bad english
Is it possible that the Mod remove some things automatic?
Things like: " title=", &,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
Logged
Boxxer
Newbie
Offline
Posts: 4
Re: [Mod] RSS Feed Poster
«
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
Posts: 4
Re: [Mod] RSS Feed Poster
«
Reply #79 on:
November 09, 2007, 01:03:21 pm »
nobody?
Logged
berwynboris
Newbie
Offline
Posts: 2
Re: [Mod] RSS Feed Poster
«
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
Posts: 4
Re: [Mod] RSS Feed Poster
«
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
Hope that helps
Logged
berwynboris
Newbie
Offline
Posts: 2
Re: [Mod] RSS Feed Poster
«
Reply #82 on:
November 14, 2007, 08:55:43 am »
Quote from: Boxxer 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
Hope that helps
...didn't do a thing. Thanks anyway.
Logged
tippex
Newbie
Offline
Posts: 1
Re: [Mod] RSS Feed Poster
«
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
Posts: 7146
Re: [Mod] RSS Feed Poster
«
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
Posts: 4
Re: [Mod] RSS Feed Poster
«
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
Posts: 10
Some will, some won't, so what...
Re: [Mod] RSS Feed Poster
«
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
Posts: 1
Re: [Mod] RSS Feed Poster - reverse order?
«
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
Posts: 4
Re: [Mod] RSS Feed Poster
«
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
Posts: 1
Re: [Mod] RSS Feed Poster
«
Reply #89 on:
December 05, 2007, 09:46:46 pm »
Quote from: rickou812 on September 18, 2007, 12:13:19 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
...
10
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMFHacks.com
-----------------------------
=> News
=> Site Discussion
===> Suggestions
===> Bugs
-----------------------------
SMF Gallery Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
SMF Store
-----------------------------
=> Announcements
=> Presales
=> Support
===> Guides and Tips
===> Feature Requests
===> Bugs
-----------------------------
SMF Classifieds
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
Downloads System Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Feature Requests
===> Bugs
-----------------------------
Ad Seller Pro
-----------------------------
=> Presales
=> Support
-----------------------------
Newsletter Pro
-----------------------------
=> Presales
=> Support
===> Feature Requests
-----------------------------
SMF Gallery Lite
-----------------------------
=> SMF Gallery Lite
-----------------------------
Modifications/Themes
-----------------------------
=> General SMF Forum
=> Modifications Talk
===> Latest Mods
===> Modification Showcase
=> Theme Talk
===> Theme Showcase
===> Latest Themes
Recent
Ad Management in SMF Defa...
by
brokelady
[
Today
at 05:27:30 am]
Moving photos to another ...
by
SMFHacks
[July 28, 2010, 04:25:31 pm]
users cant post to classi...
by
prestigehackers
[July 28, 2010, 03:26:44 pm]
Predefined tags
by
Michel68
[July 28, 2010, 12:31:49 am]
Multiple downloads folder...
by
Tribal-Wolf
[July 27, 2010, 01:13:37 pm]
Image Reordering
by
SMFHacks
[July 27, 2010, 11:53:36 am]
Full Top10 Stats 2.0RC3
by
WasdMan
[July 27, 2010, 07:22:28 am]
Layout Bug - Display Most...
by
Bar Nuthin
[July 25, 2010, 12:18:25 am]
Gallery Lite Access Denie...
by
starcad
[July 24, 2010, 10:36:53 pm]
Databse error pls help
by
SMFHacks
[July 24, 2010, 02:14:46 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Loading...