Forums / All Other Contributions/Addons / RSS2 Feed Contribution

RSS2 Feed Contribution

Views: 202,798

Results 481 to 500 of 955
21 Oct 2008, 5:32 PM
#481
rlfreshwater avatar

rlfreshwater

New Zenner

Join Date:
Oct 2007
Location:
Atlanta, GA
Posts:
79
Plugin Contributions:
0

RSS2 Feed Contribution

[Sorry if this is a dumb question, but the only feeds I am familiar with are breakfast, lunch and dinner. :blush:]

I have an affiliate program and today an affiliate asked me to supply him a datafeed. Is this the mod that I need in order to do that?

21 Oct 2008, 8:28 PM
#482
a_berezin avatar

a_berezin

Deceased

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

Re: RSS2 Feed Contribution

countrycharm:

I installed this Module a while back and have not being keeping up with the thread since I have had no problems with it until today. Sorry about being lazy. Thank you for the fix.

Very sorry that does not allow for the issuance of an updated version :blush:

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

22 Oct 2008, 9:20 AM
#483
mnaeemsattar avatar

mnaeemsattar

New Zenner

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

Re: RSS2 Feed Contribution

wtashby:

After posting this error, I decided to search this thread, post by post. I saw where this issue has been addressed more than ANY other issue concerning this mod.
The so called answer has been that there are blank spaces, or rogue carraige returns, or empty expansive sub-space in the delta quadrant.

