Re: Problems with comments.py

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Thu, 9 Jun 2005, Nathaniel Gray wrote:
> On Jun 9, 2005, at 6:49 AM, will guaraldi wrote:
>> 
>> You could put in an anchor that will scroll the page down to where the 
>> comment error is immediately upon posting.  I would suggest using that.
>
> Any hints on how I get the browser to do that?  Sorry, I'm not much of a web 
> programmer.  :-/

Toss something like this in comment-form:

    <a name="comment_anchor"><p>$comment_message</p></a>

Then the action of the comment form should end in #comment_anchor.  I 
tossed it on my blog and it works fine for the precious little testing I 
did.

I'll update the comment flavour files to have this.


>>> 3.  It's hard to style status/error messages.  If a message is output, 
>>> $comment_message should expand to a <div 
>>> style="commenterrormsg">...</div> block.  If no message is output it 
>>> should expand to an empty string.  That makes it easy to incorporate 
>>> the error message output in your flavour files without having them 
>>> take up space, and it makes them easier to style as well.
>
> How about this one?  I really want to put my error message in a big red 
> box, but without having the error message in a div I end up with a red 
> line in the non-error case.

I'll think about this.


>> So, we're not interested in adding that to the comments plugin 
>> directly, but you could write a comment-rejection plugin based on what 
>> you're talking about and the nospam plugin does something similar to 
>> what you're talking about.
>
> Ok, I've written one.  How do I submit it for inclusion in the registry 
> and/or contrib package?

I'm not accepting any more plugins into the contributed plugins package 
at this time.

In regards to the registry, you can fill out the form on the web-site for 
adding ...  Oh--looks like you've already done that.

I applied pieces of the patch.  Revisions will be in the next contributed 
plugins pack.  Thanks!

/will


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.