hi, my first post here... very nice site
im very new to scripting and web design so I have a few questions if anybody could spare a few mins
I am trying to set up a link submitter ( eSyndicat ) and also a news publisher (cutenews) on the same index page
I am using a template for the index page that contains the link submitter code.. the main index.php file points to .tlp files (template i assume) to display certain parts of the page
now my question is can I somehow execute PHP inside of this tlp script, because I have worked out how to edit the index.tlp file in order to add in another box section and im trying to get the news script to execute inside of it... there is enough room im sure
I managed to execute the php code inside of the main index.php file but it goes to very bottom of webpage as I cant add in these template boxes through the php file, only the tlp file if you know what I mean
The code in the main index.php file pointing to the .tlp files is like this:
$neighbour_categories = $Category->getNeighbours($id, $category['num_neighbours']);
$neighbour_categories = $neighbour_categories ? $gDirLayout->print_categories($neighbour_categories) : '';
$gDirSmarty->assign_by_ref('neighbour_categories', $neighbour_categories);
}
/** number of listings for current category and subcategories **/
$gDirSmarty->assign('num_listings', $category['num_all_listings']);
/** number of subcategories for current category **/
$num_categories = $Category->getNumSubcategories($id);
$gDirSmarty->assign_by_ref('num_categories', $num_categories);
$gDirSmarty->display('index.tpl'); ( as u can see here im directing to the tpl file )
the code in the template file to make my box section is like this:
<div class="box" style="border: none;">{$category.description}</div>
{include file="box-header.tpl" caption=$lang.categories}
*** I want to execute the PHP script inside here somehow ***
{include file="box-footer.tpl"}
{include file="footer.tpl"}
I know this is post is kind of vague as im not too sure about this stuff and maybe this isnt even possible, but any help would be appreciated... thanks, as you can see below im trying to get this php code to execute inside that news section