Hi john,
Thank you. You have been very helpful. !! I'm going to read more about
"css", in order to learn a bit more!, So easy and clear, thanks again john!
----------------------------------------------------------------------
Message: 1
Date: Thu, 23 Nov 2006 16:37:56 +0100
From: Asen QUINTANA <[EMAIL PROTECTED]>
Subject: [COREblog-en] URL required in "preview comments" in COREBlog2
0.9b
To: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII
I just became a member in CoreBlog list, hello to you
I have some problems in this product and I would like to launch it asap
Productsinstalled: COREBlog2 0.9b installed ( in Plone version: 2.1.2 &
Zope version: (Zope 2.8.6-final, python 2.3.5, linux2)
I customize the cbcomment_form page template, in order to hide the URL &
mail entries.
IIn my blog settings, in Comments,trackbacks Details section I have
unchecked "require email", required url", "Send a notification mail on new
comment" and "Send a notification mail on new trackback " ;
I also customize cbadcomment python script and deleted in the entry #Try to
add comment , the fields url and email.
I can Add a new comments but I cannot "preview" them . I get the error
"key error" value=URL.
I don't know where to change this, I have a look in the error log and the
URL error is in "cbentry_view" form, but I don't have in that page template
any refereence to 'URL' field.
Can anyone help me???
Asen Quintana
------------------------------
Message: 2
Date: Fri, 24 Nov 2006 10:09:32 +1100
From: "john habermann" <[EMAIL PROTECTED]>
Subject: Re: [COREblog-en] URL required in "preview comments" in
COREBlog2 0.9b
To: "Coreblog (English)" <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi Asen
On 11/24/06, Asen QUINTANA <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I just became a member in CoreBlog list, hello to you
> I have some problems in this product and I would like to launch it asap
>
> Productsinstalled: COREBlog2 0.9b installed ( in Plone version: 2.1.2 &
> Zope version: (Zope 2.8.6-final, python 2.3.5, linux2)
>
> I customize the cbcomment_form page template, in order to hide the URL
&
> mail entries.
A much easier way to hide the URL and mail entries from being
displayed is to just use CSS. All you have to do is add an id to the
URL field in the cbcomment_form.pt file:
<div class="field" id="URL"
tal:define="error errors/url|nothing;"
tal:attributes="class python:test(error, 'field error',
'field')">
<label for="url" i18n:translate="label_url">URL</label>
.......
</div>
and then in your coreblogCustom.css file add the following:
#URL {
display: none;
}
You of course need to make the fields not required in the blog
settings which you have already done.
Thats it refresh the page and you won't see the url field in the
comments. Do the same for the email field if you don't want that
displayed but be aware that you are making it easier for automatic
scripts to put comment spam on your site by getting rid of these
fields.
cheers
John
> IIn my blog settings, in Comments,trackbacks Details section I have
> unchecked "require email", required url", "Send a notification mail on
new
> comment" and "Send a notification mail on new trackback " ;
> I also customize cbadcomment python script and deleted in the entry #Try
to
> add comment , the fields url and email.
>
> I can Add a new comments but I cannot "preview" them . I get the error
> "key error" value=URL.
>
> I don't know where to change this, I have a look in the error log and
the
> URL error is in "cbentry_view" form, but I don't have in that page
template
> any refereence to 'URL' field.
>
> Can anyone help me???
> Asen Quintana
>
> _______________________________________________
> COREblog-en mailing list
> [email protected]
> http://postaria.com/mailman/listinfo/coreblog-en
> Unsubscription writing to [EMAIL PROTECTED]
>
--
John Habermann
Internet Programmer, System Administrator
The Wilderness Society Inc
http://www.wilderness.org.au
------------------------------
_______________________________________________
COREblog-en mailing list
[email protected]
http://postaria.com/mailman/listinfo/coreblog-en
End of COREblog-en Digest, Vol 25, Issue 7
******************************************
_______________________________________________
COREblog-en mailing list
[email protected]
http://postaria.com/mailman/listinfo/coreblog-en
Unsubscription writing to [EMAIL PROTECTED]