Looking at all of the files in the MOST RECENTLY available release, every one has been updated with ```php
// EOF

> 
> However, non of this has yet to solve the issue for a lot of us, (me,me,me:frusty: ).  I have not seen where one single person that posted this problem has posted that it was resolved.
> 
> Someone out there has had this problem and MUST have fixed it.  Someone out there MUST know the answer.  Could that someone Please post the Real answer here?
> 
> Andrew, I love all the mods of yours that I use, and I wan't to use this one very much.  I know I'll love it too, once I can get it working.  So please, I am asking you, Please help us fix this problem once and for all, completely, and clearly, so no one else will ever have to go through this again.
> 
> Thanks,
> 
> Tom

> **a\_berezin:**
>
> Hi Tom,
> I can not help you because I can not reproduce the error. At all stores, which I serve, no such problems.
> If you give me access to ftp, only then can I help you.

> **wtashby:**
>
> Thanks Andrew.  Sent you a PM with that info.

> **a\_berezin:**
>
> Remove 2 spaces from the bottom file includes/languages/english/extra_definitions/silverfish/centercolumn_footer_defines.php
> And now no error.

> **wtashby:**
>
> Andrew, you are a GENIUS!!!
> 
> This is why I love using your mods.
> 
> Thank you very much for your help.:bigups::bigups:


Hi Andrew and Tom, and others who like to help :) Please guide me, i am facing the same problem as Tom mentioned above.  I also tried to find centercolumn_footer_defines.php but i failed.

Please get me out of this hell, thanks in advance :hug:

Regards,

Muhammad Naeem Sattar
http://buy92.com
http://itgenes.com

22 Oct 2008, 10:12 AM
#485
a_berezin avatar

a_berezin

Deceased

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

Re: RSS2 Feed Contribution

Sorry, but I can not ever find and correct other people's errors.

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

22 Oct 2008, 12:34 PM
#486
rlfreshwater avatar

rlfreshwater

New Zenner

Join Date:
Oct 2007
Location:
Atlanta, GA
Posts:
79
Plugin Contributions:
0

Re: RSS2 Feed Contribution

chain_man:

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

Thank you, Doug, for figuring this out. I am also having an issue with this mod conflicting with WordPress. When I click on the RSS button in my footer it pulls up the feed to my blog instead of my products. [I know you said this only pertained to your system, but I tried everything else with no luck so I decided to try your suggestions.]

I've got a working feed (http://www.queerrepublictees.com/index.php?main_page=rss_feed&feed=products) but the problem is I can't get the RSS button to point to it.

I've done exactly what you did:

  • changed $feed = $_GET['feed'] to $feed = $_GET['amp;feed']
  • changed $feed_args = substr($feed, $i+1) to $feed_args = substr($feed, $i+5)
  • changed switch($_GET["feed"]) to switch($_GET["amp;feed"])

... but it's still bringing up the blog instead of the products.
The confusing part is when I hover over the RSS button, in the bottom of my browser I can see:
http://www.queerrepublictees.com/index.php?main_page=rss_feed&feed=products

but if I select the button and look at the source code it points to the correct URL:
http://www.queerrepublictees.com/index.php?main_page=rss_feed&feed=products

There's got to be something really simple that I am overlooking. If anybody can help I'd be most grateful.

22 Oct 2008, 12:37 PM
#487
heathenmagic avatar

heathenmagic

Totally Zenned

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

Re: RSS2 Feed Contribution

Hello mnaeemsattar

The following fixed it for me. You might have a similar thing going on, but with a different file. Or it could be a different issue altogether. But I had the same error message as you for sure.

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

:smile:

22 Oct 2008, 1:49 PM
#488
chain_man avatar

chain_man

Zen Follower

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

Re: RSS2 Feed Contribution

rlfreshwater:

Thank you, Doug, for figuring this out. I am also having an issue with this mod conflicting with WordPress. When I click on the RSS button in my footer it pulls up the feed to my blog instead of my products. [I know you said this only pertained to your system, but I tried everything else with no luck so I decided to try your suggestions.]

I've got a working feed (http://www.queerrepublictees.com/index.php?main_page=rss_feed&feed=products) but the problem is I can't get the RSS button to point to it.

I've done exactly what you did:

  • changed $feed = $_GET['feed'] to $feed = $_GET['amp;feed']
  • changed $feed_args = substr($feed, $i+1) to $feed_args = substr($feed, $i+5)
  • changed switch($_GET["feed"]) to switch($_GET["amp;feed"])

... but it's still bringing up the blog instead of the products.
The confusing part is when I hover over the RSS button, in the bottom of my browser I can see:
http://www.queerrepublictees.com/index.php?main_page=rss_feed&feed=products

but if I select the button and look at the source code it points to the correct URL:
http://www.queerrepublictees.com/index.php?main_page=rss_feed&feed=products

There's got to be something really simple that I am overlooking. If anybody can help I'd be most grateful.

Check the includes/functions/extra_functions/rss_feed.php for the function rss_feed_link. Make sure the "'feed=' . $feed" is changed to "'amp;feed=' . $feed" there.

22 Oct 2008, 2:01 PM
#489
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:

Check the includes/functions/extra_functions/rss_feed.php for the function rss_feed_link. Make sure the "'feed=' . $feed" is changed to "'amp;feed=' . $feed" there.

I missed a step or two in my explanation...

In the includes/functions/extra_functions/rss_feed.php file for the functions rss_feed_link_alternate and rss_feed_link, change the "'feed=' . $feed" to "'amp;feed=' . $feed" there. There are 2 lines in the function rss_feed_link_alternate and 1 line in the function rss_feed_link.

22 Oct 2008, 2:04 PM
#490
rlfreshwater avatar

rlfreshwater

New Zenner

Join Date:
Oct 2007
Location:
Atlanta, GA
Posts:
79
Plugin Contributions:
0

Re: RSS2 Feed Contribution

chain_man:

Check the includes/functions/extra_functions/rss_feed.php for the function rss_feed_link. Make sure the "'feed=' . $feed" is changed to "'amp;feed=' . $feed" there.
YES! That worked. Thank you, thank you, thank you!!!

18 Nov 2008, 10:24 PM
#491
chris21 avatar

chris21

New Zenner

Join Date:
Jul 2007
Location:
Australia
Posts:
21
Plugin Contributions:
0

Re: RSS2 Feed Contribution

I have searched every where to find the answer, but I keep reading the same thing, and they either get resolved by the the person asking, but don't explain how it was fixed, or it has been missed by people who know the answer.
In the admin> RSS FEED> area, it asks for an image, do I put a path or just type in the input box jpeg, gif etc.

In the Readme file it says to
"5. You can add to tpl_footer.php or where you want:

<!--bof RSS Feed --> <div id="RSSFeedLink"><?php echo rss_feed_link(RSS_ICON); ?></div> <!--eof RSS Feed -->"

Ok I did this in a few different places of the file and got this on the bottom of my site....
"Fatal error: Call to undefined function rss_feed_link() in /home/xxxx/public_html/includes/templates/template_default/common/tpl_footer.php on line 66"

When I tried number 4 "4. You can add to html_header.php somewhere beetwen <head> and </head> tags:

<?php echo rss_feed_link_alternate(); // RSS Feed ?>"

my whole site disappears and get a fatal error message on the top of a blank page.

I'm very sorry about rehashing old questions, but I can't seem to find an answer to the stuff I know very little about.
Thanks for any help.
Chris.

20 Nov 2008, 1:24 AM
#492
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: RSS2 Feed Contribution

In the admin> RSS FEED> area, it asks for an image, do I put a path or just type in the input box jpeg, gif etc.
You just put the name of the image like logo.gif
In the Readme file it says to
"5. You can add to tpl_footer.php or where you want:

<!--bof RSS Feed --> <div id="RSSFeedLink"><?php echo rss_feed_link(RSS_ICON); ?></div> <!--eof RSS Feed -->"

Put it all the way at the bottom of your footer /includes/templates/your_template/common/tpl_footer

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

21 Nov 2008, 6:40 PM
#493
majoritywhip avatar

majoritywhip

New Zenner

Join Date:
Jul 2008
Location:
San Francisco
Posts:
63
Plugin Contributions:
0

Re: RSS2 Feed Contribution

I had it working, everything was fine. But when I checked on it lately, I got this error:

XML Parsing Error: XML or text declaration not at start of entity Location: http://majortek.com/index.php?main_page=rss_feed&feed=new_products Line Number 2, Column 1:

<?xml version="1.0" encoding="iso-8859-1"?>

^

help? Please?

Major Innovations in Teknology and Style
Majortek.com

21 Nov 2008, 7:10 PM
#494
majoritywhip avatar

majoritywhip

New Zenner

Join Date:
Jul 2008
Location:
San Francisco
Posts:
63
Plugin Contributions:
0

Re: RSS2 Feed Contribution

majoritywhip:

I had it working, everything was fine. But when I checked on it lately, I got this error:

XML Parsing Error: XML or text declaration not at start of entity Location: http://majortek.com/index.php?main_page=rss_feed&feed=new_products Line Number 2, Column 1:

<?xml version="1.0" encoding="iso-8859-1"?>

^

help? Please?

OK, This is odd. The RSS works just fine in Safari, but is broken in FF and MSIE. Usually it's the other way around.

Major Innovations in Teknology and Style
Majortek.com

22 Nov 2008, 5:35 PM
#495
a_berezin avatar

a_berezin

Deceased

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

Re: RSS2 Feed Contribution

majoritywhip:

XML Parsing Error: XML or text declaration not at start of entity Location: http://majortek.com/index.php?main_page=rss_feed&feed=new_products Line Number 2, Column 1:

<?xml version="1.0" encoding="iso-8859-1"?>

^

help?
I am a thousand times to answer this question - this is an error in your other files.

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

22 Nov 2008, 6:48 PM
#496
majoritywhip avatar

majoritywhip

New Zenner

Join Date:
Jul 2008
Location:
San Francisco
Posts:
63
Plugin Contributions:
0

Re: RSS2 Feed Contribution

Could you elaborate on which files it may be?

Major Innovations in Teknology and Style
Majortek.com

23 Nov 2008, 10:25 AM
#497
a_berezin avatar

a_berezin

Deceased

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

Re: RSS2 Feed Contribution

Apparently you did not understand me. How can I know what your files contain an error?
View all files are edited and added. Replace ended
?>
by
// EOF

I have a script that checks php-files on the extra symbols. Try to find it.

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

26 Nov 2008, 4:34 AM
#498
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
261
Plugin Contributions:
0

Re: RSS2 Feed Contribution

xordox:

Thanks for Great mod!
It works. But in validation page I have 2 recommendations:

line 4, column 0: Use of unknown namespace: http://base.google.com/cns/1.0
<rss version="2.0"

line 12, column 108: Self reference doesn't match document location
<atom:link href="http://bestfashion.me/" rel="self" type="application/rss+xml" />

How I can fix it?
Thanks

Hello Everyone!:smile:

Worderful Mod, Andrew!:hug:

Regarding Post 463.

You reply that you fix it in Post 468. How did you fix it?

I did a search and I found this: http://feedvalidator.org/docs/warning/MissingAtomSelfLink.html

I used validator: http://feedvalidator.org and http://validator.w3.org/feed/

Can you help me correct it.

Thank you in advance!:smile:

Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca

7 Dec 2008, 4:34 PM
#499
grace38 avatar

grace38

New Zenner

Join Date:
Dec 2008
Posts:
41
Plugin Contributions:
0

Re: RSS2 Feed Contribution

This was nice and easy to install and works just great.

One thing though which i am having a problem with.

How do i remove the date a product was added to my shop from the RSS feed - I would rather the date a product was added is not visible.

Is this possible to remove ?

8 Dec 2008, 9:52 PM
#500
a_berezin avatar

a_berezin

Deceased

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

Re: RSS2 Feed Contribution

Grace38,

Grace38:

How do i remove the date a product was added to my shop from the RSS feed
/includes/pages/rss_feed/header_php.php
line ~516
Replace

date('r', strtotime($products->fields['products_date'])),

by

false,

So, code must be:

      $rss->rss_feed_item($products->fields['products_name'],
                          $link,
                          array('url' => $link, 'PermaLink' => true),
                          false,
                          $products_description,
                          $rss->_clear_url($products->fields['products_image']),
                          zen_href_link(FILENAME_PRODUCT_REVIEWS,'products_id=' . $products->fields['products_id'] . $additionalURL, 'NONSSL', false),
                          (RSS_AUTHOR == ''? STORE_OWNER_EMAIL_ADDRESS . " <" . STORE_OWNER . ">" : RSS_AUTHOR),
                          false,
                          false,
                          $xtags
                          );

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