On Thu, Jun 10, 2010 at 6:07 AM, orangemark <m...@007ppc.com> wrote: > Has anyone tried to integrate this with WordPress? I saw that there > was a Drupal module, but thought I would try my hand at getting it > into WordPress.
I think I have everything in the right places, but I'm getting an
error thrown by a case css_dir_unwritable or css_file_unwritable. I've
manually gone in and changed the file permissions on my server but I
still get the error. Any help?
> Hehe its not that hard, im sure it could be implemented anywhere. i would
> suggest you to use the lazyloading method.
> On Thu, Jun 10, 2010 at 6:07 AM, orangemark <m...@007ppc.com> wrote:
> > Has anyone tried to integrate this with WordPress? I saw that there
> > was a Drupal module, but thought I would try my hand at getting it
> > into WordPress.
> > So far not much luck, but I'm kind of a newbie.
try to test it localy first so you dont have to deal with chmod. if this happens on the server later try debug lines 841-851 and find out what and why causes this.
> I think I have everything in the right places, but I'm getting an > error thrown by a case css_dir_unwritable or css_file_unwritable. I've > manually gone in and changed the file permissions on my server but I > still get the error. Any help?
> On Jun 10, 12:50 am, Anton Pawlik <anton.paw...@googlemail.com> wrote: >> Hehe its not that hard, im sure it could be implemented anywhere. i would >> suggest you to use the lazyloading method.
>> On Thu, Jun 10, 2010 at 6:07 AM, orangemark <m...@007ppc.com> wrote: >>> Has anyone tried to integrate this with WordPress? I saw that there >>> was a Drupal module, but thought I would try my hand at getting it >>> into WordPress.
>>> So far not much luck, but I'm kind of a newbie.
well filetime compares the creation dates of both files .xcss and .css i guess you don't have the right chmod or whats more likely the .css file doesn't exists yet. that's basically a bug because i forgot to check file_exists() first :D
On Fri, Jun 11, 2010 at 12:14 AM, orangemark <m...@007ppc.com> wrote: > You're right testing locally would've been good, but now I'm ahead of > myself.
> I have everything integrated except for the lazy loading. It is > throwing the following error:
> Warning: filemtime() [function.filemtime]: stat failed for /home/ > utahidaho/webapps/wp2/wp-content/themes/orange-theme/css/generated/ > style.css: screen in /home/utahidaho/webapps/wp2/wp-content/themes/ > orange-theme/css/xCSS/advanced/lazy-loading.php on line 50
> On Jun 10, 2:26 pm, Anton Pawlik <anton.paw...@googlemail.com> wrote: > > try to test it localy first so you dont have to deal with chmod. > > if this happens on the server later try debug lines 841-851 and find out > what and why causes this.
> > On Jun 10, 2010, at 10:08 PM, orangemark wrote:
> > > I think I have everything in the right places, but I'm getting an > > > error thrown by a case css_dir_unwritable or css_file_unwritable. I've > > > manually gone in and changed the file permissions on my server but I > > > still get the error. Any help?
> > > On Jun 10, 12:50 am, Anton Pawlik <anton.paw...@googlemail.com> wrote: > > >> Hehe its not that hard, im sure it could be implemented anywhere. i > would > > >> suggest you to use the lazyloading method.
> > >> On Thu, Jun 10, 2010 at 6:07 AM, orangemark <m...@007ppc.com> wrote: > > >>> Has anyone tried to integrate this with WordPress? I saw that there > > >>> was a Drupal module, but thought I would try my hand at getting it > > >>> into WordPress.
> > >>> So far not much luck, but I'm kind of a newbie.
I haven't attempted this yet, still researching, but I was thinking of
taking this approach:
Create an option page in WordPress that will get option variables from
user.
On options update, xCSS will generate the css file.
The theme would only link the generated css file.
My questions are:
Can variables be passed to xCSS, or functions included in the .xcss
file?
Can xCSS be called to generate the css in this method?
Can xCSS be protected so that only WordPress can call it?
Thanks, I'm only hoping to figure out if this direction is worth
pursuing :)