Serendipity 2.0.1 released

Post Reply
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Serendipity 2.0.1 released

Post by garvinhicking »

# 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/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Serendipity 2.0.1 released

Post by Timbalu »

Version 2.0.1 brought in an automated include of a templates user.css file. If you don't want to use it any more (and you have one) you have to delete or rename it manually!

Also please note, that user stylesheet selectors like

Code: Select all

 .xxx { background-image: url(img/sunshine.jpg); }
now need to use the {TEMPLATE_PATH} like

Code: Select all

 .xxx { background-image: url({TEMPLATE_PATH}img/sunshine.jpg); }
in your user.css, since the content will be appended to the serendipity dynamic stylesheet.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ygriega
Posts: 0
Joined: Sat Mar 14, 2015 11:10 pm

Re: Serendipity 2.0.1 released

Post by Ygriega »

This automatted include mechanism seems to have a small bug if you are using s9y in a subdirectory. I noticed it after upgrading my blog at http://www.ygriega.de/y (<- notice the 'y' subdirectory) to s9y 2.0.1 - my customized formatting was gone. :(

Workaround (if possible): Create the directory structure 'template/<template_name>' directly in the root folder of your webspace and place your user.css there. Afterwards, everything was back again. :)

@s9y dev team: As I registered only for reporting this bug, I would also like to thank you for your great work! Everything has been working smoothly for years now.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity 2.0.1 released

Post by garvinhicking »

Hey,

thank you ygriega :) You have great pictures and reports on your blog, I'll definitely browse through it the next days!

(I must admit I never worked with custom user.css on my own, so I'm not sure how it worked before to place user.css in the root - but the way you indicate on where to place user.css is absolutely right, so thanks for appending :-))

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/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Serendipity 2.0.1 released

Post by Timbalu »

garvinhicking wrote:You have great pictures and reports on your blog
Yes absolutly, I have to assist this! :)

Still strange though. What are your "Configuration" - "Path" option inputs saying?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Serendipity 2.0.1 released

Post by yellowled »

garvinhicking wrote:I must admit I never worked with custom user.css on my own, so I'm not sure how it worked before to place user.css in the root
Not sure I understand this correctly, but it was always supposed to be place in the theme's directory.

YL
MarioH
Regular
Posts: 238
Joined: Mon Jul 20, 2009 10:53 pm
Contact:

Re: Serendipity 2.0.1 released

Post by MarioH »

Another effect: Before this change if I checked the CSS with firebug or built-in firefox tool, I could see, which part of the CSS is from my user.css. Now, everything seems to come from serendipity.css. Not sure, if this is new with 2.0.1.

Regards
Mario
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Serendipity 2.0.1 released

Post by Timbalu »

MarioH wrote:Now, everything seems to come from serendipity.css. Not sure, if this is new with 2.0.1.
Yes this is why I wrote:
user.css, since the content will be appended to the serendipity dynamic stylesheet.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Serendipity 2.0.1 released

Post by yellowled »

MarioH wrote:Before this change if I checked the CSS with firebug or built-in firefox tool, I could see, which part of the CSS is from my user.css. Now, everything seems to come from serendipity.css. Not sure, if this is new with 2.0.1.
Yes, it is. Here's why: Before, your user.css was a seperate reference to a CSS file. Now, it is included in the (dynamically generated) serendipity.css. The reason for doing this is that every CSS file (as well as every external JS file, for instance) is a seperate HTTP request, which is bad for performance.

You should actually still be able to tell which styles are part of your user.css at least in some cases. In your user.css, you will usually override styles from your theme's style.css. For instance, you might have changed the background-color of body. Any developer tool will list the styles in the reverse order in which they appear in the stylesheet (serendipity.css), and since the user.css is included after the theme's style.css (among others), it's styles will always show up first in the dev tools.

So if you have multiple instances of CSS rules for body listed in the dev tools, the first one will usually be the one that's part of your user.css.

YL
Ygriega
Posts: 0
Joined: Sat Mar 14, 2015 11:10 pm

Re: Serendipity 2.0.1 released

Post by Ygriega »

First, thanks for the feedback on my pictures. I really appreciate it. :)

My Configuration -> Path options seem to be OK. The absolute path contains the /y/ at the end and the relative path is exactly '/y/'. The relative template path is 'templates/' - but according to the documentation this is relative to the HTTP path. So I would say the automated user.css inclusion mechanism is ignoring these settings - or I have a strange combination here... Moreover, all the rest seems to be working smoothly (as always).

So as a summary, in 2.0.0 the user.css was working fine from /y/templates/2k11/user.css
In 2.0.1 this file is being ignored, I needed to copy it to /templates/2k11/user.css in order to make it work again. This is OK for now, but a little bit weird in the long run as I wanted to keep the blog-related stuff in this subdirectory.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity 2.0.1 released

Post by garvinhicking »

Hey Ygriega,

that is really odd. The PHP code to fetch user.css is exactl tthe same like for the "style.css" file; so it should fetch both from the directory inside /y/...?!
# 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/
Dergln
Regular
Posts: 54
Joined: Thu Jun 23, 2011 8:18 pm
Location: Hessen
Contact:

Re: Serendipity 2.0.1 released

Post by Dergln »

Hi,

opposed to Ygriega it's working just fine for me, and I also have a subfolder installation.

http://dark-world.eu/s9y/

Did you customize a lot since you installed?
What is serendipity.css showing at the bottom? (Should be sth like "/* templates/2k11_dw/user.css */")
Post Reply