1
PTlooker
Implemeting Comment feature in tutorials mod - Smarty error
  • 2006/3/7 5:54

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


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/Commentsystem

But 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;">
<!-- 
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>


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;'>
<!-- 
start comments loop -->
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;
<!-- 
end comments loop -->
</
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!

2
PTlooker
Re: Implemeting Comment feature in tutorials mod - Smarty error
  • 2006/3/7 16:31

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


anyone please?

3
PTlooker
Re: Implemeting Comment feature in tutorials mod - Smarty error
  • 2006/3/7 20:40

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


i dont wanna be boring but can anyone help me on this please?
Thanks!

4
stefan88
Re: Implemeting Comment feature in tutorials mod - Smarty error
  • 2006/3/7 21:52

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


from what I read in wiki, the code you put in showlist.php have to be in your template file where you want comments to appear ...

Any messages if you enable the diferent debug options (smarty, php) in XOOPS admin general preferences?
..

5
PTlooker
Re: Implemeting Comment feature in tutorials mod - Smarty error
  • 2006/3/7 21:53

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


The problem is that this module is very very old and the template is included in the .php file in this case in the showlist.php, thats why i have this problem. i cant use smarty and i dont know how to do it?
Any idea?
Thanks in advance!

6
stefan88
Re: Implemeting Comment feature in tutorials mod - Smarty error
  • 2006/3/7 22:03

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


No ideas

Is it available for download?
..

7
PTlooker
Re: Implemeting Comment feature in tutorials mod - Smarty error
  • 2006/3/7 22:08

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


Yes it is in mytutorials.info i already tried to contact the admin and no answer...like i said this modules have some years...so if you get something please let me know...thanks in advance!

8
PTlooker
Re: Implemeting Comment feature in tutorials mod - Smarty error
  • 2006/3/8 8:06

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


anyone please?

9
PTlooker
Re: Implemeting Comment feature in tutorials mod - Smarty error
  • 2006/3/8 15:18

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


Sorry to repeat, just to keep this more on the top once it isn't solved yet.
Thanks in advance!

10
stefan88
Re: Implemeting Comment feature in tutorials mod - Smarty error
  • 2006/3/8 18:35

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,
what version are you using? I downloaded tutorialsV2_1b and it did not work on two test servers I have ...
..

Login

Who's Online

210 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits