• Welcome to Simple Machines Community Forum. Please login or sign up.
September 18, 2021, 03:23:25 PM

News:

Check out the SMF Function DB!


RSS Feed Poster

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

Previous topic - Next topic

vbgamer45

I said I don't have anwser for it a while back. Try looking at the code and see if you can figure it out on your host.
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

cloudee1

February 14, 2007, 01:21:27 PM #301 Last Edit: February 14, 2007, 02:43:08 PM by cloudee1
Now about some of those html tags coming through the feed. For instance I've got a couple of <strong>'s in there, and some <li>'s. My first inclination is to add those tags to the allowed html that users can use, thus negating the need for the reader to translate them to &lt;blahs&gt;. But I don't know where to go to find that stuff, or probably what to do with it when I get there. As far as special characters that I see come accross I add them to the censored word list. If anyone has any suggestions about cleaning up the html enabled feed non-manually I am all ears. As you can see from the non html enabled feed, that isn't really an option.

feed posts
html enabled       http://scicommunity.com/sciforums/index.php?topic=110.0 [nofollow]
html disabled      http://scicommunity.com/sciforums/index.php?topic=113.0 [nofollow]

* duh, there's a mod that does just what I mentioned. the html enabled link, after applying the more html tags mod, the formatting is a lot closer. I am running 1.1.2 so of course the mod wouldn't automatically install, but it is as simple as manually adding one line to subs.php so I went ahead and did just that. Now, about simply stripping out the spans, is there any good way to do that.
Visit my SCI programmers community [nofollow].
Where we make adventure games using the Sierra Creative Interpreter.
Just like Space Quest, King's Quest, and Leisure Suit Larry!

zizzjk

I was able to get this to autoinstall using 1.1.2

I added a folder named /temp/ to the Packages folder (/Packages/temp/) and chmod everything in Packages to 777. This prevents the permissions error and the parsing error.

Good luck! I just launched a new forum for the University I attend and you can see this mod in action at hxxp:www.kstateforum.com/ [nonactive]

zizzjk

Quote from: oldschoolstroker on February 07, 2007, 12:15:51 AM
Alright...when I try to install this I'm getting this:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Install Actions
Installations actions for "RSS Feed Poster":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    FeedPoster.xml    Modification parse error
2.    Execute Modification    -    Modification parse error
3.    Extract File    ./Sources/FeedPoster.php    
4.    Extract File    ./Sources/Subs-RSS.php    
5.    Extract File    ./cronrss.php    
6.    Extract File    ./Themes/default/FeedPoster.template.php    
7.    Extract File    ./Themes/default/languages/FeedPoster.english.php    
8.    Extract File    ./Themes/default/languages/FeedPoster.english-utf8.php    
9.    Execute Code    FeedPostersql.php


Anyone know how I can make this work?

See above post

zizzjk

Quote from: bobby0408 on January 12, 2007, 01:07:18 PM
I have tried everything but cannot get this mod to work

fsockopen is enabled

I set up the feeds and enabled them in the feed list

I have my cron setup pointing to cronrss.php, also tried the fake cron option.

I tried accessing the cronrss.php directly and nothing (blank Screen)

I am not getting any errors nor are any feeds being pulled in. I tried several different RSS feeds

I did get one error when I first installed the mod that the cronrss.php (file is writable by others) so I corrected that (chmod 755)

I am just sure where to look since I am not getting any errors.

Thanks in advance

