 |
? |
Author |
Message |
discotom
Joined: 14 Aug 2012
Posts: 1
Location: Italy
|
Posted: Tue Aug 14, 2012 7:39 am |

|
Hi
I have uploaded the rss2html.php file.
I have inserted the .xml location of the remote feed i want to display on my site.
This feed is displayed fine.
However, I want to include the feed into the design of my site. However, my site template is not a .html file but a .php file.
It is basically an index.php file which inside it first calls an include("header.php") then has an echo " blah blah " which is basically where i want the feed displayed, then an include("footer.php").
Obviously the header.php contains html code and the footer the concluding html code, and the index pulls them all together.
When i put the $TEMPLATEfilename = "index.php"; and then load the rss2html.php file, all that is displayed is the feed. No template formatting at all.
I presume it's because it's not an html file...
Any ideas??
Thanks
Tom
|
|
|
 |
 |
ridata
Joined: 13 Sep 2012
Posts: 2
|
Posted: Fri Sep 14, 2012 12:03 am |

|
What you want to do is name your template file something like blog.html
then rename your ress2html.php to index.php
This way when you load your page www.whatever.com/blog/ (if your server is setup it should load the index.php without having to add index.php after the /blob/) and it will do the rest.
so it will look like $TEMPLATEfilename = "blog.html";
my files are
blog.html
index.php (rss2html.php renamed)
FeedForAll_XMLParser.inc.php
rss2html-docs.txt
|
|
|
 |
 |
bijibuji
Joined: 27 Jan 2013
Posts: 5
|
Posted: Sun Jan 27, 2013 3:03 pm |

|
please post your php file and your header (and footer maybe). there is some problem with your includes.
|
|
|
 |
 |
|
|
|