Customizing SMF > Modifications and Packages
RSS Feed Poster 3.0.4 Released with 2.0 Support!
chuck23322:
Ok, I think I'm really close on having this working well for me. (SMF 2.0.2 forum)
1) If I access from a web browser: http://forumname.com/forum/cronrss.php -- I get back "Feed Poster Configuration" -- and the feeds update.
2) If I use the "fake" cron job inside of SMF -- the feeds update.
WHAT ISN'T working right for me is setting up a REAL cron job. I've tried both (and variants) of the following:
wget -q http://forumname.com/forum/cronrss.php
php -q /home/username/forumname.com/forum/cronrss.php
What I get then is something very weird -- I get back the html for the main login page to my forum... (and of course, the RSS feeds don't update)...
Advice welcome... I really want/need to get this working via a real cron job.
q) Are there any other ways of "kicking off" the rss pull process?
q) Why would I be getting the "login" HTML when I wget or php the "cronrss.php" file from within the server itself?
vbgamer45:
For q?
Is your board disabled for guests
chuck23322:
--- Quote from: vbgamer45 on May 12, 2012, 10:49:10 AM ---For q?
Is your board disabled for guests
--- End quote ---
Yes, guests are disabled 100%.
vbgamer45:
Inside the cronrss.php file
Add this after <?php
--- Code: ---$ssi_guest_access = true;
--- End code ---
chuck23322:
--- Quote from: vbgamer45 on May 12, 2012, 10:53:47 AM ---Inside the cronrss.php file
Add this after <?php
--- Code: ---$ssi_guest_access = true;
--- End code ---
--- End quote ---
Volia! That works! -- Huge thanks! --- Now, Both the wget and php versions of a cron (a real cron) work fine with that addition...
I assume (ugh..) that I'm not otherwise compromising security of my site or adding guest access with it -- just that the script/PHP needed to be allowed to use the "guest" access.....
@Others:
For those wanting an RSS feed to "test" with -- that is of reasonable high volume -- here's two that I found -- I worked on getting my RSS stuff to work -- and these feeds provided me with plenty of "regular" updates.
The USGS has a "Earthquakes" in the last hour -- probably about 3-5 items come down each hour or so...
Earthquakes ATOM link -- http://earthquake.usgs.gov/earthquakes/catalogs/1hour-M0.xml
And Wikipedia has a RSS feed of EVERY change made (warning, danger will robinson, danger, danger) -- but it's pretty much guaranteed to have an update every time it's hit.... easily 100 items or more -- so turn it on/off as you need to, or limit the downloads :)
Wikipedia Edits -- http://en.wikipedia.org/w/index.php?title=Special:RecentChanges&feed=atom
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version