css not showing up?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm

Re: css not showing up?

Post by wms »

Never ran into issues until now. Been using CMSMS for almost 5 years now. I was thinking maybe some permissions have changed from one server to the next. I'll ask the host.
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm

Re: css not showing up?

Post by wms »

...ahh....new server, new address: http://208.68.104.129/wms/sunsetnursery...duh!!

Ok, I'm going to comment out the caching section of the stylesheets.php and go with that as a solution for me on my end:

[removed by moderator]

Cheers,
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: css not showing up?

Post by calguy1000 »

There's a setting in the global settings to adjust the 'max age' integer.

The {stylesheet} tag is deprecated, and replaced by {cms_stylesheet} that should be used as it provides for real caching, instead of using etags and cruft.
the only problem with {cms_stylesheet} as compared to {stylesheet} is that it changes the relative directory for images embedded in the CSS.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm

Re: css not showing up?

Post by wms »

Thanks CalGuy,

Is it bad to stick with {stylesheet}, or should I change my sites over to use {cms_stylesheet}? What do you mean by changing the relative directory for images.

Thanks,
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: css not showing up?

Post by calguy1000 »

the {stylesheet} tag had the relative directory of <site root>
the {cms_stylesheet} tag places .css files in the tmp/cache directory

Therefore stuff like: url(uploads/some_image.jpg) will have to be changed to url([[root_url]]/uploads/some_image.jpg) or url(/uploads/some_image.jpg);
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
enigma7
New Member
New Member
Posts: 5
Joined: Fri Feb 11, 2011 8:24 am

Re: css not showing up?

Post by enigma7 »

Ok I tested in my case and it works opposit way - I had to remove all [[root_url]] and left "/" and at the begining of theme sheet I changed {cms_stylsheet} again to {stylesheet} and it works fine!
totophe
Forum Members
Forum Members
Posts: 63
Joined: Wed Feb 21, 2007 9:30 am

Re: css not showing up?

Post by totophe »

[[root_url]] ment "place your real url here" btw.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: css not showing up?

Post by Dr.CSS »

@totophe

Actually no it doesn't "place your real url here" it looks in the config.php for the URL and adds it to the style sheet...
totophe
Forum Members
Forum Members
Posts: 63
Joined: Wed Feb 21, 2007 9:30 am

Re: css not showing up?

Post by totophe »

Ah ok. Why not using smarty like tags then?
Locked

Return to “CMSMS Core”