Error in calendar sidebar

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Percyweb
Regular
Posts: 6
Joined: Sun Oct 01, 2006 6:18 am

Error in calendar sidebar

Post by Percyweb »

Hello.
i change theme Bex01 i have error in visualize my calendar check image please...
Image

error is in Saturday (Sá) in spanish.

how resolve my problem...

thanks for reply's
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error in calendar sidebar

Post by garvinhicking »

Hi!

Could you tell us the URL to your site? It seems it might be a UTF-8 / localization problem. Could you temporarily try to copy the "plugin_calendar.tpl" file from the carl_contest/ template folder into your bex01 directory and see if it makes a difference?

HTH,
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/
Percyweb
Regular
Posts: 6
Joined: Sun Oct 01, 2006 6:18 am

Post by Percyweb »

i open plugin_calendar.tpl, I cannot solve thi's problem :(

my site is www.percyweb.com
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

What do you mean? What can't you solve? What's the problem with copying plugin_calendar.tpl?

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/
Percyweb
Regular
Posts: 6
Joined: Sun Oct 01, 2006 6:18 am

Post by Percyweb »

hey man; of where I copy the file plugin_calendar.tpl, to where I must copy
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I wrote:

copy the "plugin_calendar.tpl" file from the carl_contest/ template folder into your bex01 directory.

Source file: /templates/carl_contest/plugin_calendar.tpl
Target file: /templates/bex01/plugin_calendar.tpl

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/
Percyweb
Regular
Posts: 6
Joined: Sun Oct 01, 2006 6:18 am

Post by Percyweb »

Thanks for reply bro;

the plugin calendar is good in IE, but en Firefox no is good it unsquares, for name days Lun Mar Mie Jue Vie Sab Dom the text for the calendar is long.

exists another one plugin with these characteristics? Lu Ma Mi Ju Vi Sa Do ?

thanks for help.

sorry my english is very bad, i'm from spain :oops:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The problem is, that your spanish name for Saturday seems to contain a special character; in UTF-8 format that is a 2-byte character. Bex01 truncates the name after 2 characters; thus it would split your "a" character in half.

Sadly I know of no way to properly truncate the string in Smarty syntax; you would need to patch a config.inc.php for your template to do that.

Instead I would suggest you to use the plugin_calendar.tpl from carl_contest direcotry and then adjust the CSS code to make your calendar header smaller; you can do that by editing the style.css file and adding this:

Code: Select all

.serendipity_calendar td.serendipity_weekDayName {
font-size: 6pt;
}
or something like that?

HTH,
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