Jump to content

include into index.tpl


Guest

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...