Jump to content

Esther E.

Invision Community Team
  • Posts

    491
  • Joined

  • Last visited

  • Days Won

    8

Reputation Activity

  1. Haha
    Esther E. got a reaction from EliasM in Anyone else having trouble with Downloads file screenshots?   
    This is going to end up being one of those issues that takes days to find and seconds to fix. 
  2. Like
    Esther E. reacted to Gary in Missing features in version 5   
    I think your post, @Matt, needs to be featured, bold, highlighted, underlined, pinned and made a permanent announcement (at least until v6).
    If there was a love reaction, I'd be hitting it!
    Despite the minority, the majority are behind you and support you and the rest of the Invision Community team. Hard decisions need to be made sometimes and standing by your decisions shows true character and just how much the software means to you all. You simply cannot please everyone. However unfortunate that may be, it's reality.

  3. Agree
    Esther E. got a reaction from SeNioR- in Anyone else having trouble with Downloads file screenshots?   
  4. Agree
  5. Thanks
    Esther E. reacted to Adriano Faria in Anyone else having trouble with Downloads file screenshots?   
    I'll change it later and will reply here.
  6. Thanks
    Esther E. got a reaction from Adriano Faria in Anyone else having trouble with Downloads file screenshots?   
    Thanks. I'll let you know if I'm able to replicate this.
  7. Thanks
    Esther E. reacted to Adriano Faria in [B6] Is there any issue with notifications (background process)?   
    I noticed yesterday that another third-party app is preventing my tasks (cron) from running when this app is enabled. If I disable it, it works fine. Pretty sure it is related. 👍
  8. Thanks
    Esther E. got a reaction from Adriano Faria in [B6] Is there any issue with notifications (background process)?   
    And there are no errors in the system logs, and no errors when you run them manually? 
  9. Like
    Esther E. reacted to Klaus Mouse in Support for Observance of Shabbat?   
    Oh, good catch on the 8:30PM vs 7:30PM. Thank you. Total oversight on my part. 
    I spoke with Yeshua and I received a little more clarification on this request and how I can accomplish what I need without a plugin and nor without violating the ToS, but rather relying on the servers' configuration itself to isolate what is IPS and what is Shabbat script; thus... this reply will mark this as resolved. I thank everyone who contributed to the conversation as it helped me arrive to this solution to share with all.
    In /var/www/html/.htaccess I modified the DirectoryIndex property to shabbat.php and at the end of shabbat.php I added a header("Location: index.php"); and voila, IPS admin is not upset about the software and the directory is sufficient; however the line I needed to add was: 
    DirectoryIndex shabbat.php index.php index.html index.htm After that, IPS software's index.php is restored and untouched, and the Shabbat script prohibits access to the IPS software during the window of time required. 
    Thank you again for clarifying the 7:30PM vs 8:30PM. 
    Here is the complete .htaccess file:
    DirectoryIndex shabbat.php index.php index.html index.htm <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map|webp)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Here is the shabbat.php script: 
    <?php if(isset($_GET['debug']) && $_GET['debug'] == "1"){ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); } date_default_timezone_set('America/New_York'); function getHebrewDate() { $date = new DateTime('now', new DateTimeZone('America/New_York')); $jd = gregoriantojd($date->format('m'), $date->format('d'), $date->format('Y')); $hebrew_date = cal_from_jd($jd, CAL_JEWISH); $hebrew_months = [ 1 => 'Tishri', 2 => 'Heshvan', 3 => 'Kislev', 4 => 'Tevet', 5 => 'Shevat', 6 => 'Adar', 7 => 'Adar II', 8 => 'Nisan', 9 => 'Iyar', 10 => 'Sivan', 11 => 'Tammuz', 12 => 'Av', 13 => 'Elul' ]; return sprintf("%d %s %d", $hebrew_date['day'], $hebrew_months[$hebrew_date['month']], $hebrew_date['year'] ); } $current_time = new DateTime(); $friday_730pm = (new DateTime('friday this week 19:30'))->setTimezone(new DateTimeZone('America/New_York')); $saturday_830pm = (new DateTime('saturday this week 20:30'))->setTimezone(new DateTimeZone('America/New_York')); if ($current_time >= $friday_730pm && $current_time < $saturday_830pm) { if (!empty($_SERVER['HTTP_X_SHABBAT_CHECK'])) { return; // Exit if this header is already set } header('X-Shabbat-Check: true'); header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); header('Cache-Control: post-check=0, pre-check=0', false); header('Pragma: no-cache'); header('Expires: Thu, 01 Jan 1970 00:00:00 GMT'); header('Content-Type: text/html; charset=utf-8'); $remaining_time = $saturday_830pm->getTimestamp() - $current_time->getTimestamp(); $end_date = $saturday_830pm->format('l, F j, Y'); $current_hebrew_date = getHebrewDate(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Shabbat Shalom</title> <style> body { background-color: #2F4F4F; /* Slate Steel Gray */ color: #2C2C2C; /* Noir Graphite Dark Gray */ font-family: Arial, sans-serif; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background-color: rgba(255, 255, 255, 0.9); padding: 2rem; border-radius: 10px; text-align: center; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); max-width: 600px; width: 90%; } .countdown { font-size: 2rem; margin: 1rem 0; font-weight: bold; } h1 { margin-top: 0; } </style> <script> function startCountdown(seconds) { const countdownElem = document.getElementById('countdown'); function updateCountdown() { const days = Math.floor(seconds / 86400); const hours = Math.floor((seconds % 86400) / 3600); const minutes = Math.floor((seconds % 3600) / 60); const secs = seconds % 60; countdownElem.textContent = `${String(days).padStart(2, '0')}d ` + `${String(hours).padStart(2, '0')}h ` + `${String(minutes).padStart(2, '0')}m ` + `${String(secs).padStart(2, '0')}s`; if (seconds > 0) { seconds--; setTimeout(updateCountdown, 1000); } } updateCountdown(); } document.addEventListener('DOMContentLoaded', () => { const remainingTime = <?php echo $remaining_time; ?>; startCountdown(remainingTime); }); </script> </head> <body> <div class="container"> <h1>SHABBAT SHALOM!</h1> <p>Our community is honoring Yeshua's Sabbath for Shabbat.</p> <p>Our site will be back online in:</p> <div class="countdown" id="countdown"></div> <p>We will reopen at 8:30pm on <?php echo $end_date; ?>.</p> <p>Current Date: <?php echo $current_hebrew_date; ?></p> </div> </body> </html> <?php exit; } else { header("Location: index.php"); } I believe this solution will work when IPS 5 is released as well, thus this solution is "future-proof" until the PHP syntax itself changes and the script needs to be adjusted for PHP 9 or PHP X whenever that comes out. 
    Shalom! ~Andrei
  10. Like
    Esther E. got a reaction from Hatsu in Support for Observance of Shabbat?   
    It could be accomplished with a plugin on the dispatcher, which would just check the time and then show an error message.
    That said, 7:30-7:30 isn't entirely accurate - if anything it would be 7:30pm Friday - 8:30 pm Saturday, and it wouldn't be applicable throughout the year; you'd need to integrate with an API, such as myzmanim.com, or something similar.
    Literally the only site I've ever heard of that shuts down for Shabbat is B & H. Beyond that... I'm relatively certain (not 100%, but I did look into it when I used to have files on the marketplace) that halachically it's permissible to have your website open (and even earning money), as you cannot control the actions of your user base, nor are you responsible for them.
    Orthodox Yeshiva education rearing its head. 😉
    Torah talk aside.... whoever you hire to build this for v4 will still need to update it for v5. The entire architecture is different; there is no way to create something that will be compatible with both.
  11. Haha
    Esther E. reacted to Jimi Wikman in This is a good number, right?   
    Is this a BAD reputation, or a Good reputation?
  12. Haha
    Esther E. got a reaction from David N. in Beta 3 is here! Spooky!   
    Depends. How many bugs is everyone planning to report? (She says after sending about 20 new bugs to the internal tracker....) 😂
  13. Thanks
    Esther E. got a reaction from Cloaked in Converters   
    We have not worked on the converters yet, and there is no current timeline for it. (It will be done, but no ETA right now.
  14. Haha
    Esther E. got a reaction from Mike G. in Beta 3 is here! Spooky!   
    Depends. How many bugs is everyone planning to report? (She says after sending about 20 new bugs to the internal tracker....) 😂
  15. Haha
    Esther E. reacted to SoloInter in Back to top button   
    Oupsiii 😅 😬
    It's just that we have more and more new members joining the community and introducing themselves by indicating their age. That's when we realize that they weren't born when the community was already alive for a few years. It makes me feeling old 🤭
  16. Haha
    Esther E. got a reaction from SoloInter in Back to top button   
    Who are you calling old???
     
  17. Haha
    Esther E. got a reaction from Gary in Beta 3 is here! Spooky!   
    Depends. How many bugs is everyone planning to report? (She says after sending about 20 new bugs to the internal tracker....) 😂
  18. Haha
    Esther E. reacted to Marc in Beta 3 is here! Spooky!   
    Zombieta would have been my fav 😄
  19. Haha
    Esther E. reacted to Nathan Explosion in Beta 3 is here! Spooky!   
    And the idea of "Boota" didn't once cross your mind?
     
  20. Thanks
    Esther E. got a reaction from DuskFall976 in 5.0 Beta 2 - Installation Error   
    Can you please post this in our Bug tracker?
  21. Haha
    Esther E. got a reaction from rastafari in Upgrade went through perfectly, however I receive a HTTP ERROR 500   
    My crystal ball is out of order.
  22. Like
    Esther E. got a reaction from Mike Gholson in Upgrade went through perfectly, however I receive a HTTP ERROR 500   
    My crystal ball is out of order.
  23. Haha
    Esther E. got a reaction from Gary in Upgrade went through perfectly, however I receive a HTTP ERROR 500   
    My crystal ball is out of order.
  24. Haha
    Esther E. got a reaction from abobader in Upgrade went through perfectly, however I receive a HTTP ERROR 500   
    My crystal ball is out of order.
  25. Like
    Esther E. got a reaction from abobader in Upgrade went through perfectly, however I receive a HTTP ERROR 500   
    It's been fixed for the next beta, the upgrade scripts will take care of it. 
    Until that's released though, the only fix is to manually clean these records out. 
×
×
  • Create New...