Search 
Search Forums:


 




inline comments bug: Show Comments text being shown instead of Hide Comments

Reply to Post
UserPost

7:59 pm
October 11, 2008


Busy Mom

Guest

I accidentally posted on the blog comments, please go ahead and remove that entry if you want.Sorry for the duplication!

I think I’m encountering a bug that is driving me crazy. I’m using inline comments with hidden on the default of this page (it happens to be an archive page). I can get my “Show Comments” text to show normally and I can format them in the CSS by using the .comments_link class. After I’ve followed the show comments link, they pop up correctly, but the new text that shows up using the .awpcomments_link_hide class is only correct if I don’t do anything weird in the Show comments text. For example if I try to load a <span>...</span> around my show comments text when I enter it into admin, the Hide Comments text don’t show with the formatting for the .awpcomments_link_hide class, the Show Comments text still does. The same thing happens if I add some html like one or multiple <br /> tags to the Show Comments text when I enter it into admin. If I just add plain text, the Hide Comments that I entered into admin display correctly with the formatting of .awpcomments_link_hide class. Furthermore, after I’ve gone through the Show Comments followed by Hide Comments, the resulting Show Comments text now uses the .awpcomments_link class instead of the .comments_link class that it used the first time. I am assuming this is by design but in case it is a bug, I thought I’d bring it up. As long as I know about it, I can code my CSS correctly, so I don’t care. The other problem, though, is a big issue for me because the wrong Hide text is coming up when I show the comments. I need the html in the code because my .comments_link / .awpcomments_link classes have a background image that is used to indicate the Show Comments instead of the text. I need the html to push the text below or above the background image. As a workaround, I might need to leave a top margin for the text in my background image to contain the text, but I’d rather try to understand better why the code is doing this since it doesn’t seem like the right behavior.

Thanks, Karen

12:47 am
October 14, 2008


Aaron

Admin

posts 245

Because of the way the JS works, html in the comment texts is unsupported. What you can do is define in the class a height and width and tell it to display the link as a block to get it to function so you can add a background image.

The multiple classes is intentional so people can modify the way the link displays based on whether the comments have been displayed or not.

12:18 pm
October 14, 2008


Karen Fox

Guest

Thanks for responding, Aaron. I ended up working around the limitation in a similar way, but now I’m encountering a class problem with the comment form. Will post that in a separate entry. Thanks for your support, I am LOVING the way this is coming together for me! Very sharp looking and user friendly!

Karen

Reply to Post


Reply to Topic: inline comments bug: Show Comments text being shown instead of Hide Comments

Name (Required):

EMail (Required):

Website):

Guest URL (required)

Math Required!
What is the sum of: 1 + 6        (Required)

Topic Reply:


 

About the Anthology of Ideas forum

Currently Online:

2 Guests

Maximum Online: 33

Forums:

Groups: 2

Forums: 6

Topics: 214

Posts: 674

Members:

There are 1 members

There are 201 guests

Aaron has made 245 posts

Top Posters:

Administrator: Aaron