Re: RSS2 Feed Contribution
Heathenmagic,
Try this one:
File /includes/classes/rss_feed.php
Find
Code:
function rss_feed_out() {
if($this->rssFeedCahcheFrom == false) {
$this->rssFeedContent = $this->rss_feed_content();
$this->rssFeedTimeCreated = time();
if($this->rssFeedCahcheFlag == true) {
if (($f = fopen($this->rssFeedCahcheFileName, 'w'))) {
fwrite($f, $this->rssFeedContent, strlen($this->rssFeedContent));
fclose($f);
}
}
}
Add after
Code:
@flush();
@ob_clean();
Re: RSS2 Feed Contribution
Quote:
Originally Posted by
a_berezin
Heathenmagic,
Try this one:
File /includes/classes/rss_feed.php
Find
Code:
function rss_feed_out() {
if($this->rssFeedCahcheFrom == false) {
$this->rssFeedContent = $this->rss_feed_content();
$this->rssFeedTimeCreated = time();
if($this->rssFeedCahcheFlag == true) {
if (($f = fopen($this->rssFeedCahcheFileName, 'w'))) {
fwrite($f, $this->rssFeedContent, strlen($this->rssFeedContent));
fclose($f);
}
}
}
Add after
Code:
@flush();
@ob_clean();
Hello Andrew,
Thanks so much for replying. I have tried the code, but sadly it produces the declaration error. I appreciate your help. Its a mystery why it suddenly stopped working, and it seems impossible to locate the file with spaces.
I tried your RSS Feed module on a fresh install on another website, and it works. So it is definitely a clash with some module file somewhere on the other website I referred to. I will keep searching. lol
Sincerely,
Heathenmagic
Re: RSS2 Feed Contribution
<link rel="alternate" type="application/rss+xml" title="RSS Specials Feed" href="http://www.m.com/newstore/rss_feed/feed/specials" />
<link rel="alternate" type="application/rss+xml" title="RSS New Products Feed" href="http://www.m.com/newstore/rss_feed/feed/new_products" />
<link rel="alternate" type="application/rss+xml" title="RSS Upcoming Feed" href="http://www.m.com/newstore/rss_feed/feed/upcoming" />
<link rel="alternate" type="application/rss+xml" title="RSS Featured Feed" href="http://www.m.com/newstore/rss_feed/feed/featured" />
<link rel="alternate" type="application/rss+xml" title="RSS Best Sellers Feed" href="http://www.m.com/newstore/rss_feed/feed/best_sellers" />
<link rel="alternate" type="application/rss+xml" title="RSS Products Feed ::
How can i remove all the rest besides the new products feed?!?!?!?
Re: RSS2 Feed Contribution
In this version only manualy editing file /includes/functions/extra_functions/rss_feed.php
Find
Code:
$feed_array = array('specials', 'new_products', 'upcoming', 'featured', 'best_sellers');
Replace by
Code:
$feed_array = array('new_products');
Re: RSS2 Feed Contribution
/includes/templates/YOUR_TEMPLATE/common/html_header.php
/includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
I am using the classic template by the way...the two files that u said to edit in the install instructions do not exist in my common folder
the only two files that are listed under my common folder are
tpl_header.php and tpl_drop_menu what am i missing?
is there a previous version of something that has to be installed first?
please help me i cannot get this contribution to work because those files do not exist in my common folder
here is my website
http://www.rickiesdiscountelectronics.com
Re: RSS2 Feed Contribution
0. Copy
/includes/templates/template_default/common/html_header.php to /includes/templates/classic/common/html_header.php
/includes/templates/template_default/common/tpl_footer.php to /includes/templates/classic/common/tpl_footer.php
1. Edit
/includes/templates/classic/common/html_header.php
/includes/templates/classic/common/tpl_footer.php
Re: RSS2 Feed Contribution
HI GUYS, anyone know whats going on here?
Warning: require(includes/templates/template_default/templates/tpl_rss_feed_default.php) [function.require]: failed to open stream: No such file or directory in /home/canvouk1/public_html/includes/templates/template_default/common/tpl_main_page.php on line 122
Warning: require(includes/templates/template_default/templates/tpl_rss_feed_default.php) [function.require]: failed to open stream: No such file or directory in /home/canvouk1/public_html/includes/templates/template_default/common/tpl_main_page.php on line 122
Fatal error: require() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_rss_feed_default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/canvouk1/public_html/includes/templates/template_default/common/tpl_main_page.php on line 122
:bigups:
Re: RSS2 Feed Contribution
yep, it cant find tpl_rss_feed_default.php
Working with google reader / My yahoo
Thanks Andrew for this cool contri!
sorry that I am kinda new to RSS
I have installed the contri and seems working fine. However I have 1 question about it.
When I click the RSS button, it directs me to a page that I can choose to add this feed to my browser bookmark(FF3), google reader or My Yahoo. It works fine with fire fox bookmark. However it doesn't work with google reader and My Yahoo. It is normal? or it is just my problem? Thanks in advance!
My site: http://www.locomolife.com/store/
Re: Working with google reader / My yahoo
Quote:
Originally Posted by
aendrew
Thank you. You are godlike and have saved me a lot of money and effort.
Anyone know how to get Facebook to display the feed image when importing into notes?
Quote:
Originally Posted by
musicfreer
Thanks Andrew for this cool contri!
sorry that I am kinda new to RSS
I have installed the contri and seems working fine. However I have 1 question about it.
When I click the RSS button, it directs me to a page that I can choose to add this feed to my browser bookmark(FF3), google reader or My Yahoo. It works fine with fire fox bookmark. However it doesn't work with google reader and My Yahoo. It is normal? or it is just my problem? Thanks in advance!
My site:
http://www.locomolife.com/store/
I think I've sussed this. I added the following code to my .htaccess file:
Code:
# RSS feeds
RewriteRule ^rss/(.*).xml$ index\.php?main_page=rss_feed&feed=$1
And this allowed me to access my new products feed by using the url: http://www.eggsandantlers.co.uk/rss/new_products.xml . This allowed me to import the feed into Facebook. :D