hello i wanted to know if it was possible to include a page instead of putting an image in the table of the index page
i have the 1.2 version. infact i would like to improve my first page by putting news instead of nothing..
i hope you understood me.. :-?
ps: i know i have to change something with
else
{
$output.= replace_space( $lang['no_category'] );
}
bu i dont know what. i wait for your help..
THX for everything
try
include( 'relative/path/to/my/page.php' );
Offline
where do i have to put this code? i already tried but it does'nt work.. if i put this in the wrong place it will appear on all the page (pages with pictures)
so can u tell me where exactly i have to put this code in order to have an index page with ur menu on the left
infact it does work...
but the problem is that the page appears at the wrong place... it appears on the top of the menus et not on the right of the menu..
it was me but i forgot to put my name :-? i have still the same problem: impossible to make an include after a lot of try.
this include has to be made here i think
if ( isset ( $page['cat'] ) )
{
if ( is_numeric( $page['cat'] ) )
{
$output.="<img src=\"images/photos.gif\"><br>";
$output.= get_cat_display_name( $page['cat_name'], "<br />", "font-style:italic;" );
}
else
{
$output.= $page['cat_intitule'];
}
}
else
{
include( 'relative/path/to/my/page.php' );
}
Yes, in fact, you need to use $output to store all the HTML data you want to display. In the page to include, you mustn't use any echo instruction. Example :
<?php // file included by category.php $output.= 'My page to include<br />'; ?>
Offline