I had this blank screen problem myself, I forgot about it. Somehow, the cronrss.php file became empty (no data, just a name of a file with 0 bytes). I uploaded the original file out of the mod .zip file and fixed that problem. Also, the forum is in the first directory (i.e. if you go to hxxp:www.kstateforum.com/ [nonactive] that's the forum, there is no /forum/ or /smf/ directory or anything. The point is that when it installed the mod, the cronrss.php file went to the parent directory which is above the /public_html/ folder. So I had to move that too.

Hopefully this shared experience will help a couple folks out.

richiehale

Help Please :(

Okay i just installed the feed poster and installed fine, and i added my first feed and it worked great. then i added a second feed and it was okay, and then the third feed... once I went to refresh my board... it no worky... it takes about 13seconds to load and then i get a Can NOt Find server or DNS error each time,  I can still load my front page fine, but it is when i try to enter the forums this happens,,,, what might be the problem? what can i do? 

thanx in advance.

vbgamer45

Using Fake Cron jobs? I would disable them and just use a normal cron job.
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

richiehale

how would i go about this ? as i can not getonto my forum?

vbgamer45

umm. I would replace the index.php file with index.php~
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

zizzjk

Okay, so I just found out an interesting way to work around the fake cron. Well, actually it's another fake cron. A php script called virtual cron that I found from hxxp:www.worldwidecreations.com/forums/showthread.php?t=2510 [nonactive].

To use it for the feed poster requires a little ftp knowledge and the ability to put an <img /> tag into your index.template.php file. The current fake cron loads with every page which makes the site super slow. This cron runs on a timed basis (I have it set to execute the cronrss.php file every 5 minutes) and it doesn't slow down load time. Again, you can see the script with this (virtual cron) method in action at my site (see above posts).

Would this be a different way to incorporate fake crons in a future version vbgamer?

richiehale

Quote from: vbgamer45 on February 17, 2007, 10:03:50 PM
umm. I would replace the index.php file with index.php~
tried it.. didnt work :(  

vbgamer45

I not sure what else todo except look at the index.php and find the rss feed poster code and remove it if found.
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

tradenet

Any chance of supporting other feed formats eg. Atom?

Exochat

This mod is a fantastic Mod but let down with the need to do crone jobs which not everyone can do easily. Are there any plans to re-work the mod so that it runs without the site slow downs? That seems to be the number one issue with it at present. If it could be worked on so that it can install with few issues or major behind the scenes work by the forum site owners to get it running properly then this could be one of the most sought after Mods for any forum.

vbgamer45

Maybe in the future but I am very busy at the moment and don't have time to work on these mods for free.
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

Enigma

Quote from: Exochat on February 19, 2007, 03:26:00 PM
This mod is a fantastic Mod but let down with the need to do crone jobs which not everyone can do easily. Are there any plans to re-work the mod so that it runs without the site slow downs? That seems to be the number one issue with it at present. If it could be worked on so that it can install with few issues or major behind the scenes work by the forum site owners to get it running properly then this could be one of the most sought after Mods for any forum.

There are websites that will ping you to make sure you site is up. Maybe you can find a similiar one that will hit your  rssupdate address.

NativePages

Does the feed poster pick up the atom.xml feeds like those used by the BlogSpot (now Google) pages? ... Example: I can't get the following feed to pick up. Every other feed I have is running fine. I did have to tell it to run fake cron jobs.

http://nativeunity.blogspot.com/atom.xml


Thanks,
NativePages
http://www.nativepages.com/tnindian
http://www.nativepages.com/tnindian
I came, I saw, I installed, I asked a million questions, but eventually I got it!

vbgamer45

No it currently does not support atom based feeds.
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

NativePages

Thanks, VB. Hopefully someday!

NP
http://www.nativepages.com/tnindian
I came, I saw, I installed, I asked a million questions, but eventually I got it!

NativePages

Crud ... OK ... the feed poster is working the way it's supposed to, but I'm getting the following in my error logs:


http://www.nativepages.com/tnindian/index.php?action=login2 
2: fopen(http://www.indiancountry.com/rss/rssfeed.cfm?key=15) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed!
File: /home/nativep/public_html/tnindian/Sources/Subs-RSS.php
Line: 314

http://www.nativepages.com/tnindian/index.php?action=login2 
8: Undefined offset: 1
File: /home/nativep/public_html/tnindian/Sources/Subs-RSS.php
Line: 354


It doesn't matter whether it's a guest, a search engine bot, a regular member, or an admin/moderator. The same two errors occur.  The only other thing I'm noticing other than bots that keep timing out the feeds is this one:


http://www.nativepages.com/tnindian/index.php?topic=184.0;prev_next=prev 
2: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known
File: /home/nativep/public_html/tnindian/Sources/Subs-RSS.php
Line: 329


I checked the lines in subs-rss.php to see what the code on each line was:

Line 314:
$fp2 = fopen($url, "r");

Line 329:
$fp = fsockopen($url_array['host'], 80, $errno, $errstr, 30);

Line 354:
   $finalrss = $rss2[1];

Are these errors I need to worry about? If so what are the fixes??

Thanks in advance,
NativePages
http://www.nativepages.com/tnindian
I came, I saw, I installed, I asked a million questions, but eventually I got it!

Advertisement: