[SOLVED] Comments Module not Working with News

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

[SOLVED] Comments Module not Working with News

Post by skateoroma »

I've read the help and searched the forums, but I still cannot get the comments module to work with News.  If I call the comments module on a blank page, that doesn't work eiither.  Any ideas what I'm doing wrong.

Here is a link to the News summary page, http://rudeboyzofficial.com/rudethawtz.php.  When you read the article, the page doesn't load fully (the submenu and random pic does not display, and the comments do not display.

Cms Version: 1.4.1
Comments: 1.8.2
Captcha: 0.3.1


Template Name: NewsDetail

Code: Select all

<h3 id="NewsPostDetailTitle">{$entry->title}</h3>

<div id="NewsPostDetailPrintLink">
	{$entry->printlink} 
</div>

<!--   hr id="NewsPostDetailHorizRule" /   -->

<!-- {if $entry->summary}
	<div id="NewsPostDetailSummary">
		<strong>
			{eval var=$entry->summary}
		</strong>
	</div>
{/if} -->

<div class="clear"></div>

{if $entry->category}
	<div id="NewsPostDetailCategory">
		{$category_label} {$entry->category}
	</div>
{/if}
{if $entry->author}
	<div id="NewsPostDetailAuthor">
		{$author_label} {$entry->author}
	</div>
{/if}

{if $entry->formatpostdate}
	<div id="NewsPostDetailDate">
		{$entry->formatpostdate}
	</div>
{/if}

<div id="NewsPostDetailContent">
	{eval var=$entry->content}
</div>

{if $entry->extra}
	<div id="NewsPostDetailExtra">
		{$extra_label} {$entry->extra}
	</div>
{/if}

{if $return_url != ""}
<div id="NewsPostDetailReturnLink">{$return_url}</div>
{/if}

{if isset($entry->fields)}
  {foreach from=$entry->fields item='field'}
     <div class="NewsDetailField">
        {if $field->type == 'file'}
	  {* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
          <img src="{$entry->file_location}/{$field->value}"/>
        {else}
          {$field->name}: {eval var=$field->value}
        {/if}
     </div>
  {/foreach}
{/if}
{cms_module module='comments' modulename='news' pageid=$entry->id}
Last edited by skateoroma on Mon Sep 22, 2008 6:21 pm, edited 1 time in total.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: Comments Module not Working with News

Post by Russ »

Does captach load for anything like for the contact form plugin? I'm just thinking you don't have GD in your PHP so it won't load?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Comments Module not Working with News

Post by Dr.CSS »

You may want to look at validating your pages before trying to get this to work...
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: Comments Module not Working with News

Post by skateoroma »

Thanks for the responses.  I haven't tried captcha for anything yet, but I'll try it with the contact form plugin and see what happens.

Mark, I try to keep my pages as valid to xhtml transitional as possible, but the Album module has some wicked css that won't validate.  I think it's because of IE hacks.

Results from HTML validation
This document was successfully checked as XHTML 1.0 Transitional!
http://rudeboyzofficial.com/rudethawtz.php

Results from css validation: All errors from Album module css.
Sorry! We found the following errors (22)
URI : http://rudeboyzofficial.com/modules/Alb ... esheet.css

Still stuck...
Thanks
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: Comments Module not Working with News

Post by skateoroma »

Russ wrote: Does captach load for anything like for the contact form plugin? I'm just thinking you don't have GD in your PHP so it won't load?
It's a problem with captcha.  When I add the contact form to a page with captcha, the form doesn't display.  When I turn captcha off for the form, the form displays.  What do I do know.  Server permissions are 777 on all modules,  GD should be working because it creates thumbnails for the Album module (or could it be using ImageMagic).  Any more thoughts.
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: Comments Module not Working with News

Post by skateoroma »

When I turn captcha off in the comments module, it works  :'(, but I want to use captcha.

I checked my php settings and GD is enabled.

PHP GD Output
GD Support          enabled
GD Version          bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
GIF Read Support enabled
GIF Create Support enabled
JPG Support          enabled
PNG Support          enabled
WBMP Support          enabled
XBM Support          enabled
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: Comments Module not Working with News

Post by Russ »

Sounds like it is GD version, or paths or rights. Not sure what version of GD you need but I have a working install with

GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1

Hope this helps?
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: Comments Module not Working with News

Post by skateoroma »

Russ, what version of PHP are you using?

Also, when I enable captcha then disable it again, the page produces this error.  When I refresh the page, the error goes away.

string(200) "Smarty error: [in module_db_tpl:Comments;default_display line 63]: 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 63]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Last edited by skateoroma on Mon Sep 22, 2008 3:44 pm, edited 1 time in total.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: Comments Module not Working with News

Post by Russ »

Apologies, I some how missed that information off?
PHP Version 5.2.6
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: Comments Module not Working with News

Post by skateoroma »

Thanks, I'm on version: PHP Version 5.0.4

I will upgrade and see what happens.  Thanks again for your time.
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: [SOLVED] Comments Module not Working with News

Post by skateoroma »

Thanks again Russ.  Once I upgraded to PHP 5.2.6, captcha worked and the page loaded as expected.  So the real problem here was not with the comments module, it was with captcha.

Thanks for all your help.
Post Reply

Return to “Modules/Add-Ons”