![]() |
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. |
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. |
can you point to a page showing the issue?
|
Here is the only page with comments where I have tried it so far:
http://blog.eracc.com/2010/10/02/sit...keditor-added/ |
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. |
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-wordpressCKEditor 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. |
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.
|
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. |
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.
|
if you scrool down and remove the section starting with
HTML Code:
/* ------------------------------------------------------------------ HTML Code:
ul.commentlist { |
I'll play with it and see. This will be "fun", doing these tests on my live site. :)
|
Okay, I commented out that block:
Code:
/* ul.commentlist { |
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 10:03 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.