Square template doesn't preview?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
sjml
Regular
Posts: 5
Joined: Thu Mar 22, 2007 3:45 pm

Square template doesn't preview?

Post by sjml »

I'm trying to set up the square template on my s9y install, but for some reason when I'm using it I can't seem to get previews while making or editing an entry. When I hit the preview button, I'll see a quick flash of the preview, and then it disappears, and "Serendipity is now creating the preview of your entry..." is in it's place.

A similar thing happens when I go to make a post -- the message about making XML-RPC calls stays up forever, even after the post has been successfully submitted. That doesn't happen when I have another theme on, only with square.

I'm a little new to Serendipity -- what's the best way to go about troubleshooting a problem like this?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Square template doesn't preview?

Post by garvinhicking »

Hi!

Where did you download the square template from?

It might be that something is wrong with the preview_iframe.tpl file, this one is reponsible for displaying "frontend" content in the backend...

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/
sjml
Regular
Posts: 5
Joined: Thu Mar 22, 2007 3:45 pm

Post by sjml »

Hi Garvin; thanks for the quick reply.

I downloaded through Spartacus. Just to make sure nothing went wrong, I just deleted it and my package_template.xml file and re-downloaded. It looks like there is no preview_iframe.tpl file in there. Is that typical for a theme, or is something missing from this one?
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi

I don't usually include a preview_iframe.tpl in my templates as it already exists in the default template directory.

However, with the square template, as there is no div#mainpane the preview can collapse so I've amended the code in the preview_iframe.tpl for 'square' so that it will work.

You can download it from my themes site. You should decompress it and upload it to your templates/square/ directory.

HTH

Dave
Last edited by d_cee on Thu Mar 22, 2007 6:09 pm, edited 2 times in total.
sjml
Regular
Posts: 5
Joined: Thu Mar 22, 2007 3:45 pm

Post by sjml »

Hi Dave -- thanks for the response. I eventually got it to work by copying over the default preview_iframe.tpl, like you say. Just something for me to learn! :-)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

(Also committed to spartacus now)

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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Thanks Garvin

I was going to mail it you this morning :-)

Dave
Post Reply