Re: URL required in "preview comments"
Asen QUINTANA <asen.quintana-/6OuRI5q/5XzeU/GFWpvzti2O/[email protected]> Fri, 24 Nov 2006 16:53:56 +0100
| Newsgroups | gmane.comp.python.zope.coreblog.english |
|---|---|
| Message-ID | <OFFEE0FAAC.C51E2FAD-ONC1257230.0056ADF1-C1257230.005725FB@msf.org> |
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 <asen.quintana-/6OuRI5q/5XzeU/GFWpvzti2O/[email protected]> Subject: [COREblog-en] URL required in "preview comments" in COREBlog2 0.9b To: coreblog-en-/9qXvnWia/9Wk0Htik3J/[email protected] Message-ID: <OF0D33E5AE.BF4430A4-ONC125722F.00549088-C125722F.0055ABEB-Eafd+3KhPos@public.gmane.org> 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)" <coreblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]> Message-ID: <a03253580611231509x721548dn1f762a241b1d1a8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Asen On 11/24/06, Asen QUINTANA <asen.quintana-/6OuRI5q/5XzeU/GFWpvzti2O/[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 > COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected] > http://postaria.com/mailman/listinfo/coreblog-en > Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected] > -- John Habermann Internet Programmer, System Administrator The Wilderness Society Inc http://www.wilderness.org.au ------------------------------ _______________________________________________ COREblog-en mailing list COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected] http://postaria.com/mailman/listinfo/coreblog-en End of COREblog-en Digest, Vol 25, Issue 7 ****************************************** _______________________________________________ COREblog-en mailing list COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected] http://postaria.com/mailman/listinfo/coreblog-en Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected]