Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   Adjusted $allowedtags in kses.php - still no ordered/unordered lists show in comments (http://forum.bytesforall.com/showthread.php?t=10027)

eraccusa Oct 2, 2010 04:35 PM

Adjusted $allowedtags in kses.php - still no ordered/unordered lists show in comments
 
Yes, I found this thread: http://forum.bytesforall.com/showthread.php?t=1707 and I understand that this may just be a WordPress "gotcha" problem. However, I did just donate to this BytesForALL site, so please bear with me and work with me to solve this. Thanks.

Here is what I have: Atahualpa 3.5.3 on WordPress 3.0.1 with CKEditor 3.4.1 (Plugin version 1.0.2)

I want to allow users to have the ability to use the CKEditor minimal editor and use the clickable buttons on that in posting comments. They can use the editor buttons and all appears to work. But once a comment is approved the ordered / unordered lists do not show numbers and bullets. Also, linked pictures do not show after approval of a comment, although they do show while creating the comment. Other than editing kses.php to allow these in comments, what needs adjusting? Thank you.

eraccusa Oct 2, 2010 04:49 PM

To check if this is a theme problem I changed to the default theme with WordPress 3.0.1 and the ordered/unordered lists DO show up. Switching back to Atahualpa 3.5.3 breaks that again.

This appears to be a theme related problem with Atahualpa 3.5.3 at this point.

juggledad Oct 2, 2010 05:12 PM

can you point to a page showing the issue?

eraccusa Oct 2, 2010 05:40 PM

Here is the only page with comments where I have tried it so far:

http://blog.eracc.com/2010/10/02/sit...keditor-added/

juggledad Oct 2, 2010 07:11 PM

Ok in order to test this, you are going to have to walk me thru
1) where did you put the ckeditor folder
2) what options do you have enabled for the editor
3) what did you do to allow users to enter comments

Once I enable the plugin, the comment form text box did not show up.

eraccusa Oct 2, 2010 07:36 PM

I installed CKEditor from the WordPress 3.0.1 - Plugins - [Add New] button. The folder was added automatically from that. I logged into the site with FTP to see where that is. Here is where I found it:
wp-content/plugins/ckeditor-for-wordpress
CKEditor is set at its defaults, I changed nothing. The comments were already enabled and working prior to adding this plugin. They still worked after adding it.

IIRC there is more than one version of CKEditor for WordPress. I got this one: http://wordpress.org/extend/plugins/...for-wordpress/ For the record, this is not a CKEditor problem. It is a rendering/display problem with the HTML code in the posted/approved comments. If I take CKEditor out of the mix by disabling it in the Plugins menu the problem persists.

eraccusa Oct 2, 2010 10:18 PM

Interesting. When I load the RSS feed for my site the ordered and unordered lists in that second comment display in the comments in the feed reader (Liferea). They just do not display in the comments on the site itself while using the Atahualpa 3.5.3 theme.

juggledad Oct 3, 2010 06:13 AM

The issue here is the complexity of the Atahualpa Comment CSS.

The Comments in atahualpa are nested (lists inside lists) and there is CSS that sets the list style to 'none'. This is why the list HTML items are not in the allowed HTML lists.

If you want, you can see if you can add CSS to the CSS Inserts to turn on the lists styles when using this plugin, but I don't guarantee you success.

p.s. I played for well over an hour and couldn't get it to work without ripping out parts of the Atahualpa CSS which could cause issues elsewhere.

eraccusa Oct 3, 2010 11:48 AM

Thank you for looking at it. I thought it might be a CSS related problem since the lists do work in the comments in the default theme. I am no CSS guru, but I will take a whack at this to see if I can figure it out. I suppose this is what I need to edit: wp-content/themes/atahualpa353/css.php after making a backup of course.

juggledad Oct 3, 2010 11:54 AM

if you scrool down and remove the section starting with
HTML Code:

/* ------------------------------------------------------------------
---------- COMMENTS WP 2.7 ------------------------------------------
------------------------------------------------------------------ */

and remove the first three items
HTML Code:

ul.commentlist {
        margin: 15px 0 15px 0;
        list-style-type: none;
        padding: 0;
        display:block;
        border-top: <?php echo $bfa_ata['comment_border']; ?>;
        }

ul.commentlist ul {
        margin: 0;
        border: none;
        list-style-type: none;
        padding: 0;
        }

ul.commentlist li {
        padding: 0;
    margin: 0;
        display: block;
        clear: both;
        height: 1%; /* for IE */
}

I think it will work, but no guarantees that something else might not act screwy

eraccusa Oct 3, 2010 12:05 PM

I'll play with it and see. This will be "fun", doing these tests on my live site. :)

eraccusa Oct 3, 2010 12:15 PM

Okay, I commented out that block:
Code:

/* ul.commentlist {
    margin: 15px 0 15px 0;
    list-style-type: none;
    padding: 0;
    display:block;
    border-top: <?php echo $bfa_ata['comment_border']; ?>;
    }

ul.commentlist ul {
    margin: 0;
    border: none;
    list-style-type: none;
    padding: 0;
    }

ul.commentlist li {
    padding: 0;
    margin: 0;
    display: block;
    clear: both;
    height: 1%; /* for IE */
} */

I'll keep that commented out and browse around on the site. So far, looking at a couple of posts all appears well.

eraccusa Oct 3, 2010 01:39 PM

It appears that the ordered/unordered lists in comments created with CKEditor buttons now work as intended. The image button has a large number of options that I am not allowing, but what I am allowing seems to work:

http://blog.eracc.com/2010/10/02/sit...keditor-added/

I did have a "borked" site for a few minutes while I figured out a syntax error I made in the kses.php file while trying to allow the 'img' tags I wanted. I really need to set up a test web log for making these changes. As always making time to do that sort of thing for my own sites is a problem.


All times are GMT -6. The time now is 02:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.