I'm using:
CMS Made Simple 1.9.3
CGExtensions 1.23
CGSimpleSmarty 1.47
CGBlog 1.7.1
CGFeedback 1.3.2
In my CGBlog Detail Template, I've called the CG Feedback module like so:
Code: Select all
{CGFeedback action='summary'}
<h2>Feedback Welcome</h2>
{CGFeedback}Code: Select all
{* comment form template *}
{if isset($message)}
  <div class="pagemessage">{$message}</div>
{else}
{* no message... display the form *}
<div class="cgfeedback_addcoment">
{if isset($error)}
  <div class="error">{$error}</div>
{/if}
{$formstart}
  <div>
    <div class="prompt">
      {$mod->Lang('prompt_title')}:
    </div>
    <div>
      <input type="text" name="{$actionid}title" size="40" maxlength="255" value="{$title}"/>
    </div>
  </div>
  <div class="clearfix"></div>
  <div>
    <div class="prompt">
      {$mod->Lang('prompt_your_name')}:
    </div>
    <div>
      <input type="text" name="{$actionid}author_name" size="40" maxlength="255" value="{$author_name}"/>
    </div>
  </div>
  <div class="clearfix"></div>
  <div>
    <div class="prompt">
      {$mod->Lang('prompt_your_email')}:
    </div>
    <div>
      <input type="text" name="{$actionid}author_email" size="40" maxlength="255" value="{$author_email}"/>
    </div>
  </div>
  <div class="clearfix"></div>
  <div>
    <div class="prompt">
      Comments:
    </div>
    <div>
      {$input_comment}
    </div>
  </div>
  <div class="clearfix"></div>
  <div>
      <input type="checkbox" name="{$actionid}author_notify" value="1" {if $author_notify == 1}checked="checked"{/if}/>
      <span>{$mod->Lang('prompt_notify')}</span>
  </div>
  <div class="clearfix"></div>
  {* custom fields *}
  {if isset($fields)}
  {foreach from=$fields key='fieldid' item='field'}
  <div>
    <div>
      {$field.name}:
    </div>
    <div>
    {if isset($field.input)}
      {$field.input}
    {elseif $field.type == 0 or $field.type == 1 }
      <input type="text" name="{$actionid}field_{$fieldid}" value="{$field.value}" size="{$field.attrib.length}" maxlength="{$field.atrrib.maxlength}"/>
    {elseif $field.type == 2}
      {* text area fields should have an input... so this should never get caled... but just in case *}
      <textarea name="{$actionid}field_{$fieldid}">{$field.value}</textarea>
    {elseif $field.type == 3}
      <select name="{$actionid}field_{$fieldid}">
        {html_options options=$field.attrib.options selected="{$field.value}"}
      </select>
    {elseif $field.type == 4}
      <select multiple="multiple" size="4" name="{$actionid}field_{$fieldid}[]">
        {html_options options=$field.attrib.options selected="{$field.value}"}
      </select>
    {/if}
    </div>
  </div>
  {/foreach}
  {/if}
  {if isset($captcha_img)}
 <div class="captcha">    {* handle captcha image *}
      {$captcha_img}<br />
please type the characters you see<br />
      <input type="text" name="{$actionid}feedback_captcha" value="" size="20" />
</div>
  {/if}
<div>
      <input type="submit" name="{$actionid}submit" value="{$mod->Lang('submit')}" />
</div>
{$formend}
</div>
{/if}When a comment is submitted, there is NO "Message displayed after successful comment submission." Rather, what I get is:
URL:
Key 1: __page__
Key 2: 64
Author: kerry ---
IP Address: ---
Title: test
Rating:
Comment:
Catchable fatal error: Object of class cgfb_comment could not be converted to string in server-location/cms/tmp/templates_c/CGFeedback^%%F1^F14^F141CB5F%%module_db_tpl%3ACGFeedback%3Bnotification_template.php on line 63
This is begun with an <__html> tag and truncates after the comment field.
Any ideas?
Thanks!

