Page 1 of 2

News to Blog need help..

Posted: Thu Jan 04, 2007 7:57 pm
by ratzavlatz
Hi Guys,

I'm sorry for bothering you with this question but i've been trying to get this to work for so long. I guess I'm just to stupid, I worked my way trough the handbook but I keep on failing :-( I cannot get the comments to work properly on www.bioda.nl. Only the last message will give the "Add comment" option and I'm not able to style the "comment" field (I don't know where to do this..).

I'm using CMS Made Simple 1.0.2 "Maui", the server is running Windows / MySQL 4.0.27 /php uknown.

This is my news summary template :

Code: Select all

<!-- Start News Display Template -->
{foreach from=$items item=entry}
<div class="NewsSummary">

{if $entry->formatpostdate}
	<div class="NewsSummaryPostdate">
		{$entry->formatpostdate}
	</div>
{/if}

<div class="NewsSummaryLink">
	{$entry->titlelink}
</div>

<div class="NewsSummaryCategory">
	{$category_label} {$entry->category}
</div>

{if $entry->author}
	<div class="NewsSummaryAuthor">
		{$author_label} {$entry->author}
	</div>
{/if}

{if $entry->summary}
	<div class="NewsSummarySummary">
		{eval var=$entry->summary}
	</div>

	<div class="NewsSummaryMorelink">
		[{$entry->morelink}]
	</div>

{else if $entry->content}

	<div class="NewsSummaryContent">
		{eval var=$entry->content}
	</div>
{/if}

{cms_module module='comments' modulename='News' pageid=$entry->id spamprotect=1}

</div>
{/foreach}
<!-- End News Display Template -->

This is my news detail template :

Code: Select all

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

<hr id="NewsPostDetailHorizRule" />

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

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

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

{cms_module module='comments' modulename='News' pageid=$entry->id websitefield=1 emailfield=1}

<div id="NewsPostDetailPrintLink">
	{$entry->printlink}
</div>
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">{$return_url}</div>
{/if}

So I have to questions :

1 : How do I get the comments module to work on every news item?
2 : How do I style the Comment fields? (I have added the news css to the template)

I would not mind sharing my login/password if this will fix it, you can PM me about this or find me on msn or whatever. I'm desperate, I'm trying to help a good friend who really needs this to work fast. It's really important to me that it will work..

The website is located at : http://www.bioda.nl (click weblog)

Thank you very much in advance.

Kind regards,
Thijs

Re: News to Blog need help..

Posted: Thu Jan 04, 2007 10:54 pm
by Dr.CSS
Take it out of the summary template and in the detail template put it at the very end after the last {/if}...

To style the comments if you look at the page source you will see the wrap around the comments just pick out then call them in styles...

Like this page (please add no comments here)... I've added the tinyMCE editor to it...

Re: News to Blog need help..

Posted: Fri Jan 05, 2007 8:58 am
by ratzavlatz
Thank you very much! I'm going to try this and get back to you.

Kind regards,
Thijs

Re: News to Blog need help..

Posted: Fri Jan 05, 2007 9:55 am
by ratzavlatz
Oke, I have cut

Code: Select all

{cms_module module='comments' modulename='News' pageid=$entry->id spamprotect=1}
out of the summary template and after this I pasted it to the detailtemplate (after the last {/if} ). Now the commentfield is gone on some of the weblog entries. Some still have the comment option but when you click it, the page refreshes but the commentfields do not appear..

Is there something i'm doing wrong? I would really appreciate it if you would take another look. If nccessary I can give you a temporary login if you want..

Kind regards,

Thijs

Re: News to Blog need help..

Posted: Fri Jan 05, 2007 11:32 am
by Dr.CSS
PM me a login I'll see what I can do...

Re: News to Blog need help ... re CAPTCHA

Posted: Sun Jan 21, 2007 2:31 am
by WebGirl
Hi there,

I'm using the NEWS MODULE for several different sections on my site
1. News
2. Articles I post
3. Blog
4. Interviews with business people

I've set up Categories for these 4, as well as sub-categories under each one.

I'd like to add COMMENTS to the Blog and Articles, so I'm ready! 
I installed the Comments Module and it is Active.
I already installed the module Captcha and it is 'Active'.

OK I just took the adventurous step of adding COMMENTS to my articles [using the NEWS module].

The Comment boxes appear just fine after clicking the COMMENTS link under the article, but the CAPTCHA pictures do not appear.

I've read the Help page for CAPTCHA but it was for developers, so I've looked in the forum but haven't found a solution ... yet ...

Is there something else I need to do to get it to work?

Cheers and thanks in advance!  :) am attaching pic of what it looks like


