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
Unsubscription writing to [EMAIL PROTECTED]

Reply via email to