Libra07 (User)
Fresh Boarder
Posts: 0
|
|
First dy of week at BlogCal 2 Years, 6 Months ago
|
Karma: 0
|
Hi! I installed the BlogCal and BlogSidebar. I like this calendar.
Everything works, but now I have a problem. The week begins with
sunday (V) now, but I would like to set this to monday (H).
And there is a space betven sunday (V) and monday (H).
Can somebody help me?
I try to set this in the mod_blogcal.php: $firstday=1
The default was 0. But it doesn't works.
The locale settings is hu_HU in my web.
URL: http://www.beatsoft.hu
Can somebody help me to set this? Thank you!
Libra07
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re: First dy of week at BlogCal 2 Years, 6 Months ago
|
Karma: 0
|
QUOTE: Hi! I installed the BlogCal and BlogSidebar. I like this calendar.
Everything works, but now I have a problem. The week begins with
sunday (V) now, but I would like to set this to monday (H).
And there is a space betven sunday (V) and monday (H).
Can somebody help me?
I try to set this in the mod_blogcal.php: $firstday=1
The default was 0. But it doesn't works.
The locale settings is hu_HU in my web.
URL: http://www.beatsoft.hu
Can somebody help me to set this? Thank you!
Libra07
Regarding space between sunday and monday, this is problem that BlogSidebar doesn't work with some templates. Try to change module/div prefix and header from configuration menu. it is going to be trial and error method though. Whatever works for you, please post it here so that others can benefit as well.
For changing first day of week, you have to hack generate_calander function which should be easy.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
Libra07 (User)
Fresh Boarder
Posts: 0
|
|
Re: First dy of week at BlogCal 2 Years, 6 Months ago
|
Karma: 0
|
I tested my template and other templates. You are right!
The space between sunday and monday was only a template error.
I try to repair this. If I finished, I will post it here to benefit the others.
Thx!
QUOTE:
QUOTE: Hi! I installed the BlogCal and BlogSidebar. I like this calendar.
Everything works, but now I have a problem. The week begins with
sunday (V) now, but I would like to set this to monday (H).
And there is a space betven sunday (V) and monday (H).
Can somebody help me?
I try to set this in the mod_blogcal.php: $firstday=1
The default was 0. But it doesn't works.
The locale settings is hu_HU in my web.
URL: http://www.beatsoft.hu
Can somebody help me to set this? Thank you!
Libra07
Regarding space between sunday and monday, this is problem that BlogSidebar doesn't work with some templates. Try to change module/div prefix and header from configuration menu. it is going to be trial and error method though. Whatever works for you, please post it here so that others can benefit as well.
For changing first day of week, you have to hack generate_calander function which should be easy.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re: First dy of week at BlogCal 2 Years, 6 Months ago
|
Karma: 0
|
You may want to modify mod_blogcal.php. Look for <th abbr ...> tag and replace it with <th width="14%" abbr ...> in mod_blogcal.php.
QUOTE: I tested my template and other templates. You are right!
The space between sunday and monday was only a template error.
I try to repair this. If I finished, I will post it here to benefit the others.
Thx!
QUOTE:
QUOTE: Hi! I installed the BlogCal and BlogSidebar. I like this calendar.
Everything works, but now I have a problem. The week begins with
sunday (V) now, but I would like to set this to monday (H).
And there is a space betven sunday (V) and monday (H).
Can somebody help me?
I try to set this in the mod_blogcal.php: $firstday=1
The default was 0. But it doesn't works.
The locale settings is hu_HU in my web.
URL: http://www.beatsoft.hu
Can somebody help me to set this? Thank you!
Libra07
Regarding space between sunday and monday, this is problem that BlogSidebar doesn't work with some templates. Try to change module/div prefix and header from configuration menu. it is going to be trial and error method though. Whatever works for you, please post it here so that others can benefit as well.
For changing first day of week, you have to hack generate_calander function which should be easy.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re: First dy of week at BlogCal 2 Years, 6 Months ago
|
Karma: 0
|
Attached is modified .php (just for you) with following modification
* <th> includes width specification
* First Day is Monday instead of sunday.
QUOTE: You may want to modify mod_blogcal.php. Look for <th abbr ...> tag and replace it with <th width="14%" abbr ...> in mod_blogcal.php.
QUOTE: I tested my template and other templates. You are right!
The space between sunday and monday was only a template error.
I try to repair this. If I finished, I will post it here to benefit the others.
Thx!
QUOTE:
QUOTE: Hi! I installed the BlogCal and BlogSidebar. I like this calendar.
Everything works, but now I have a problem. The week begins with
sunday (V) now, but I would like to set this to monday (H).
And there is a space betven sunday (V) and monday (H).
Can somebody help me?
I try to set this in the mod_blogcal.php: $firstday=1
The default was 0. But it doesn't works.
The locale settings is hu_HU in my web.
URL: http://www.beatsoft.hu
Can somebody help me to set this? Thank you!
Libra07
Regarding space between sunday and monday, this is problem that BlogSidebar doesn't work with some templates. Try to change module/div prefix and header from configuration menu. it is going to be trial and error method though. Whatever works for you, please post it here so that others can benefit as well.
For changing first day of week, you have to hack generate_calander function which should be easy.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
Libra07 (User)
Fresh Boarder
Posts: 0
|
|
Re: First dy of week at BlogCal 2 Years, 6 Months ago
|
Karma: 0
|
Hello!
I installed the "Libra" version of BlogCal.
The first day of week is Monday (H) now. Great!!!
So the modification was this to set the first day of week...
From:
generate_blogcal(date('Y', $time), $month, $days, 1, NULL, 0, $pn, $currBg ...
To:
generate_blogcal(date('Y', $time), $month, $days, 1, NULL, 1, $pn, $currBg ...
But still there is a space betwen the first day and second day of the week.
This ... <th width="14%" abbr ... wasn't enough. I removed.
So I modified a previous row to set the width of the calendar...
I thing, the width of the left panel of my template is too large.
So the modification is this to set the width of the calendar...
From:
$calendar = '<table width=100% align=center>'."\n". ...
To:
$calendar = '<table width=60% align=center>'."\n". ...
So now everything is beautiful!!!
Thank you very much for the help.
Libra07
QUOTE: Attached is modified .php (just for you) with following modification
* <th> includes width specification
* First Day is Monday instead of sunday.
QUOTE: You may want to modify mod_blogcal.php. Look for <th abbr ...> tag and replace it with <th width="14%" abbr ...> in mod_blogcal.php.
QUOTE: I tested my template and other templates. You are right!
The space between sunday and monday was only a template error.
I try to repair this. If I finished, I will post it here to benefit the others.
Thx!
QUOTE:
QUOTE: Hi! I installed the BlogCal and BlogSidebar. I like this calendar.
Everything works, but now I have a problem. The week begins with
sunday (V) now, but I would like to set this to monday (H).
And there is a space betven sunday (V) and monday (H).
Can somebody help me?
I try to set this in the mod_blogcal.php: $firstday=1
The default was 0. But it doesn't works.
The locale settings is hu_HU in my web.
URL: http://www.beatsoft.hu
Can somebody help me to set this? Thank you!
Libra07
Regarding space between sunday and monday, this is problem that BlogSidebar doesn't work with some templates. Try to change module/div prefix and header from configuration menu. it is going to be trial and error method though. Whatever works for you, please post it here so that others can benefit as well.
For changing first day of week, you have to hack generate_calander function which should be easy.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|