[gelöscht durch Administrator]

Re: News to Blog need help..

Posted: Sun Jan 21, 2007 4:27 am
by Dr.CSS
With the Comments module you shouldn't need the captcha module, in the Comments interface is a tab for options or settings at the end you can set captcha there if you look at the source for the page it will give you an idea where the path is wrong for the image...

There is a thread about why else it may not appear...

Re: News to Blog need help..

Posted: Sun Jan 21, 2007 4:50 am
by WebGirl
Hi Mark,

I uninstalled CAPTCHA - thanks for that tip.

I've refreshed the articles page, but when i click on 'Comments', I still get the field 'Code in the picture:'

I popped over to CMS MAILER module [mentioned in the Comments Help] but there are no settings there to change.

I can't seem to find what you've suggested : 'in the Comments interface is a tab for options'

Sorry for being so obtuse - can you please point me in the right direction? I've been clicking like a maniac. :)

Re: News to Blog need help..

Posted: Sun Jan 21, 2007 4:59 am
by Dr.CSS
In Content » Comments third tab Options...

spamprotect - Protect comments from spam. If not set, no spam protection will be used. (checkbox)

Another thread I found using "captcha image" had this in it... change File Creation Mask (umask): from "022" to "002"

Re: News to Blog need help..

Posted: Sun Jan 21, 2007 5:19 am
by WebGirl
Haha I'm a dufus! I never even noticed COMMENTS was under CONTENT!!

I kept looking under Modules and Tags  :-\

Thanks Mark, I've now checked it out, the setting is 'on'.  Now I'll go look for the 'mask'.

1. Cleared the cache using Site Admin - Global Settings
2. Changed the File Creation Mask (umask): to 002
3. Saved.

No - I still see the field on the Comments as 'Code in the picture:'

1. Went back to Extensions / Modules
2. Reinstalled Captcha
3. Back to Site Admin / Global Settings
4. Cleared cache [just in case]
5. Clicked Submit button
6. It worked!

WOOHOO!!  Thanks Mark, you're a star!  I feel a karmic click coming on :)


Cheers!

Re: News to Blog need help..

Posted: Sun Jan 21, 2007 6:40 am
by WebGirl
Hey Mark,

I just wrote everything I learned into the WIKI - I hope it's ok.

http://wiki.cmsmadesimple.org/index.php ... ns/Captcha

Hope I didn't miss anything out :)

Re: News to Blog need help..

Posted: Sun Jan 21, 2007 2:46 pm
by Dr.CSS
Just a couple of things, looks good, I'm glad you could get in to the wiki, hasn't let me in for a while...

News comes preinstalled...

Notify can be used to just notify you of a comment...

Moderate means the comment won't show till you go to the site and approve the submission, I think it will notify you not sure never used it...

Re: News to Blog need help..

Posted: Sun Jan 21, 2007 8:36 pm
by WebGirl
thanks Mark!  I'll fix those :D

UPDATE 10 Feb : I have followed your suggestions and updated the page. Thanks Mark!

Re: News to Blog need help..

Posted: Fri Feb 09, 2007 8:08 pm
by jhoogeweij
Hi Mark,

I've been trying to add comments to news items and had some succes, but now I seem to be unable to make the comment field smaller, as to fit in my template (see http://yaronproducties.nl/index.php?mac ... eturnid=53 ). In your response to an earlier posting, you wrote:

"To style the comments if you look at the page source you will see the wrap around the comments just pick out then call them in styles..."

So I'm trying to understand this.....
Does it mean that in order to change the size of the input fields in comments, I should add a ".comment" div to my stylesheet, in which I define the size of the input box? I have the exact same problem with my search input field, which stretches my left bar. I would be very grateful for a response. (I tried out the blog module but hthat didnt seem to be working yet :-(


[quote


Voeg commentaar toe


Voeg commentaar toe










Code in de afbeelding:




Uw naam(*):




Reactie(*):



 















[/quote]

best wishes and thanks in advance,

Jeroen

Re: News to Blog need help..

Posted: Thu Mar 01, 2007 9:34 pm
by Dr.CSS
You could try adding this to your style sheet...

.m2{width:410px}