FeedForAll Forum Index ?
?Home?????FAQ????? Search ?????Register ?????Profile? ????Log in
?Template not an html file but a php file View next topic
View previous topic
Post new topicReply to topic
Author Message

Joined: 14 Aug 2012
Posts: 1
Location: Italy

PostPosted: Tue Aug 14, 2012 7:39 am Reply with quoteBack to top


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


View user's profile

Joined: 13 Sep 2012
Posts: 2

PostPosted: Fri Sep 14, 2012 12:03 am Reply with quoteBack to top

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

index.php (rss2html.php renamed)
View user's profile

Joined: 27 Jan 2013
Posts: 5

PostPosted: Sun Jan 27, 2013 3:03 pm Reply with quoteBack to top

please post your php file and your header (and footer maybe). there is some problem with your includes.
View user's profile
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