FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Adding xml code manually View next topic
View previous topic
Post new topicReply to topic
Author Message
nancy651



Joined: 15 Jan 2016
Posts: 2

PostPosted: Fri Jan 15, 2016 10:21 am Reply with quoteBack to top

I am trying to add the xml code to the sidebar of my site. I am using Wordpress and going through the editor for the primary sidebar - the code there is php. If I add the xml code I get a syntex error.
Right now I am using rssinclude (free trial) and you can get the code in php and it works (http://www.bestsellersworld.com) on the right you will see a feed from Amazon. I already have Feedforall and don't want to pay for another program but how do I get this to work on my site?

The xml code I have is:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Best Selling Books at Amazon</title>
<description>A list of the best selling books at Amazon.com.</description>
<link>http://www.amazon.com/gp/rss/bestsellers/books/ref=zg_bs_books_rsslink?tag=productsgalore09</link>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<lastBuildDate>Fri, 15 Jan 2016 09:55:24 -0500</lastBuildDate>
<pubDate>Fri, 15 Jan 2016 09:53:06 -0500</pubDate>
<generator>FeedForAll v2.0 (2.0.2.9) http://www.feedforall.com</generator>
<item>
<title>Best Selling Books at Amazon</title>
<description>A list of best selling books at Amazon.com.</description>
<link>http://www.amazon.com/gp/rss/bestsellers/books/ref=zg_bs_books_rsslink?tag=productsgalore09</link>
<guid isPermaLink="false">B4F3BDCF-C6C7-4F15-94D6-375B621EAA67</guid>
<pubDate>Fri, 15 Jan 2016 09:52:33 -0500</pubDate>
</item>
</channel>
</rss>
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Fri Jan 15, 2016 11:38 am Reply with quoteBack to top

Your question may be answered better by rssinclude's support department as their PHP script isn't one of our products.

If you mean in general, how do you get XML code to display as browser viewable content in a sidebar, you may want to try using our rss2html PHP script and reference this forum thread on its usage examples:
http://feedforall.com/forum/viewtopic.php?t=384&sid=8f43b9d104e84665b694abd5512ed541

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
nancy651



Joined: 15 Jan 2016
Posts: 2

PostPosted: Fri Jan 15, 2016 1:27 pm Reply with quoteBack to top

Is there any other way to get the Feedforall code to show on the sidebar of Wordpress?
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Fri Jan 15, 2016 1:52 pm Reply with quoteBack to top

Since a Feed is RSS 2.0 formatted XML content, it depends on Wordpress. If Wordpress has a mechanism for displaying that XML content on a side bar through their site builder, you should be able to copy and paste the code from FFA's XML source (Under the Menu View - XML Source) in to it.

If the side bar is HTML, however, you'll need to translate the RSS Formatted XML content in to browser viewable HTML content by using our rss2html.php script or something similar, then feeding the output from that script in to the sidebar.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
poojayadav



Joined: 04 Apr 2016
Posts: 1
Location: france

PostPosted: Mon Apr 04, 2016 11:22 pm Reply with quoteBack to top

I wonder if I can get a sample XML syntax for adding a block or widget in the sidebar.
<!-- Mage_Catalog -->
<reference name="left">
<block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
<action method="setImgSrc"><src>images/sale-sidebar-left.jpg</src></action>
<action method="setImgAlt" translate="alt" module="catalog"><alt>Our 24/7. Call us at.</alt></action>
<action method="setLinkUrl"><url>w.html</url></action>
</block>
</reference>
<reference name="right">
<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
<block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">
<action method="setImgSrc"><src>images/promote-sidebar-right.jpg</src></action>
<action method="setImgAlt" translate="alt" module="catalog"><alt>Keep your eyes open!</alt></action>
<action method="setLinkUrl"><url>blog</url></action>
</block>
</reference> [/url]http://www.appsmarche.com/[url][/url]
View user's profileSend e-mail
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme