Forums / All Other Contributions/Addons / RSS2 Feed Contribution

RSS2 Feed Contribution

Views: 202,798

Results 421 to 440 of 955
19 Aug 2008, 8:26 AM
#421
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

RSS2 Feed Contribution

Heathenmagic,
Try this one:
File /includes/classes/rss_feed.php
Find

  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

    @flush();
    @ob_clean();

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

19 Aug 2008, 9:47 PM
#422
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: RSS2 Feed Contribution

a_berezin:

Heathenmagic,
Try this one:
File /includes/classes/rss_feed.php
Find

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
> ```
    @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

21 Aug 2008, 2:14 PM
#423
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

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?!?!?!?

22 Aug 2008, 10:46 AM
#424
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

In this version only manualy editing file /includes/functions/extra_functions/rss_feed.php
Find

$feed_array = array('specials', 'new_products', 'upcoming', 'featured', 'best_sellers');

Replace by

$feed_array = array('new_products');

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

22 Aug 2008, 7:26 PM
#425
rickiesdiscount avatar

rickiesdiscount

Zen Follower

Join Date:
Jul 2008
Posts:
229
Plugin Contributions:
0

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

23 Aug 2008, 10:00 AM
#426
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

  1. 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

  2. Edit
    /includes/templates/classic/common/html_header.php
    /includes/templates/classic/common/tpl_footer.php

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Aug 2008, 11:48 AM
#427
eggrush avatar

eggrush

Zen Follower

Join Date:
Apr 2007
Posts:
153
Plugin Contributions:
0

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:

28 Aug 2008, 5:07 PM
#428
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: RSS2 Feed Contribution

yep, it cant find tpl_rss_feed_default.php

31 Aug 2008, 4:20 PM
#429
musicfreer avatar

musicfreer

Zen Follower

Join Date:
Jul 2008
Posts:
155
Plugin Contributions:
0

Re: RSS2 Feed Contribution

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/

3 Sep 2008, 11:35 PM
#430
marknotgeorge avatar

marknotgeorge

New Zenner

Join Date:
Jun 2007
Location:
Derby, UK
Posts:
9
Plugin Contributions:
0

Re: RSS2 Feed Contribution

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?

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:

# 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
4 Sep 2008, 9:18 PM
#431
fireflyz avatar

fireflyz

New Zenner

Join Date:
May 2007
Location:
Los Angeles
Posts:
89
Plugin Contributions:
0

Re: RSS2 Feed Contribution

Hi everyone,
I installed this mod and I love it! everything seem to be working fine except when I click "Subrcribe to "Domain Name"", I get a DNS error and see a bad URL is causing this:

http://www.xxxxxxxxxxx.comdir_ws_http_catalogm1_export.php/?export=rss

I've looked everywhere but can't find the solution. Please help!

Thank you!

10 Sep 2008, 9:30 PM
#432
fireflyz avatar

fireflyz

New Zenner

Join Date:
May 2007
Location:
Los Angeles
Posts:
89
Plugin Contributions:
0

Re: RSS2 Feed Contribution

I found out what the problem was. It was a third party add-on. Thanks anyways!

Fireflyz:

Hi everyone,
I installed this mod and I love it! everything seem to be working fine except when I click "Subrcribe to "Domain Name"", I get a DNS error and see a bad URL is causing this:

http://www.xxxxxxxxxxx.comdir_ws_http_catalogm1_export.php/?export=rss

I've looked everywhere but can't find the solution. Please help!

Thank you!

11 Sep 2008, 8:23 AM
#433
ptnan avatar

ptnan

New Zenner

Join Date:
Jun 2008
Posts:
19
Plugin Contributions:
0

Re: RSS2 Feed Contribution

Hi, a_berezin

thank you for developing such a good marketing tool and now i got some questions:

i have set 'Generate Products Price' function via admin->configuration->RSS FEED to 'true', but i've not got to see it appears in the result FEED pages, neither in FF3 nor IE7.

i do notice the 'extended tag <g:price>' after the function. but how and where can i add it?

would you pls tell me how to deal with this problem.

all the best for you,
david

14 Sep 2008, 7:35 PM
#434
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: RSS2 Feed Contribution

I installed this module recently and find it works with some feeds, but not with others.

When I select "Specials" I get all products instead of special priced items. I experimented with the code a bit and find that the SQL query for returning Specials is fine, but only if I set the case statement to 'new_products' instead of 'specials' and select 'New Products' as the feed I want.

If I revert to the original code, 'New Products' returns new products, as it should, but 'Specials' returns all products again.

The only other thing I have done was to change the extra_functions code to change 'feed=' to 'amp;feed=' in a couple of the functions where the url is built in order to allow the RSS Feed to work when I have the Wordpress module installed. (Not having the 'amp;' returns invalid feed or invalid page errors.)

Any suggestions? Besides uninstalling Wordpress...

14 Sep 2008, 10:17 PM
#435
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: RSS2 Feed Contribution

chain_man:

I installed this module recently and find it works with some feeds, but not with others.

When I select "Specials" I get all products instead of special priced items. I experimented with the code a bit and find that the SQL query for returning Specials is fine, but only if I set the case statement to 'new_products' instead of 'specials' and select 'New Products' as the feed I want.

If I revert to the original code, 'New Products' returns new products, as it should, but 'Specials' returns all products again.

The only other thing I have done was to change the extra_functions code to change 'feed=' to 'amp;feed=' in a couple of the functions where the url is built in order to allow the RSS Feed to work when I have the Wordpress module installed. (Not having the 'amp;' returns invalid feed or invalid page errors.)

Any suggestions? Besides uninstalling Wordpress...

OK - I got this working the way it's supposed to.

Caveat: The changes I made pertain only to my system. The suggestions may lead others to solve some relatively obscure problems, though.

The root of my problem seemed to be that I have Wordpress integrated into my zen cart, causing me to need 'amp;' prepended to the 'feed=' part of the URL, or else I get invalid page errors. This makes my feed URL look something like:
"?main_page=rss_feed&feed=featured" instead of the stock "?main_page=rss_feed&feed=featured". (Many thanks to bigjoeed, who posted this discovery on this thread several months ago.)

The biggest hint that the $feed variable was not populated correctly was that the title of the various feeds that did appear always had mystoredomain:RSS Feed, the generic title. Other stores with feeds had the type of feed included in the title, like mystoredomain:RSS Featured Feed. As this value is loaded based on the feed value, I decided the feed value was not being loaded correctly.

So I had to change $feed = $_GET['feed']; to $feed = $_GET['amp;feed']; and change $feed_args = substr($feed, $i+1); to $feed_args = substr($feed, $i+5); near the top of extra_functions/rss_feed.php.

Then I had to change switch($_GET["feed"]) to switch($_GET["amp;feed"]) (about line 128) of pages/rss_feed/header_php.php.

These changes got the $feed variable capturing the right values.

But I still could not get 'specials' to process the correct items. What I found was that the program could recognize 'special' but not 'specials' for some reason. So I had to change any place that $feed='specials' occurred to $feed='special' in pages/rss_feed/header_php.php. And add case='special' to the switch statement just below case='specials' in extra_functions/rss_feed.php. (This allows both 'special' and 'specials' to remain in the code).

Your mileage may vary...

15 Sep 2008, 8:55 AM
#436
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: RSS2 Feed Contribution

Hello Chain_man,

Glad you got it working. I am really interested in the changes you made. I am thinking, it might solve the problem that many of us have, whereby the module doesn't work because of a XML declaration error. This is due to it picking up an extra space in a file somewhere in the zencart installation. Its proving pretty elusive, but the file changes you stated might help with this. I will have a look and try this and let everyone know. If anyone has already tried making chain_man's changes, it'd be great to hear from you.

Heathenmagic :smile:

15 Sep 2008, 2:17 PM
#437
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: RSS2 Feed Contribution

HeathenMagic:

Hello Chain_man,

Glad you got it working. I am really interested in the changes you made. I am thinking, it might solve the problem that many of us have, whereby the module doesn't work because of a XML declaration error. This is due to it picking up an extra space in a file somewhere in the zencart installation. Its proving pretty elusive, but the file changes you stated might help with this. I will have a look and try this and let everyone know. If anyone has already tried making chain_man's changes, it'd be great to hear from you.

Heathenmagic :smile:

I'm not sure how my changes would fix the problems you have been describing. As I mentioned, they are a work-around for a specific condition where I had to add 'amp;' to the link. At no time did I have the error messages that you have had. The mod always displayed something, it was just the wrong something. Be careful.

17 Sep 2008, 4:49 PM
#438
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: RSS2 Feed Contribution

Hello everyone,

I managed to fix the error I have, and am posting in case it helps somebody out.

In this thread:-

http://www.zen-cart.com/forum/showthread.php?p=613055#post613055

I was trying to fix an unrelated bug, and I am sure this is what did it for me. Ultimately, it is a file from a mod I installed.

This is for the xml declaration error, which prevents you seeing the feed at all. Something to do with line spaces at the end of a file can cause it too.

:smile:

17 Sep 2008, 8:44 PM
#439
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: RSS2 Feed Contribution

I've installed the latest version, but my feeds don't update. it's updated at the day of installation. why?

17 Sep 2008, 9:09 PM
#440
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: RSS2 Feed Contribution

work well!!! I've made modify on page 32
UPDATE configuration SET set_function=NULL WHERE configuration_key = 'RSS_CACHE_TIME';
all work fine!