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.
Re: RSS2 Feed Contribution
Quote:
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
Quote:
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
It was working and now is broken
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_p...d=new_products Line Number 2, Column 1:
<?xml version="1.0" encoding="iso-8859-1"?>
^
help? Please?
Re: It was working and now is broken
Quote:
Originally Posted by
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_p...d=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.
Re: It was working and now is broken
Quote:
Originally Posted by
majoritywhip
I am a thousand times to answer this question - this is an error in your other files.
Re: RSS2 Feed Contribution
Could you elaborate on which files it may be?
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.
Re: RSS2 Feed Contribution
Quote:
Originally Posted by
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/warnin...mSelfLink.html
I used validator: http://feedvalidator.org and http://validator.w3.org/feed/
Can you help me correct it.
Thank you in advance!:smile:
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 ?
Re: RSS2 Feed Contribution
Grace38,
Quote:
Originally Posted by
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
PHP Code:
date('r', strtotime($products->fields['products_date'])),
by
So, code must be:
PHP Code:
$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
);