Serendipity 2.0.1 released

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

Serendipity 2.0.1 released

Post by garvinhicking » Thu Mar 12, 2015 9:55 pm

# 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/

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Serendipity 2.0.1 released

Post by Timbalu » Sat Mar 14, 2015 5:08 pm

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: Sun Mar 15, 2015 12:10 am

Re: Serendipity 2.0.1 released

Post by Ygriega » Sun Mar 15, 2015 12:26 am

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.

User avatar
garvinhicking
Core Developer
Posts: 30014
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity 2.0.1 released

Post by garvinhicking » Sun Mar 15, 2015 12:50 pm

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/

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Serendipity 2.0.1 released

Post by Timbalu » Sun Mar 15, 2015 1:01 pm

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

User avatar
yellowled
Regular
Posts: 6973
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Serendipity 2.0.1 released

Post by yellowled » Sun Mar 15, 2015 1:24 pm

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
amazon Wishlist - Serendipity-Podcast (German only, sorry)

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

Re: Serendipity 2.0.1 released

Post by MarioH » Sun Mar 15, 2015 2:18 pm

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

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Serendipity 2.0.1 released

Post by Timbalu » Sun Mar 15, 2015 2:33 pm

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

User avatar
yellowled
Regular
Posts: 6973
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Serendipity 2.0.1 released

Post by yellowled » Sun Mar 15, 2015 3:06 pm

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
amazon Wishlist - Serendipity-Podcast (German only, sorry)

Ygriega
Posts: 0
Joined: Sun Mar 15, 2015 12:10 am

Re: Serendipity 2.0.1 released

Post by Ygriega » Sun Mar 15, 2015 4:10 pm

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.

User avatar
garvinhicking
Core Developer
Posts: 30014
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity 2.0.1 released

Post by garvinhicking » Mon Mar 16, 2015 9:16 am

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/

User avatar
Dergln
Regular
Posts: 54
Joined: Thu Jun 23, 2011 8:18 pm
Location: Hessen
Contact:

Re: Serendipity 2.0.1 released

Post by Dergln » Tue Mar 17, 2015 12:35 pm

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