Template chooser problems

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

Template chooser problems

Post by garvinhicking »

Hi All!

Since some of you had ongoing problems with the plugin, please read http://blog.s9y.org/archives/94-Templat ... olved.html

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/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Love that diff format.

If we actually process the style sheet through Serendipity, couldn't we just add the "no-cache" directive to the HTTP header? Or make the cache expiration time a couple of seconds?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

We could do that, but that would make stylesheets non-cacheable alltogether...

Best 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/
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

ALL HAIL THE GREAT GARVIN!!! TREMBLE IN HIS WAKE YE WHO ARE NOT WORTHY.

Seriously, that is a great fix, thank you.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I'm having a slightly different problem with the template dropdown. I've set the permissions for the sidebar to Judebert only, but it's still visible to all visitors. I've only just noticed that, although the event plugins have user permission dropdowns, there's no way to change them to anything but "All Authors".

S9Y 1.0-alpha1, PHP 4.4.1
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Judebert: The "permissions" dropdown isjust for giving users the privilege to EDIT the plugin configuration.

You need to check the checkbox and hitthe"SAVE" button below for those changestoapply. [sorry,my spacekey is broken]

What you seem tobe looking for is the "sidebarhider" plugin, whichcan hide sidebars depending on specific users...?

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/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I've got a keyboard with that problem. Biggest PITA in my life until I replaced it.

And, since I've worked on the sidebarhider, you'd think I would know this stuff. :oops:

Thanks.

I've still got a problem with permissions on the event plugin, though; I choose Judebert, I click save, and it's back to "All Authors".

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

Post by garvinhicking »

Hi!
I've still got a problem with permissions on the event plugin, though; I choose Judebert, I click save, and it's back to "All Authors".
Did you check the checkbox of the plugin on the left?

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/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Okay, I'm going to stop acting stupid now.

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

Post by garvinhicking »

I agree though that it is a bit uncool, regarding the interface usability.

Maybe I can figure out a way to work around those checkboxes for saving differences in permissions...

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/
Lariel
Regular
Posts: 22
Joined: Sun May 06, 2007 12:55 am

Post by Lariel »

I believe the problem is only partly fixed. Let's say template A is my default template and I'm visiting my category 1. After this I'm visiting category 2. Now I'm changing the template via the template changer to template B. The template changes immediately to B. But if I'm visiting category 1 now again, template B gets confused with former template A and only F5 helps.

Any solution?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Sadly that browser caching could only be circumvented by sending non-cachable HTTP headers, which would then affect the whole blog not supporting backward/forward navigation.

I feel the impact of being able to choose templates faster is less important than having properly cachable pages that reduce the load on your webserver and not make visitors render the whole page again when they browse your pages...

Best 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/
Post Reply