Module Comments Cannot Post Comment

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
pbb
Forum Members
Forum Members
Posts: 18
Joined: Fri Jan 01, 2010 3:09 pm

Module Comments Cannot Post Comment

Post by pbb »

Here is my problem: I have combined the news and module comments. When trying to post a comment, I get an error message asking to enter the author name (what I have done of course) and the comment is not sent. Can somebody help me wit h this? 



My detailed article template :
_______________________________________________________________________________________
{* set a canonical variable that can be used in the head section if process_whole_template is false in the config.php *}
{if isset($entry->canonical)}
  {assign var='canonical' value=$entry->canonical}
{/if}


{$entry->title|cms_escape:htmlall}












{eval var=$entry->content}


{if $entry->extra}

{$extra_label} {$entry->extra}

{/if}




{$entry->printlink}

{if $return_url != ""}
Voir les autres articles
{/if}

{if isset($entry->fields)}
  {foreach from=$entry->fields item='field'}
   
        {if $field->type == 'file'}
  {* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
          file_location}/{$field->value}"/>
        {else}
          {$field->name}: {eval var=$field->value}
        {/if}
   


  {/foreach}



{/if}

{cms_module module='comments' localedateformat='le %d/%m/%Y à  %I:%M %p' lang='fr_FR' modulename='News'  pageid=$entry->id}

________________________________________________________________________________________________



My template for comments display:
________________________________________________________________________________________________


{if FALSE == $errormessage}
{startExpandCollapse id="name" title="$addacomment"}
{else}
{$errormessage}
{/if}
{$addacomment}

{$startform}
{$image}
{if $spamprotect}
{$spamprotectimage}

{/if}


{if $spamprotect}

{$entercodetxt}:
{$inputentercode}

{/if}


{$yournametxt}(*):






{if $emailfield}

{$emailtxt}:
{$inputemail}

{/if}
{if $websitefield}

{$websitetxt}:
{$inputwebsite}

{/if}

{$commenttxt}(*):
{$inputcomment}


 
{$submit} {$cancel}



{$endform}
{if FALSE == $errormessage}
{stopExpandCollapse}
{/if}



{foreach from=$items item=entry}

{$entry->date} -
{if $entry->author_email}
author_email|escape:"hexentity"}">{$entry->comment_author}
{else}
{$entry->comment_author}
{/if}
{if $entry->author_website}(author_website}" target="_blank">{$entry->author_website}){/if}
{$entry->comment_data}

{/foreach}




____________________________________________________________________________________
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Module Comments Cannot Post Comment

Post by Dr.CSS »

Where did you get this line?...

pbb
Forum Members
Forum Members
Posts: 18
Joined: Fri Jan 01, 2010 3:09 pm

Re: Module Comments Cannot Post Comment

Post by pbb »

This was the problem. Thanks a lot. I went back the old settings and it works. However, my problem is not completely solved: the length of the textarea (the one where you put your name in) is too long for my website. This is why I got the line




from the source code of a draft of my site. To copy it was probably a mistake but I could not figure another way to change the length of the textarea which sould be maxlength='150' instead of the default value of 250. 

Is there another way to change it? I have only be able to modify the size of the comment box  by doing this :

/* begin comments */
#comments textarea
{ width:300px; }
/* end comments */

The 'help' section of the module does not say anything about modifying the text area and doing this does not help:

/* begin comments */
#mdad27author
{width:150px;}
#comments textarea
{ width:300px; }
/* end comments */

Then, how do you do it? I really would appreciate any suggestion since this is  the only problem I have with my website (www.ventoux-magazine.com) built with CMSMS - which is really a great interface. 
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Module Comments Cannot Post Comment

Post by Dr.CSS »

Try using...


#comments input {width:40px}  of course this is too narrow...
pbb
Forum Members
Forum Members
Posts: 18
Joined: Fri Jan 01, 2010 3:09 pm

Re: Module Comments Cannot Post Comment/[SOLVED]

Post by pbb »

Thanks a lot. It solved the problem.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Module Comments Cannot Post Comment

Post by Dr.CSS »

Modify the first post Subject: to reflect [solved]...
Post Reply

Return to “Layout and Design (CSS & HTML)”