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
<?php 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
le="color: #000000"><?php $xoopsTpl->assign( "page", $_GET['get'].'.html' );
Now in my template i have this
le="color: #000000"><?php {include file=$page} <div style="text-align: center; padding: 3px; margin:3px;"> <{$commentsnav}> <{$lang_notice}> </div> <div style="margin:3px; padding: 3px;"> <!-- start comments loop --> <{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}> <!-- end comments loop --> </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