Forums
View unanswered posts | View active topics It is currently Fri Apr 18, 2014 10:20 pm



Reply to topic  [ 3 posts ] 
 Works on home dev server, but not online 
Author Message

Joined: Fri Feb 17, 2012 2:22 am
Posts: 2
Post Works on home dev server, but not online
Hi,

I got PIE working on my Wordpress site without too much trouble. The URL gave me a bit of grief until I realised it had to be absolute. To achieve this I have put all my css in a PHP file (style.css.php). I have the following in my header.php file;
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/style.css.php?stylesheet_url=<?php bloginfo( 'template_url' ); ?>" />

Then in style.css.php I have;
$use_pie = "behavior: url(" .$_GET['stylesheet_url']. "/PIE.htc); \n";

Then in various places things like;
#footer {
...
<?php echo $use_pie ?>
...
}

This all works fine and dandy on my dev server at home (http://jefc.dyndns.info/proj0011 if my router is behaving...). But is not working on my webspace where I have it uploaded for preview: http://www.geoffclayton.co.uk/lpwp.

On inspecting the generated CSS I observe that the URL is correct so I'm a little perplexed. I also know the non-PIE styles are being loaded as the site displays fine in all other respects.

Any assistance very welcome. This is a great tool. I will be recommending it widely :)

Cheers,
Geoff


Fri Feb 17, 2012 2:42 am
Profile

Joined: Sat Aug 21, 2010 11:12 am
Posts: 223
Post Re: Works on home dev server, but not online
You should change the content type to the correct one, check PIE documentation, known issues.

_________________
PIE needs more community support persons! Time is money, which means you can fund PIE development by answering support questions.


Fri Feb 17, 2012 7:00 am
Profile

Joined: Fri Feb 17, 2012 2:22 am
Posts: 2
Post Re: Works on home dev server, but not online
Aww cr*p. Thanks. Couldn't see the wood for the trees (ie. stuck at the fact it worked on my server but not another...).

Thanks for the help.
Geoff


Fri Feb 17, 2012 7:28 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.