Got the comments module working like I want it now... Thanks Russ... However, I received intermittent errors when I access an article with comments. When I refresh the errors go away.
From this link, click on an article with comments, http://rudeboyzofficial.com/rudethawtz.php.
See error below.
string(200) "Smarty error: [in module_db_tpl:Comments;default_display line 65]: syntax error: unrecognized tag: $entry-?phpMyAdmin=toGgkFcqUhAHgHeys4MNRf%2ChUXe>author_website (Smarty_Compiler.class.php, line 446)" string(138) "Smarty error: [in module_db_tpl:Comments;default_display line 65]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
----------------------------------------------
Cms Version: 1.4.1
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 0.4.1
* MenuManager: 1.5.1
* ModuleManager: 1.2.1
* News: 2.8.2
* nuSOAP: 1.0.1
* Printing: 0.2.5
* Search: 1.5.1
* ThemeManager: 1.0.8
* TinyMCE: 2.4.5
* Comments: 1.8.2
* Captcha: 0.3.1
* FormBuilder: 0.5.3
* FrontEndUsers: 1.4.3
* CGExtensions: 1.8
* NMS: 2.1.1
* CMSakismet: 1
* SelfRegistration: 1.2.1
* Album: 0.9.3
Config Information:
* php_memory_limit:
* process_whole_template: true
* max_upload_size: 10000000
* default_upload_permission: 664
* assume_mod_rewrite: true
* page_extension: .php
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* safe_mode: Off (False)
* phpversion: 5.2.6
* memory_limit: 32M
* max_execution_time: 30
* gd_version: 2
* session_save_path: No check because open basedir active
Server Information:
* Server Api: apache2handler
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.27
[SOLVED] Smarty Errors in Comments Module
-
- Forum Members
- Posts: 25
- Joined: Sat Dec 01, 2007 12:00 am
[SOLVED] Smarty Errors in Comments Module
Last edited by skateoroma on Tue Sep 23, 2008 6:06 pm, edited 1 time in total.
Re: Smarty Errors in Comments Module
Do you mind posting the content of that template as well?
-
- Forum Members
- Posts: 25
- Joined: Sat Dec 01, 2007 12:00 am
Re: Smarty Errors in Comments Module
No problem, thanks for the help.
Comments Template
Comments Template
Code: Select all
<div id="comments">
<!-- Start Comments Display Template -->
{if FALSE == $errormessage}
{startExpandCollapse id="name" title="$addacomment"}
{else}
{$errormessage}
{/if}
<h3>{$addacomment}</h3>
{$startform}
{$image}
{if $spamprotect}
{$spamprotectimage}<br />
{/if}
<table>
{if $spamprotect}
<tr>
<td>{$entercodetxt}:</td>
<td>{$inputentercode}</td>
</tr>
{/if}
<tr>
<td>{$yournametxt}(*):</td>
<td>{$inputyourname}</td>
</tr>
{if $emailfield}
<tr>
<td>{$emailtxt}:</td>
<td>{$inputemail}</td>
</tr>
{/if}
{if $websitefield}
<tr>
<td>{$websitetxt}:</td>
<td>{$inputwebsite}</td>
</tr>
{/if}
<tr>
<td>{$commenttxt}(*):</td>
<td>{$inputcomment}</td>
</tr>
<tr>
<td> </td>
<td>{$submit} {$cancel}</td>
</tr>
</table>
{$endform}
{if FALSE == $errormessage}
{stopExpandCollapse}
{/if}
<div class="commententry">
<h2>Recent Comments</h2>
<br />
<ul>
{foreach from=$items item=entry}
<li>
{$entry->date} -
{if $entry->author_email}
<a href="mailto:{$entry->author_email|escape:"hexentity"}">{$entry->comment_author}</a>
{else}
{$entry->comment_author}
{/if}
{if $entry->author_website}(<a href="{$entry-?phpMyAdmin=toGgkFcqUhAHgHeys4MNRf%2ChUXe>author_website}" target="_blank">{$entry->author_website}</a>){/if}
{$entry->comment_data}
</li>
{/foreach}
</ul>
</div>
<!-- End Comments Display Template -->
</div>
Re: Smarty Errors in Comments Module
This line here seems to be the problem:
Might it suppose to be:
Code: Select all
{if $entry->author_website}(<a href="{$entry-?phpMyAdmin=toGgkFcqUhAHgHeys4MNRf%2ChUXe>author_website}" target="_blank">{$entry->author_website}</a>){/if}
Code: Select all
{if $entry->author_website}(<a href="{$entry->author_website}" target="_blank">{$entry->author_website}</a>){/if}
-
- Forum Members
- Posts: 25
- Joined: Sat Dec 01, 2007 12:00 am
Re: Smarty Errors in Comments Module
Thanks duclet. I didn't add that code, that was a part of the install, so not sure why it's there. Anyway, I tried it and it fixed the errors.
Thanks again

Thanks again

