I tried to expand the candle time up to 24 hrs before sunset for the
purpose of avoid the time that affiliate links keep (24 hrs), and I
adjusted the max time from 600 to 1450, and then I could put 1450 in
the field, but apparently the system is not processing the full time,
only maybe 600, I am not sure.
hello,
the test page wont show the correct times – maybe in the future, the only purpose of the test page is to show u how the site will look like when its closed, so u be able to add or disable css classes.
about the second comment – pls explain to me what u trying to do.
Hi DrMosko,
I had the limitation of 600 minutes, but I changed the code to 1450 max,
because I wanted to expand the candle time for a website ads affiliate that let the cookies be working for 24 hrs.
I just wanted to do not let activate cookies with my links 24 hrs before sunset, not just 10 hrs or 600 minutes.
When I looked the website, it was working within the 24 hrs, but as 10
hrs (not sure) before, it began working as You had coded.
Excuse my english.
Thanks.
leggytech
There must be some code in some place there that I overlooked.
I made two changes, if I remember well, but I cannot do it.
I have to watch carefully this week to see.
leggytech
Hi leggytech,
There will be a problem to do that, because the function that determine the time of the shabbat depends on the day that the user come into the site.
example: user enter the site at Friday 00:01 -> calculating the sunset and sunrise times get user details (based on user IP) -> if the time is shabbat close the site.
but if user enter the site before friday 00:00 -> the calculation wont start at all.
for the holidays u can add to
switch($hebrewDate) line 99 wp-shabbat-functions.php
cases as u like.
Hope I was clear, if not contact me again pls
Hi DrMosko,
I don’t know why, but wp-shabbat-functions.php is blank
in my installation.
And I looked in internet and I found:
https://github.com/drmosko/wp-shabbat/blob/master/wp-shabbat-functions.php
I have to copy that code and insert in my installation?
And how I add holidays?
Thanks.
The case options have rare characters, maybe in hebrew?
case preg_match(‘/ë”è àìåì/’, $hebrewDate) == 1:// øàù äùðä à
case preg_match(“/è’ úùøé/”, $hebrewDate) == 1:// éåí ëéôåø
case preg_match(‘/é”â úùøé/’, $hebrewDate) == 1:// ñåëåú
case preg_match(‘/ë”à úùøé/’, $hebrewDate) == 1:// ùîéðé òöøú
case preg_match(‘/é”â ðéñï/’, $hebrewDate) == 1:// ôñç
case preg_match(‘/é”è ðéñï/’, $hebrewDate) == 1:// ùáéòé ùì ôñç
case preg_match(“/ä’ ñéåï/”, $hebrewDate) == 1://ùáåòåú
I would like to know hebrew.
If I can insert in the cases the sunset time calculated minus 24 hrs
that would be good, but I don’t know if that is possible.
Hi,
I guess that is not possible for the reason you gave me, because
that is calculated the day of the visitor.
I’m going to look what i can do for now.
Thanks
with the holidays its not a problem just add cases and use google translate, this switch case is the list of Hebrew holidays and eve of the holiday.
but for the shabbat u will need to think what to do find another solution than I did
good luck.