Rhody
Well-known member
There is. It is in their PREFERENCES menu.Is there a way to disable this per user basis?
"[X] Disable holiday styling"
There is. It is in their PREFERENCES menu.Is there a way to disable this per user basis?
.avatar {
position: relative;
&::before {
content:"";
display: block;
background-image: url('styles/themehouse/holidays/new-years/mask.svg');
background-size: contain;
background-repeat: no-repeat;
width: 150%;
height: 150%;
position: absolute;
}
}
.node-icon i:before {
content: "_" !important;
text-indent: -9999 !important;
color: transparent !important;
}
.node-icon i {
span {
background-color: transparent !important;
color: transparent !important;
text-shadow: none !important;
}
background-image: url('styles/themehouse/holidays/new-years/firework-muted.png');
background-size: contain;
background-repeat: no-repeat;
}
.node--unread.node--category .node-icon i,
.node--unread.node--forum .node-icon i {
background-image: url('styles/themehouse/holidays/new-years/firework.png');
}
.p-body-pageContent {
.block--category {
.block-header {
position: relative;
a {
z-index: 5;
position: relative;
}
}
&:first-child {
.block-header {
&::after {
content: "";
position: absolute;
top: 4px;
right: 3px;
z-index: 2;
pointer-events: none;
background-image: url('styles/themehouse/holidays/new-years/flag_streamer.svg');
background-size: contain;
background-repeat: no-repeat;
transform: rotate(30deg);
width: 40px;
height: 40px;
}
}
.block-body {
position: relative;
&::after {
content: "";
position: absolute;
bottom: -11px;
right: -13px;
pointer-events: none;
background-image: url('styles/themehouse/holidays/new-years/ball_bell.svg');
background-size: contain;
background-repeat: no-repeat;
transform: rotate(-30deg);
width: 20px;
height: 20px;
}
}
}
}
}
.avatar {
position: relative;
&::before {
content:"";
display: block;
background-image: url('styles/themehouse/holidays/new-years/mask.svg');
background-size: contain;
background-repeat: no-repeat;
width: 150%;
height: 150%;
position: absolute;
}
}
Thank you for the report here and in ticket, I've gone ahead and got this added to our issue trackerI've found a bug. It seems for dates, it's also looking for year, in spite of the fact that no year is given/configured.
If you have the Winter holiday and set it from for example 15-12 to 10-01 it should run every year from 15-12 to 10-01. However, at 01-01 there is a new year and it stops working unless you set the begin date at 01-01.
So you can set the end date to what you want, it will stop automatically at 01-01 anyway. So it is checking the year instead of only month and day and this is causing this bug.
Users can disable any effects you have active, but not the general styling.Is there a way to disable this per user basis?
Thank you so much!First of all, thank you for this very great addon!!
I did it a differnet way. Mask should only be until 00.00 hours and then off. So I created a copy of New Year and named it Old Year. After that I set the times in both pieces and removed the masks in the New Year option.
@Nordgard this is the full New Year styling:
Code:.node-icon i:before { content: "_" !important; text-indent: -9999 !important; color: transparent !important; } .node-icon i { span { background-color: transparent !important; color: transparent !important; text-shadow: none !important; } background-image: url('styles/themehouse/holidays/new-years/firework-muted.png'); background-size: contain; background-repeat: no-repeat; } .node--unread.node--category .node-icon i, .node--unread.node--forum .node-icon i { background-image: url('styles/themehouse/holidays/new-years/firework.png'); } .p-body-pageContent { .block--category { .block-header { position: relative; a { z-index: 5; position: relative; } } &:first-child { .block-header { &::after { content: ""; position: absolute; top: 4px; right: 3px; z-index: 2; pointer-events: none; background-image: url('styles/themehouse/holidays/new-years/flag_streamer.svg'); background-size: contain; background-repeat: no-repeat; transform: rotate(30deg); width: 40px; height: 40px; } } .block-body { position: relative; &::after { content: ""; position: absolute; bottom: -11px; right: -13px; pointer-events: none; background-image: url('styles/themehouse/holidays/new-years/ball_bell.svg'); background-size: contain; background-repeat: no-repeat; transform: rotate(-30deg); width: 20px; height: 20px; } } } } } .avatar { position: relative; &::before { content:""; display: block; background-image: url('styles/themehouse/holidays/new-years/mask.svg'); background-size: contain; background-repeat: no-repeat; width: 150%; height: 150%; position: absolute; } }
Yes so why can you set a start date then? Anyway, if it's automatic, then it certainly did not start correctly this year.but holidays like Easter are automatic.
I doubt that this would fix a 24 hour mistake.My fix was to modify the cron to run at 1:05am daily,
public static function easter(Holiday $holiday)
{
$time = self::getTime();
$start = (Carbon::createFromTimestamp(easter_date($time->year)))->startOfDay();
$end = (clone($start))->addWeek()->endOfDay();
return $time->between($start, $end);
}
Ah ok. I don't realy have php knowledge, but I found this on php.net:It uses a core PHP function
Note:
easter_date() relies on your system's C library time functions, rather than using PHP's internal date and time functions. As a consequence, easter_date() uses the TZ environment variable to determine the time zone it should operate in, rather than using PHP's default time zone, which may result in unexpected behaviour when using this function in conjunction with other date functions in PHP.
As a workaround, you can use the easter_days() with DateTime and DateInterval to calculate the start of Easter in your PHP time zone as follows:
Well.... still odd. If it starts 24 hours early, you would expect it to end 24 hours early too. Or at least on time. At this moment it's still running and we are half a day past easter even now.as we can only go on what that returns.
Eastern for a week? LoL.It's coded to be enabled all week
We use essential cookies to make this site work, and optional cookies to enhance your experience.