Guest Posted December 7, 2005 Share Posted December 7, 2005 Hi Im trying to make a new box for adding some IT news into my site I have everything working have the box setup, I just cant include the content. this is what I have. (from the index.tpl) <div class="boxContent"> <span class="txtContentTitle">Latest It News</span> <br /> <?php include_once("am/latest.php"); ?> </div> The problem I see is im using a php command in a html file, but I thought once index.tpl gets included it wouldnt matter. Sorry for sounding like a Nube but for the life of me I cant remember or find a html include tag. Once this is sorted I can package this into a free mod, you will be able to write your own and add any type of news article. Quote Link to comment Share on other sites More sharing options...
Guest aikdo Posted December 7, 2005 Share Posted December 7, 2005 .tpl files are template file and can only contain HTML... all the PHP is phased out durring the alterations... to get this to work properly you would have to create a compleate new Box... If you want this created send me the file your trying to include and ill change it into the needed files for you... Quote Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2005 Share Posted December 7, 2005 Done. Thanks Quote Link to comment Share on other sites More sharing options...
Guest aikdo Posted December 7, 2005 Share Posted December 7, 2005 Need the other two files, config.php and article_summary aswell... Quote Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2005 Share Posted December 7, 2005 cool just emailed you the whole lot. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.