1
Hi,
I'm trying to put the comment feature into my tutorials module with the help of this XOOPS tutorial:
http://dev.xoops.org/modules/phpwiki/index.php/CommentsystemBut when i put this code in showlist.php i got the code showned in the file:
<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>
So i've used the samrty function to parse it and i got this:
<div style='text-align: center; padding: 3px; margin: 3px;'>
echo $this->_tpl_vars['commentsnav'];
echo $this->_tpl_vars['lang_notice'];
div>
<div style='margin: 3px; padding: 3px;'>
if ($this->_tpl_vars['comment_mode'] == 'flat'):
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'db:system_comments_flat.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
elseif ($this->_tpl_vars['comment_mode'] == 'thread'):
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'db:system_comments_thread.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
elseif ($this->_tpl_vars['comment_mode'] == 'nest'):
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'db:system_comments_nest.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
endif;
div>
But when i do that my page turns all white and it only show the icon and the name of te tutorisal section and nothing more, i dont have the XOOPS page, neither the tutorial text, nothing...
Anyone can help me on this please?
Thanks in advance!