1
Hello
I have Made very Simple Module to add comment to html pages without useing any content Modules to wrap it up .
all working but I could not assign the html page to the template .
this is the Module index content
include("../../mainfile.php");
$xoopsOption['template_main'] = 'com.html';
include(XOOPS_ROOT_PATH."/header.php");
if(isset($_GET['get']))
{
if (file_exists($_GET['get'].'.html')) {
include $_GET['get'].'.html';
}
} else {
include 'anything.html';
}
$xoopsTpl->assign( "page", $_GET['get'].'.html' );
include XOOPS_ROOT_PATH.'/include/comment_view.php';
include("../../footer.php");
?>
to call Page .
Quote:
as u can see i assigned pages with html end to the template with smarty verible called page
$xoopsTpl->assign( "page", $_GET['get'].'.html' );
Now in my template i have this
{include file=$page}
<div style="text-align: center; padding: 3px;
margin:3px;">
<{$commentsnav}>
<{$lang_notice}>
div>
<div style="margin:3px; padding: 3px;">
<{if $comment_mode == "flat"}>
<{include file="db:system_comments_flat.html"}>
<{elseif $comment_mode == "thread"}>
<{include file="db:system_comments_thread.html"}>
<{elseif $comment_mode == "nest"}>
<{include file="db:system_comments_nest.html"}>
<{/if}>
div>
and when i call the page as mentioned above . it opens the page but ignors the "{include file=$page}" this makes the comment Navgatore Shows above the Contenet instaed in the Bottom ..
any idea .. whts wrong