Problems with connections-port theme

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Rembrandt
Regular
Posts: 71
Joined: Mon Dec 20, 2004 5:10 pm
Location: Germany
Contact:

Problems with connections-port theme

Post by Rembrandt »

Previewing an entry in the backend only shows a very small part of the post. Using the connections-theme, installed via spartacus in a nightly s9y.

Any suggestions?

Screenshot:

Image

tia,
Rembrandt
Rembrandt
Regular
Posts: 71
Joined: Mon Dec 20, 2004 5:10 pm
Location: Germany
Contact:

Post by Rembrandt »

Update:
After disabling gzip-compression the preview works as expected. Seems like another "magic gzip-compression error".

so long...
Rembrandt
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

uh oh

Post by carl_galloway »

Hi rembrandt,

I'm a bit confused, what does magic gzip-compression error mean? Is there something I should be fixing within the theme?

Perhaps one of the developers could explain, does a frontend theme make any changes to the admin theme. I was under the impression that the admin styles were completely separate, and that even basic html tags were styled in the admin stylesheet. Is there ever a time when the admin page would be changed by themes we develop for our blogs?

Please help, I don't want to create anything that causes problems for other users.

Carl
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: uh oh

Post by garvinhicking »

Hi!
carl_galloway wrote: Perhaps one of the developers could explain, does a frontend theme make any changes to the admin theme. I was under the impression that the admin styles were completely separate, and that even basic html tags were styled in the admin stylesheet. Is there ever a time when the admin page would be changed by themes we develop for our blogs?
Actually, the preview is a small "Gotcha" issue.

The s9y admin backend creates a iframe for previewing. For that, it builds a HTML framework where it applies the usual Style.css of your template.

The HTML that is built, is based on the default html structure:

Code: Select all

    <head>
        <title>Serendipity Administration Suite</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="/cvs/serendipity/trunk/serendipity.css.php" />
        <script type="text/javascript">
           window.onload = function() {
             parent.document.getElementById('serendipity_iframe').style.height = document.getElementById('mainpane').offsetHeight
                                                                               + parseInt(document.getElementById('mainpane').style.marginTop)
                                                                               + parseInt(document.getElementById('mainpane').style.marginBottom)
                                                                               + 'px';
             parent.document.getElementById('serendipity_iframe').scrolling    = 'no';
             parent.document.getElementById('serendipity_iframe').style.border = 0;
           }
        </script>
    </head>

    <body style="padding: 0px; margin: 0px;">

        <div id="mainpane" style="padding: 0px; margin: 5px auto 5px auto; width: 98%;">
            <div id="content" style="padding: 5px; margin: 0px;">
<div style="float: left; height: 225px"></div>

<!-- ENTRIES START : entries.tpl is parsed here-->
    
<!-- ENTRIES END --><br style="clear: both" />            </div>

        </div>
    </body>
So the CSS would need to implement "mainpane", "content" and so on properly.

Thinking about this, the iframe should by SMARTYfied as well. I'll do so in the next couple of days!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: uh oh

Post by garvinhicking »

I've just added a "preview_iframe.tpl" file to the 1.0-alpha1 nightly directory, where this HTML code can be customized!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply