For some reason, when a certain user contributes his blog content it somehow adds an <em> tag to other portions of the entire page (Nothing is supposed to be italicized – http://scvbj.com/blog/coach).
I'm not sure how this happened. It might have initially been an issue with how I set the fckeditor up for contributors. But now that I've fixed it, I can't seem to keep it from happening.
When I attempt to edit the content, all the extraneous formatting has been cleared, but the formatting to the page still remains.
I attempted to look for other possible causes and discovered that there might be some type of connection to a user reference. Open Publish creates a node reference to an Author type which I notice that when I broke this reference, the <em> formatting disappeared. So I deleted that Author type and re-created it. For the first or second blog that I tied back to the user, the formatting was fine, by the third, it was having the same formatting issues.
I'm obviously missing something.
Has anyone else experienced this? Any clues how I can keep this from affecting my entire page?
Thank you very much!
Comments
Have you tried adding in the
Have you tried adding in the HTML Purifier to your input filter for blogs?
http://drupal.org/project/htmlpurifier'
I would actually start with using tools like Firebug and viewing the page source. Somewhere you are most likely inserting an open tag and you aren't cleaning it up. Probably in a template file. If all else fails, try blocking the removing the tag from your input filter configuration.
Thank you for the
Thank you for the suggestion.
I should've looked for an open
<em> tagsomewhere, maybe because I figured after I cleared the formatting for the content, everything would be "safe".If I don't see any formatting in the content area, is there some way it could be hidden?
Also, I'm not sure how it could be in the template file, since it hasn't affected the other blogs that were created, yet (I say this tentatively).
Thank you.
1 minutes fix for your problem!
I can tell that is frustrating, but if you have to fix and keep going I would suggest you make a - .class em {font-style:normal;} - and you are good to go. You can spend time looking for an answer when you are not rushing for deadlines. Be sure you let us know what happened there!
Kabarca
That sounds like a good stop
That sounds like a good stop gap solution. I'll try that. Thank you.
Is it a teaser or full view
Is it a teaser or full view of the blog post? If it is a teaser then it would be that the post has an open tag that doesn't close before the split.
Unfortunately, it's with the
Unfortunately, it's with the full view. The teaser formats correctly.
The odd thing that I can't seem to figure out is how it appears to be loosely tied to the author content type that is tied to the blog via user node reference. The last two blogs from this user has this issue AND when I attempt to create a blog and tie it to this author myself as the administrator, this formatting issue comes up.
I've created a blog and tied it to other authors without a problem, but when I choose this author, it comes up with this problem. I have tried to re-created this author content twice and somehow, someway, it keeps coming back.
Puzzling???
Can I throw out a really lame thought as I'm grasping at straws here? Is there any way it is tied to the author's name? His actual name is "Marc Emmer". His user name is "memmer" and the clean url that is auto generated is "marc-emmer". Could it be possible that his name which contains the "em" has somehow been allowed to throw things off?
You could test that theory by
You could test that theory by creating an author named "Larry Emmer" with user "lemmer", node reference that to a blog entry and see if the same problem persists. If it's just a coincidence and not caused by the author name, is there any other content getting pulled in from the author node reference that might have an open em tag without a closing one? You might try an HTML validator and see if that would show two open em tags consecutively without a closing one. The first one would be the problem.
I think i found it
you have a view (accordion) that displays a teaser. One of the teasers has an unclosed em tag as well as p tag.
<div class="views-field-teaser"><div class="field-content"><p><em>Welcome to the SCV Biz, a blog written for entrepreneurs and executives who are...</div>
</div>
I would suggest either displaying teasers at plain text or setting views to try and close tags.
Hope that helps.
-German
That fixed it! gclicon, thank
That fixed it! gclicon, thank you so much!
After reading through all of these, I realize that FROB alluded to the open tag as well. Thanks Frob!
I want to say to everyone who chimed in, "You are awesome!" Each contribution helped me to think through this entire process.
Thank you all very much!