4
Thanks mamba and bitcero
Bitcero method is working and it exactly what i want
xoops is amazing

just one issue .. i put my code in root and my code is like this
test.php
<?php include("/mainfile.php"); include(XOOPS_ROOT_PATH."/header.php"); $meta_keywords = ""; $meta_description = ""; $pagetitle = ""; if(isset($xoTheme) && is_object($xoTheme)) { $xoTheme->addMeta( 'meta', 'keywords', $meta_keywords); $xoTheme->addMeta( 'meta', 'description', $meta_description); } else { // Compatibility for old Xoops versions $xoopsTpl->assign('xoops_meta_keywords', $meta_keywords); $xoopsTpl->assign('xoops_meta_description', $meta_description); } $xoopsTpl->assign('xoops_pagetitle', $pagetitle); //this will only work if your theme is using this smarty variables $xoopsTpl->assign( 'xoops_showlblock', 0); //set to 0 to hide left blocks $xoopsTpl->assign( 'xoops_showrblock', 0); //set to 0 to hide right blocks $xoopsTpl->assign( 'xoops_showcblock', 1); //set to 0 to hide center blocks ?> Testing [en]Testing[/en] <?php echo "Hello world"; ?> <?php echo $xoopsTpl->fetch( 'test.html' ); ?>
test.html
le="color: #000000"><?php <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>"> <head> <title><{if $xoops_pagetitle !=''}><{$xoops_pagetitle}> : <{/if}><{$xoops_sitename}></title> <meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" /> <meta name="keywords" content="<{$meta_keywords}>" /> <meta name="description" content="<{$meta_description}>" /> </head> <body> testing <{$xoops_sitename}> </body> </html>
the content in test.php is display exactly what i would like it to be and multilanguage is working
but the content in my test.html template is not showing in my custom php page
thanks Again..