Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-02 20:12:39

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

stumped ?!? IE6 column push on commented articles only

This looks like a typical box model issue, but I can’t figure out why its happening on the commented or comments enabled articles and not the others?

It may have something to do with nhn_livepreview as it does not happen when I turn that plugin off.

I would post this in the plugin forum, but it still seems to be a styling issue.

Check out these pages:
No comments / comments enabled and
comments/comments enabled

If you want to you can view source on both of those, the only difference I can find is an unnamed div that nhn_livepreview adds. If I remove that and redisplay IE6 still displays the push, so that div doesn’t seem to be the problem. See that page here

What the heck? Like I said, I am stumped.

Thanks,

matthew

Last edited by ma_smith (2005-11-02 20:18:24)


Offline

#2 2005-11-02 22:02:41

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: stumped ?!? IE6 column push on commented articles only

Hi Matthew!

As far as I know, there is no unnamed div that is inserted by my plugin.
There are two <div> that are created by this plugin.

1. There is a <div> that wraps the live comment preview: <div class="comment"></div>
This <div> is used to apply the class “comment” to the live preview, which is used by default for the textpattern comment styling.
If you want to get rid of this one, edit the plugin source, go to function nhn_livecommentpreview($atts) {} and change the lines as follows:

old

function nhn_livecommentpreview($atts) {<br/> // create <div> for live preview if it has not been created yet<br/> nhn_save_form();<br/> // insert <div> for live preview if not viewing comment preview<br/> if(!ps('preview')) {<br/> $nhn_form = parse(fetch('form','txp_form','name',doSlash('nhn_livecommentpreview')));<br/> return '<div class="comment">'.$nhn_form.'</div>';<br/> }<br/>
}<br/>

new

function nhn_livecommentpreview($atts) {<br/> // create <div> for live preview if it has not been created yet<br/> nhn_save_form();<br/> // insert <div> for live preview if not viewing comment preview<br/> if(!ps('preview')) {<br/> $nhn_form = parse(fetch('form','txp_form','name',doSlash('nhn_livecommentpreview')));<br/> return $nhn_form; // <-- HERE!<br/> }<br/>
}<br/>

2. The second <div> is needed. It’s the preview itself (<div id="TextDisplay"></div>)

Best regards,
Nils

Offline

#3 2005-11-03 16:57:22

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: stumped ?!? IE6 column push on commented articles only

Nils,
I worked this out.
First, one problem I fixed was to change the div class to livecomment since I already had a div class “comment”.

The main issue was that my input was too wide. Nothing to do with your plugin :) Can you say embarrassed!
Thanks for your patience anyhow.

Matthew


Offline

Board footer

Powered by FluxBB