WordPress Integration

62 views
Skip to first unread message

orangemark

unread,
Jun 10, 2010, 12:07:49 AM6/10/10
to xCSS - OO CSS framework
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.

Anton Pawlik

unread,
Jun 10, 2010, 2:50:32 AM6/10/10
to xc...@googlegroups.com
Hehe its not that hard, im sure it could be implemented anywhere. i would suggest you to use the lazyloading method.

orangemark

unread,
Jun 10, 2010, 4:08:20 PM6/10/10
to xCSS - OO CSS framework
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?

http://wp2.colormeorange.com

Anton Pawlik

unread,
Jun 10, 2010, 4:26:02 PM6/10/10
to xc...@googlegroups.com
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.
Message has been deleted

Anton Pawlik

unread,
Jun 11, 2010, 4:19:06 AM6/11/10
to xc...@googlegroups.com
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 <ma...@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

See it at http://wp2.colormeorange.com

How can I fix that?

Wraith

unread,
Jul 23, 2010, 12:49:54 PM7/23/10
to xCSS - OO CSS framework
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 :)
Reply all
Reply to author
Forward
0 new messages