FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 RssMesh XML Template View next topic
View previous topic
Post new topicReply to topic
Author Message
stephenx



Joined: 18 Jul 2006
Posts: 4

PostPosted: Tue Jul 18, 2006 3:56 pm Reply with quoteBack to top

How do I modify the default XML Template?

I ran http://newscentral.christianbooknet.info/rss2html.php?XMLFILE=http://newscentral.christianbooknet.info/rssMesh.php?CONFIGFILE=http://newscentral.christianbooknet.info/christianbookcfg.php

And got the following:

rssMesh.php Sample Template
A sample RSS feed template for rssMesh.php, http://www.FeedForAll.com/, by NotePage, Inc.

I suppose I should modify the default template file?

Help!
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Tue Jul 18, 2006 4:15 pm Reply with quoteBack to top

stephenx wrote:
How do I modify the default XML Template?

I ran http://newscentral.christianbooknet.info/rss2html.php?XMLFILE=http://newscentral.christianbooknet.info/rssMesh.php?CONFIGFILE=http://newscentral.christianbooknet.info/christianbookcfg.php

And got the following:

rssMesh.php Sample Template
A sample RSS feed template for rssMesh.php, http://www.FeedForAll.com/, by NotePage, Inc.

I suppose I should modify the default template file?

Help!


You can either modify the sample, or copy the sample and modify the copy. If you are good with XML it isn't too hard, if not you can use FeedForAll Mac or FeedForAll (Windows).

Jim
View user's profileVisit poster's website
stephenx



Joined: 18 Jul 2006
Posts: 4

PostPosted: Tue Jul 18, 2006 4:18 pm Reply with quoteBack to top

I modified the XML template. Now if I run:
http://newscentral.christianbooknet.info/rss2html.php?XMLFILE=http://newscentral.christianbooknet.info/rssMesh.php%3fCONFIGFILE%3dhttp://newscentral.christianbooknet.info/christianbookcfg.php&TEMPLATE=http://newscentral.christianbooknet.info/sample-template.html

It still doesn't show the news.

My cfg.php is generated by http://newscentral.christianbooknet.info/rssMesh.php?buildConfig

Here is the content of christianbookcfg.php:

<?PHP

$useOutputCaching = 1;

$outputCacheTTL = 3600;

$XMLTemplate = "rssMesh_Template.xml;"

$sortOutputByPubDate = 1;

$feedList = Array(

// Entry #1
Array("fileURL" => "http://news.search.yahoo.com/news/rss%3fp%3dchristian%2bbook%26toggle%3d1%26cop%3d%26ei%3dUTF-8%26eo%3dUTF-8",
"itemCount" => "5",
"feedTTL" => "3600"
)
,

// Entry #2
Array("fileURL" => "http://news.google.ca/news%3fhl%3den%26ned%3dca%26q%3dchristian%2bbook%26ie%3dUTF-8%26output%3drss",
"itemCount" => "5"
)
);

?>


Where did I go wrong??
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Tue Jul 18, 2006 4:20 pm Reply with quoteBack to top

stephenx wrote:
Here is the content of christianbookcfg.php:

<?PHP

$useOutputCaching = 1;

$outputCacheTTL = 3600;

$XMLTemplate = "rssMesh_Template.xml;"

Where did I go wrong??


There is an error in the version you have, the newest one should be up there, but the fix is easy.

Code:
$XMLTemplate = "rssMesh_Template.xml";


The ;" should have been "; . That should get you going.

Jim
View user's profileVisit poster's website
stephenx



Joined: 18 Jul 2006
Posts: 4

PostPosted: Wed Jul 19, 2006 8:58 am Reply with quoteBack to top

No it is still not working..

My rssMesh_Template.xml file is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Christian Book Network NewsCentral</title>
<description>Christian Book Network NewsCentral - Christian Book News</description>
<link>http://newscentral.christianbooknet.info</link>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<language>en-us</language>
</channel>
</rss>


Any suggestions?
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Sun Jul 23, 2006 6:11 am Reply with quoteBack to top

stephenx wrote:
I modified the XML template. Now if I run:
http://newscentral.christianbooknet.info/rss2html.php?XMLFILE=http://newscentral.christianbooknet.info/rssMesh.php%3fCONFIGFILE%3dhttp://newscentral.christianbooknet.info/christianbookcfg.php&TEMPLATE=http://newscentral.christianbooknet.info/sample-template.html

It still doesn't show the news.

My cfg.php is generated by http://newscentral.christianbooknet.info/rssMesh.php?buildConfig

Here is the content of christianbookcfg.php:

<?PHP

$useOutputCaching = 1;

$outputCacheTTL = 3600;

$XMLTemplate = "rssMesh_Template.xml;"

$sortOutputByPubDate = 1;

$feedList = Array(

// Entry #1
Array("fileURL" => "http://news.search.yahoo.com/news/rss%3fp%3dchristian%2bbook%26toggle%3d1%26cop%3d%26ei%3dUTF-8%26eo%3dUTF-8",
"itemCount" => "5",
"feedTTL" => "3600"
)
,

// Entry #2
Array("fileURL" => "http://news.google.ca/news%3fhl%3den%26ned%3dca%26q%3dchristian%2bbook%26ie%3dUTF-8%26output%3drss",
"itemCount" => "5"
)
);

?>


Where did I go wrong??


There are new versions of rss2html.php and rssMesh.php for download, please update to them.

Second, you don't want to use percent (%) encoded URLs from rss2html.php?buildURL in rssMesh. Your correct config file is

Code:
<?PHP

$useOutputCaching = 0;

$outputCacheTTL = 3600;

$XMLTemplate = "rssMesh_Template.xml;"

$sortOutputByPubDate = 1;

$feedList = Array(

// Entry #1
Array("fileURL" => "http://news.search.yahoo.com/news/rss?p=christian+book&toggle=1&cop=&ei=UTF-8&eo=UTF-8",
      "itemCount" => "5",
      "feedTTL" => "3600"
      )
,

// Entry #2
Array("fileURL" => "http://news.google.ca/news?hl=en&ned=ca&q=christian+book&ie=UTF-8&output=rss",
      "itemCount" => "5"
      )
);

?>


Try both of those changes and see if it is better for you.

Jim
View user's profileVisit poster's website
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