Jump to content
CMSmafia.ru

All Activity

This stream auto-updates

  1. Today
  2. Earlier
  3. The Marketplace is closing on October 30th 2023. If you haven't already read the announcement, please read it first. As our Marketplace prepares to close its doors, we want to ensure a seamless transition for our customers. To facilitate this process, we're introducing a new 'license key' system to allow you to transfer your purchases to the third-party developer website in a privacy-conscious way. On the 'My Purchases' page, you'll find an improved layout displaying each resource you've purchased from the Marketplace. This includes the original purchase date, the expiry date (if applicable) and the current renewal term (if applicable). Additionally, we've added two new enhancements. First, you'll notice the purchase-specific license key (depicted as XXXX in the screenshot). This license key is accessible to the third party author and can be provided to them through their website or other means. It enables them to confirm your payment for the resource and check its activation status. Secondly, we've added a link to their profile in the Providers Directory (if applicable). You can find contact details and a link to the provider's website on their profile. We hope that these additions will help make the transition as smooth as possible. Third Party Developers Developers can now access the new 'My Sales' area, where you'll find a searchable list of resources that have had sales on the Marketplace. This list may include resources that were previously hidden. Clicking on any of these resources will display a list similar to the old 'my paid files.' Here, you'll find detailed information for each purchase, including purchase and expiry dates. Additionally, the list now includes the customer's current renewal term, which may differ from the initial purchase due to pricing changes. Furthermore, you'll notice the new license key, conveniently searchable in the top right corner. We've also made the list of purchases available in CSV format, allowing for easy integration into your own website or marketplace. Please let us know if you have any questions and we hope these new tools will ease the transition from the Marketplace.Просмотр полной статьи
  4. ANDROS

    Smart Search

    Просмотр файла Smart Search Данный плагин это адаптация плагина (BIM) Quick Search (автор onlyME) версии 4.5.0 под версию IPS 4.7. Помимо адаптации были добавлены некоторый исправления и доработки. Флуд-контроль Поиск по конкретной фразе с помощью обрамления кавычками Настраиваемое время ожидания ввода запроса в поле поиска Поиск по вложенным категориям форума Расширение доступных опций для виджета Отображение превью записей из приложения Videos Добавление записей в журнал поиска Материал взят с https://ipbmafia.ru/files/file/3015-smart-search/ Добавил ANDROS Добавлено 27.08.2023 Категория Плагины  
  5. ANDROS

    Smart Search

    Version 1.1.0

    0 downloads

    Данный плагин это адаптация плагина (BIM) Quick Search (автор onlyME) версии 4.5.0 под версию IPS 4.7. Помимо адаптации были добавлены некоторый исправления и доработки. Флуд-контроль Поиск по конкретной фразе с помощью обрамления кавычками Настраиваемое время ожидания ввода запроса в поле поиска Поиск по вложенным категориям форума Расширение доступных опций для виджета Отображение превью записей из приложения Videos Добавление записей в журнал поиска Материал взят с https://ipbmafia.ru/files/file/3015-smart-search/
    Free
  6. Core Added some missing acp live search keywords. Added ability to disable or redirect PII data requests & account deletion. Improved the security of the visual language editor. Improved the responsiveness of the buttons in the cookie message. Fixed an issue where an extra space can be added to the end of dates in specific locales. Fixed an issue where oAuth tokens weren't revoked for banned users. Fixed an issue where it was not possible to cancel optional mfa setup. Fixed an issue where page output may be broken if a large signature is used. Fixed an issue where Edge on Android could be detected as Chrome. Fixed an issue where achievements could be abused in private messages. Fixed a database error when viewing the moderator control panel. Fixed a missing language string in Member History when an account deletion has been cancelled. Fixed an issue where it wasn't possible to dismiss an alert if a password change was being forced. Fixed an issue where a solved notification may have incorrect wording. Fixed an issue where the All / None buttons on chart filters may not work. Fixed an issue where images would be restricted to 1200px regardless of the max image dimensions to display setting. Fixed an issue where posts from future topics may show in profile content streams. Fixed an issue where webhooks may send an empty auth header which can confuse some destination URLs. Fixed an issue where saving custom charts failed. Fixed an issue where AdminCP notifications emails for PII Requests & Account Deletion may not be sent. Fixed an error when using question & answer challenges for captcha with recent PHP versions. Fixed an issue where the cookie information page wasn't visible for validating members. Fixed an issue where the cookie consent opt-in may not return the visitor to the page they were on. Fixed an issue where a specially crafted search query could cause an uncaught exception. Fixed an issue where the onboarding wizard may show an error on save. Pages Fixed an instance where an empty ACP error notification may get logged. Fixed an issue where large file uploads to Pages media may fail. Fixed an issue where a moderator can not edit database records if their group does not have edit permission, however they have moderator permissions to edit globally. Forums Changed og:image on topic view to one image, more than one is not fully compatible with the meta tag editor. Fixed an issue where a significantly large number of reactions could cause memory issues in the expanded topic list view. Events Fixed an issue where automated tests may log an error in the admin control panel from a no longer used block of code. Converter Fixed an error caused when merging an Invision Community using letter photos. Commerce Fixed an issue where subscription upgrade/downgrade pricing was not calculated correctly. Fixed an issue where making paying with PayPal after a failure caused an exception. Fixed Maxmind AdminCP notification missing language string. Courses Fixed an issue in the FrontNavigation extension, where the item was shown without a permission check. Fixed an issue where moderators were unable to access ModCP with Courses enabled. Platform Updated the Live Topic conversion notification to link to the new topic. Fixed an issue where a host or staff member not in an attendee group could not join Downloads Fixed an issue where responding to reviews did not work. Changes affecting third-party developers and designers Updated CKEditor to 4.21.0. Updated jQuery to 3.7.0. Updated jQuery UI to 1.13.2. Updated jQuery Migrate to 3.4.1. Fixed an array offset error on the spam whitelist form. Fixed an issue where temporary cache data wasn't removed from \IPS\Content\Statistics on app uninstall. Fixed an issue where the front/table/rows template was missing a check for the \IPS\Node\Statistics trait. Removed legacy file loader for Extensions. Removed legacy polyfill for IntersectionObserver Русский (RU) 4.7.12.xml Открыть версия
  7. ANDROS

    4.7.12

    Core Added some missing acp live search keywords. Added ability to disable or redirect PII data requests & account deletion. Improved the security of the visual language editor. Improved the responsiveness of the buttons in the cookie message. Fixed an issue where an extra space can be added to the end of dates in specific locales. Fixed an issue where oAuth tokens weren't revoked for banned users. Fixed an issue where it was not possible to cancel optional mfa setup. Fixed an issue where page output may be broken if a large signature is used. Fixed an issue where Edge on Android could be detected as Chrome. Fixed an issue where achievements could be abused in private messages. Fixed a database error when viewing the moderator control panel. Fixed a missing language string in Member History when an account deletion has been cancelled. Fixed an issue where it wasn't possible to dismiss an alert if a password change was being forced. Fixed an issue where a solved notification may have incorrect wording. Fixed an issue where the All / None buttons on chart filters may not work. Fixed an issue where images would be restricted to 1200px regardless of the max image dimensions to display setting. Fixed an issue where posts from future topics may show in profile content streams. Fixed an issue where webhooks may send an empty auth header which can confuse some destination URLs. Fixed an issue where saving custom charts failed. Fixed an issue where AdminCP notifications emails for PII Requests & Account Deletion may not be sent. Fixed an error when using question & answer challenges for captcha with recent PHP versions. Fixed an issue where the cookie information page wasn't visible for validating members. Fixed an issue where the cookie consent opt-in may not return the visitor to the page they were on. Fixed an issue where a specially crafted search query could cause an uncaught exception. Fixed an issue where the onboarding wizard may show an error on save. Pages Fixed an instance where an empty ACP error notification may get logged. Fixed an issue where large file uploads to Pages media may fail. Fixed an issue where a moderator can not edit database records if their group does not have edit permission, however they have moderator permissions to edit globally. Forums Changed og:image on topic view to one image, more than one is not fully compatible with the meta tag editor. Fixed an issue where a significantly large number of reactions could cause memory issues in the expanded topic list view. Events Fixed an issue where automated tests may log an error in the admin control panel from a no longer used block of code. Converter Fixed an error caused when merging an Invision Community using letter photos. Commerce Fixed an issue where subscription upgrade/downgrade pricing was not calculated correctly. Fixed an issue where making paying with PayPal after a failure caused an exception. Fixed Maxmind AdminCP notification missing language string. Courses Fixed an issue in the FrontNavigation extension, where the item was shown without a permission check. Fixed an issue where moderators were unable to access ModCP with Courses enabled. Platform Updated the Live Topic conversion notification to link to the new topic. Fixed an issue where a host or staff member not in an attendee group could not join Downloads Fixed an issue where responding to reviews did not work. Changes affecting third-party developers and designers Updated CKEditor to 4.21.0. Updated jQuery to 3.7.0. Updated jQuery UI to 1.13.2. Updated jQuery Migrate to 3.4.1. Fixed an array offset error on the spam whitelist form. Fixed an issue where temporary cache data wasn't removed from \IPS\Content\Statistics on app uninstall. Fixed an issue where the front/table/rows template was missing a check for the \IPS\Node\Statistics trait. Removed legacy file loader for Extensions. Removed legacy polyfill for IntersectionObserver Русский (RU) 4.7.12.xml
  8. This is our September maintenance release. Key changes include: New Spam Prevention Features Introducing Community Hive Просмотр полной статьи
  9. Everyone at Invision Community is pleased to introduce Community Hive. We are creating a new free-to-use service to help independent communities reach new audiences and re-engage existing members. Community Hive delivers updates from your favourite communities and helps you explore new ones by bringing all the communities you follow into a single feed with optional email updates. The Invision Community September 2023 release will bring Community Hive integration to Invision Community and we're also releasing integrations for XenForo, Squarespace and WordPress. More integrations for popular platforms are planned over the coming months. The "Why" We believe in the power of independent communities. Technology has changed over the two decades we've been building community tools and despite the advances in technology a key problem independent communities still have is re-engaging existing members and finding new audiences. Social media has diminishing returns, and search results continually down-rank user-generated content. Reaching new audiences has never been more challenging. Community Hive solves that by providing a single platform to showcase your content to new and existing audiences. We don't keep your content; the only way to engage is to visit your site, ensuring you retain complete control and ownership. Regular updates via email and push notifications reach your existing members wherever they are. As our attention spans shorten and our online time becomes more cluttered, checking in with each community becomes more of a struggle. Independent and forum based communities fight for attention with social media, and owned platforms like Discord and Slack. Allowing your members to follow your community with Community Hive gives you increased visibility and discoverability and helps level the playing field. The Platform Community Hive has a familiar feed view with two main areas. "Following" shows a feed of communities you already follow to ensure you see more of what you like. This feed learns over time what content you favour and ensures you see more of what you like. The "Discover" tab shows you a feed of content from communities outside of your following list, which is a great way to discover new online communities to join. Following is easy; you don't even need to register on the community to add it to your followed list on Community Hive. Robust account management makes it easy to unfollow communities and set your desired audience classification preferences. Community Hive is mobile-first with push notifications and is ready to be added to your phone's home screen as an app. Integration Community Hive will launch with integration for several platforms such as XenForo, Squarespace and WordPress. Invision Community integration has several tools to nudge your members to add your community to Community Hive with buttons in key follow areas. Following from a community only requests your email address. You can optionally set a password later on Community Hive to enable your feed to be viewed on multiple devices. Clicking "Follow on Community Hive" from an Invision Community when you have an account with that community. Clicking "Follow on Community Hive" from an Invision Community when you do not have an account with that community. Community Hive will be launched in beta alongside Invision Community's September 2023 release, with integrations released for other platforms. You can visit Community Hive now and join in the discussion on the Community Hive forums. We look forward to seeing you there!Просмотр полной статьи
  10. Не так давно при тестировании одного сайта на CMS 1C-Bitrix, который я дорабатывал, обнаружилась ошибка самостоятельной (через e-mail) активации своего аккаунта после регистрации. Ошибка (трудности в завершении активации) сопровождались следующим сообщением: Во время подтверждения регистрации произошла ошибка. Обратитесь к администрации сервера. Поначалу мне показалось это немного странным, так как немного ранее я несколько раз протестировал функционал регистрации и всё, что в него входит (активация аккаунта, восстановление пароля и прочее). Первое, что мне пришло в голову, это то, что ошибка была связана с нестандартной страницей активации аккаунта (на сайте я сделал свою страницу подтверждения регистрации, используя стандартный компонент system.auth.confirmation), второе – что проблема в самих данных пользователя. Проверив эти вещи несколько раз, понял, что дело в чём-то другом. Поискав информацию на этот счёт в Интернете, я наткнулся на рекомендацию о том, что дело может быть в использовании события OnBeforeUserUpdate, которое срабатывает до сохранения данных пользователя. Как это ни странно, но именно его я использовал и правил не так давно. Что я сделал неправильно, используя это событие, сейчас поясню. Событие OnBeforeUserUpdate было прописано в файле init.php, и если вы ранее не сталкивались с этим файлом, то этот пост может быть вам полезным. Так как я люблю оптимизировать код, то я вместе с событием OnBeforeUserUpdate использовал событие OnBeforeUserRegister (вызывается до попытки регистрации нового пользователя) и составил для них обоих одну общую функцию: function OnBeforeUserRegisterHandler(&$arFields) { if(trim($arFields['NAME']) == '') { $GLOBALS['APPLICATION']->ThrowException('Поле «Имя» обязательно для заполнения.'); return false; } return $arFields; } AddEventHandler('main', 'OnBeforeUserRegister', 'OnBeforeUserRegisterHandler'); AddEventHandler('main', 'OnBeforeUserUpdate', 'OnBeforeUserRegisterHandler'); Здесь, как вы могли догадаться, сделано обязательным к заполнению (в регистрации и редактировании профиля) стандартное поле «Имя». Думаю, вы понимаете, почему я указал одну и ту же функцию у двух обработчиков. Если нет – пишите в комментарии, дам пояснения на этот счёт. Всё хорошо, один раз функция делает проверку в момент (до попытки) регистрации, один – в момент (до сохранения) редактирования данных пользователя, но только здесь есть одно «но»: функция при событии OnBeforeUserUpdate срабатывает ещё и в момент активации учётной записи. По факту в этот момент (момент активации аккаунта, точнее до него) происходит попытка изменения некоторых, пусть и условно технических, данных. Так как поле «Имя» у нас в активацию не передаётся, то происходит описанная ранее ошибка. Как я вышел из этой ситуации? А довольно просто. В 1C-Bitrix существует функция is_set (некий аналог isset из PHP), которая проверяет существование элемента в массиве по ключу. Я просто добавил дополнительное условие, проверив, было ли поле передано для его дальнейшего использования в условии, и это решило мою проблему с активацией аккаунтов пользователей на сайте с 1C-Bitrix: function OnBeforeUserRegisterHandler(&$arFields) { if(is_set($arFields, 'NAME') && trim($arFields['NAME']) == '') { $GLOBALS['APPLICATION']->ThrowException('Поле «Имя» обязательно для заполнения.'); return false; } return $arFields; } AddEventHandler('main', 'OnBeforeUserRegister', 'OnBeforeUserRegisterHandler'); AddEventHandler('main', 'OnBeforeUserUpdate', 'OnBeforeUserRegisterHandler');
  11. Spam has always been an ongoing battle for community owners as spammers find new ways to circumvent existing anti-spam practices. We have seen an uptick in new ways spammers are breaking through existing defense. As such, we here at Invision Community continue to look at new ways for community managers to combat against spam. For our September release, we have added several new tools that can prevent spammers from registering in the first place and help combat them even if they register successfully. Let's take a look at these new tools and settings. Geolocation based registration filtering Oftentimes, spam attacks can originate using bots and servers from specific regions. Using our existing Geolocation service, we have now added filters that will allow administrators to hold registrations from specific regions for administrator review, or deny the registration entirely. Using this, administrators whose communities are under a spam attack from a specific region, can temporarily filter registrations from that region. Multiple regions can be defined at once, and each individual region can either be held for administrator review, or denied completely. Disposable Email Filtering We have added an extra option to our spam defense system to filter users registering with throwaway disposable emails, which are often used by spammers to bypass email validation. During Spam Defense checking, we now also check the domain in use for the registration against a frequently maintained list. If the user passes through the normal spam defense checking, but is found to have a disposable email address, then the administrator can define one of the following actions to be taken. Allow the registration to proceed Allow the registration, but moderate all posts (which an option to remove moderation after a certain amount) Flag the account for administrator review Register the account but immediately ban it Completely deny the registration For both Geolocation and disposable email filtering, the existing Spam Defense Whitelist is always honored ahead of these filters. Contact Us Email Verification A common pain point has been the Contact Us page. While the spam does not go to a user facing location, it does still land in the administrators inbox, or other area defined by the sites Contact Us settings. To help with this, if a visitor who is not logged in attempts to use the Contact Us page, then in addition to the existing CAPTCHA, the administrator can optionally require the person to verify their email address before the message is ever sent. This applies to all Contact Us behaviors, including any added by third party applications. Cloud Content Analysis For our Invision Community Cloud customers, we have also added an additional layer of spam prevention after registration. After a user registers, or if the account has been dormant, then the first few content submissions will be analyzed using a custom developed algorithm within our platform. The algorithm takes into factor many different elements of the content, and will rank the post between 1 (not spam) and 5 (definitely spam). The algorithm can be constantly adjusted and improved based on trends without any intervention from the administrator, and without the need to update to new releases of Invision Community. The administrator can then decide one of the following actions to take based on the score that was received. Allow the submission Hold the submission for moderator review Deny the submission completely Of course, specific groups can be made exempt from this and not have their content checked at all, which is useful for sites with subscription based registrations which may not want to have this applied to new subscribers, but do want to have new non-subscribers checked. Spam can quickly become a headache for most community managers, and these new tools will help further combat it at the source. For our enterprise and Invision Community Cloud customers, being able to check for spam when posting is a new tool which will further filter out more of those annoying topics and posts. We hope these new features give you additional tools in the fight against spam. The features and changes presented here are available in the following packages: Geolocation based registration filtering, Disposable Email Filtering, Contact Us Email Verification: Beginner, Creator, Creator Pro, Team, Business, Enterprise, Invision Community Classic (Self Hosted). Content Analysis: Beginner, Creator, Creator Pro, Team, Business, Enterprise.Просмотр полной статьи
  12. We would like to take this opportunity to inform you of an important decision we've made with regard to the Invision Community Marketplace. After careful evaluation and consideration, we have decided to discontinue the Invision Community Marketplace, effective October 30, 2023. Over the past several years, we have noticed a decrease in usage of the Marketplace, with a staggering 75% decline in sales. In addition, we have observed a growing trend away from off the shelf customizations towards bespoke tailoring of a community by working more closely with developers. While it has been a platform for many dedicated and talented contributors to share their work, we believe it is time to re-focus our efforts and resources to better serve your present and future needs. We understand that change can be unsettling, but we are excited to share with you our new direction. We are putting our efforts into enhancing the newly introduced Providers Directory, a platform that will enable you to connect with third-party providers for a wide range of services, including custom development, community management/support, conversion services, and other valuable resources. Additionally, many providers will have independent websites you will be able to visit to explore and obtain existing and new premade resources. More details are to follow soon, but we would like to highlight a few key points: • Marketplace renewals will cease effective immediately • New purchases will end September 15, 2023 • The Marketplace will be removed in the October release and disabled on October 30, 2023 • You will continue to be able to install and manage existing and new resources via the methods provided by their respective authors • You will be able to obtain a key for each of your current Marketplace purchases and provide that key to authors to transfer your purchases directly to the author We invite you to visit the Providers Directory and start exploring the opportunities it offers. This will allow you to familiarize yourself with the database and the resources it will provide in greater depth. Many of the current Marketplace contributors have already created their profiles – please check them out! Of course, this does not mean the end of aftermarket development with Invision Community. We are currently building new development tools for Invision Community 5 which have easier ways to add new functionality. We want to express our sincere gratitude for your ongoing support and trust in Invision Community. We believe these changes will enable us to better position ourselves to continue moving forward in meeting the present and future needs of our customer base. If you have any questions or concerns, please do not hesitate to reach out. Thank you for being a part of the Invision Community family. Update We have posted our next blog covering the next steps for obtaining purchases from 3rd party developers.Просмотр полной статьи
  13. We would like to take this opportunity to inform you of an important decision we've made with regard to the Invision Community Marketplace. After careful evaluation and consideration, we have decided to discontinue the Invision Community Marketplace, effective October 30, 2023. Over the past several years, we have noticed a decrease in usage of the Marketplace, with a staggering 75% decline in sales. In addition, we have observed a growing trend away from off the shelf customizations towards bespoke tailoring of a community by working more closely with developers. While it has been a platform for many dedicated and talented contributors to share their work, we believe it is time to re-focus our efforts and resources to better serve your present and future needs. We understand that change can be unsettling, but we are excited to share with you our new direction. We are putting our efforts into enhancing the newly introduced Providers Directory, a platform that will enable you to connect with third-party providers for a wide range of services, including custom development, community management/support, conversion services, and other valuable resources. Additionally, many providers will have independent websites you will be able to visit to explore and obtain existing and new premade resources. More details are to follow soon, but we would like to highlight a few key points: • Marketplace renewals will cease effective immediately • New purchases will end September 15, 2023 • The Marketplace will be removed in the October release and disabled on October 30, 2023 • You will continue to be able to install and manage existing and new resources via the methods provided by their respective authors • You will be able to obtain a key for each of your current Marketplace purchases and provide that key to authors to transfer your purchases directly to the author We invite you to visit the Providers Directory and start exploring the opportunities it offers. This will allow you to familiarize yourself with the database and the resources it will provide in greater depth. Many of the current Marketplace contributors have already created their profiles – please check them out! Of course, this does not mean the end of aftermarket development with Invision Community. We are currently building new development tools for Invision Community 5 which have easier ways to add new functionality. We want to express our sincere gratitude for your ongoing support and trust in Invision Community. We believe these changes will enable us to better position ourselves to continue moving forward in meeting the present and future needs of our customer base. If you have any questions or concerns, please do not hesitate to reach out. Thank you for being a part of the Invision Community family.Просмотр полной статьи
  14. Я же считаю, что оптимизация это то, что нужно делать вне зависимости от мощности железа или версии Windows. А от сборок нужно вовсе отказаться, тем более после просмотра ролика вы научитесь оптимизировать систему под свой сценарий использования пк. В видео я показал лишь актуальные способы оптимизации. Поэтому мы не только сэкономим время не делая бесполезных настроек, но и выжмем максимум из железа и системы. Кстати, способ рабочий не только на Windows 11, но и на Windows 10. Так что советую не пропускать видео. ────────────────────────────────── Драйверы NVIDIA ➜ https://www.nvidia.com/Download/Find.... Драйверы Intel ➜ https://www.intel.com/content/www/us/... Драйверы AMD ➜ https://www.amd.com/ru/support Driver Easy и CCleaner ➜ https://www.drivereasy.com ➜ https://www.ccleaner.com Win 10 Tweaker ➜ https://win10tweaker.ru Программа Rufus ➜ https://rufus.ie Media Creation Tool ➜ https://www.microsoft.com/ru-RU/softw... Скачать ISO-образ с сайта Microsoft ➜ https://www.microsoft.com/ru-RU/softw... Magnet-ссылка на ISO-образ ➜ https://t.me/martyfiles/1029 Команда для создания локальной учётной записи ➜ OOBE\BYPASSNRO Microsoft Visual C++ ➜ https://learn.microsoft.com/ru-ru/cpp... WinRAR ➜ https://www.win-rar.com AOMEI Backupper ➜ https://www.ubackup.com Команда для поиска приложения в PowerShell ➜ get-appxpackage название приложения Команда для поиска приложения в PowerShell ➜ remove-appxpackage название пакета -AllUsers Defender Killer ➜ https://t.me/martyfiles/1254 NVIDIA Profile Inspector ➜ https://github.com/Orbmu2k/nvidiaProf... AOMEI Partition Assistant ➜ https://www.diskpart.com Активация вкладок в Проводнике ➜ https://t.me/martyfiles/1033
  15. Темный режим стал одной из наиболее часто запрашиваемых функций в дизайне приложений и веб-сайтов. У темного режима много потенциальных преимуществ, таких как экономия времени автономной работы и снижение нагрузки на глаза в условиях низкой освещенности. Для некоторых пользователей темный режим - это способ справиться с мигренью, вызванной светом. Другие предпочитают его просто из эстетических соображений. Статья обозревает медиа-запрос prefers-color-scheme и возможность реализовать переключение режимов (темный/светлый) с помощью JavaScript. На большинстве устройств/операционных системах пользователи могут включить темный режим вручную на системном уровне. Обычно это работает в масштабах всей системы, включая приложения. Но как насчет веб-сайтов? И можно ли их автоматически адаптировать под цветовую схему пользователя? Эмуляция prefers-color-scheme Данная svg-картинка по-умолчанию имеет темные буквы на белом фоне: See the Pen Эмуляция prefers-color-scheme by fruntend (@fruntend) on CodePen. Что мы сделали - это определили цвета в CSS с помощью переменных и прописали их изменение при добавлении класса .dark-mode: :root { --color-background: #fff; --color-default: #000; } .wrapper { background-color: var(--color-background); color: var(--color-default); } .dark-mode .wrapper { --color-background: #000; --color-default: #fff; } В коде скрипта создали функцию, которая добавляет/удаляет класс .dark-mode и прописали её выполнение при изменении состояния медиа-запроса и то же самое при клике на переключатель: const button = document.querySelector(".btn"); const useDark = window.matchMedia("(prefers-color-scheme: dark)"); function toggleDarkMode(state) { document.documentElement.classList.toggle("dark-mode", state); } toggleDarkMode(useDark.matches); useDark.addListener((evt) => toggleDarkMode(evt.matches)); // отслеживаем изменение темы ОС button.addEventListener("click", () => { document.documentElement.classList.toggle("dark-mode"); }); В качестве дополнительной возможности, можно предоставить пользователям сохранять выбор режима. То есть независимо от цветовых настроек интерфейс веб-сайта будет одинаков при обновлении, применяя настройки режима, хранящимися в localStorage. Различие между приведенным ниже кодом и предыдущим заключается в том, что мы вначале загружаем режим на основе состояния localStorage, а не на основе значения предпочтительной цветовой схемы. Нажатие кнопки переключателя меняет режим в localStorage. let darkModeState = false; const button = document.querySelector(".btn"); const useDark = window.matchMedia("(prefers-color-scheme: dark)"); function toggleDarkMode(state) { document.documentElement.classList.toggle("dark-mode", state); darkModeState = state; } function setDarkModeLocalStorage(state) { localStorage.setItem("dark-mode", state); } toggleDarkMode(localStorage.getItem("dark-mode") == "true"); useDark.addListener((evt) => toggleDarkMode(evt.matches)); button.addEventListener("click", () => { darkModeState = !darkModeState; toggleDarkMode(darkModeState); setDarkModeLocalStorage(darkModeState); }); Управление картинками в темной схеме Если изображения очень яркие, то на темном фоне они будут совсем не гармонично выглядеть. Регулировать, какое изображение будет подгружаться в зависимости от темы, можно с помощью атрибута media элемента <picture>: <picture> <source srcset="light-image.jpg" media="(prefers-color-scheme: light)" /> <source srcset="dark-image.jpg" media="(prefers-color-scheme: dark)" /> <img src="light-image.jpg" /> </picture> Еще один способ сделать изображения более соответствующими темному режиму - добавить фильтр: @media (prefers-color-scheme: dark) { img { filter: brightness(70%); } }
  16. See the Pen prefers-color-scheme: переключатель режима by fruntend (@fruntend) on CodePen.
  17. in R you could do: get_ensembles <- function(C){ cbs <- function(x,v = x[1]){ if(length(x)<2) v else cbs(x[-1], c(v, x[2], paste(v, x[2], sep = '_'))) } paste0('CL_', c('atypique', cbs(seq.int(C))[-2^C+1], 'incertains')) } get_ensembles(4) [1] "CL_atypique" "CL_1" "CL_2" "CL_1_2" [5] "CL_3" "CL_1_3" "CL_2_3" "CL_1_2_3" [9] "CL_4" "CL_1_4" "CL_2_4" "CL_1_2_4" [13] "CL_3_4" "CL_1_3_4" "CL_2_3_4" "CL_incertains" You could directly convert the code above into python: import numpy as np def get_ensembles(C): def cbs(x, v = np.array('1')): if x.size < 2 : return v return cbs(x[1:], np.r_[v, np.array(x[1]), np.char.add(v, np.char.add('_',x[1]))]) return np.r_[np.array('CL_atypique'), cbs(np.arange(1,C+1).astype(str))[:-1], np.array('CL_incertains')] get_ensembles(4) array(['CL_atypique', '1', '2', '1_2', '3', '1_3', '2_3', '1_2_3', '4', '1_4', '2_4', '1_2_4', '3_4', '1_3_4', '2_3_4', 'CL_incertains'], dtype='<U13')
  18. Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 15 hours ago. Improve this question I need help creating an R or Python function that generates sets based on the value of C. Here's an example to illustrate what I'm looking for: For C = 2, I have 2^2 sets, including the sets: Cl_atypique, Cl_1, Cl_2, Cl_incertains For C = 3, I have 2^3 sets, including the sets: Cl_atypique, Cl_1, Cl_2, Cl_1_2, Cl_3, Cl_1_3, Cl_2_3, Cl_incertains For C = 4, I have 2^4 sets, including the sets: Cl_atypique, Cl_1, Cl_2, Cl_1_2, Cl_3, Cl_1_3, Cl_2_3, Cl_1_2_3, Cl_4, Cl_1_4, Cl_2_4, Cl_1_2_4,Cl_3_4,Cl_1_3_4, Cl_2_3_4, Cl_incertains I would like to create an R or Python function that takes the value of C as input and returns a vector containing the sets in the specified order. This vector will be used to name a table later on. I have this function that works, but the problem is with the order of the sets. get_ensembles <- function(C) { ensembles <- c() ensembles <- c(ensembles, "Cl_atypique") for (i in 1:(C-1)) { subsets <- combn(1:C, i) for (j in 1:ncol(subsets)) { ensemble <- subsets[, j] ensembles <- c(ensembles, paste0("Cl_", paste0(ensemble, collapse = "_"))) } } ensembles <- c(ensembles, "Cl_incertains") return(ensembles) } get_ensembles(3) get_ensembles(3) [1] "Cl_atypique" "Cl_1" "Cl_2" "Cl_3" "Cl_1_2" [6] "Cl_1_3" "Cl_2_3" "Cl_incertains" As can be seen in the output, Cl_3 and Cl_1_2 are reversed. I can't find a solution Thank you !
  19. This is our July maintenance release. Просмотр полной статьи
  20. This is an essential security and maintenance update. Including improvements for our recently release PII & Statistics features. We recommend not using the visual language editor until you upgrade. Просмотр полной статьи
  21. This is our June maintenance release. Key changes include: Strengthening Community Trust with Privacy and PII Data Features Explore Our New Reporting and Statistical Capabilities Просмотр полной статьи
  22. Our June release includes enhancements to our various statistics and reporting features included within the community. Statistics are important for a community platform because they provide valuable insights about user engagement, preferences, and behaviors, which directly inform the platform's strategy and design. Furthermore, statistics enable the monitoring of the platform's growth and user retention, which are essential for maintaining a vibrant and active community. In our June release, we have made some enhancements to those features that will allow you to more quickly monitor those trends. Saved Charts In Invision Community 4.3, we introduced the ability to save charts to allow you to view them multiple times without needing to reset your filters each time. This works well, however there are three notable downsides. You could only save a chart if there were filters to apply, such as Warning Types, Device Types, Member Groups, etc. Any specified timescale was not retained in your saved chart. There was no centralized location to view every chart you have saved. In our June release, we have resolved both of those issues. Now, every chart can be saved regardless of if there are filters or not, and when saved, will now also retain your timescale as well. In addition to that, we have added an additional My Saved Charts page. This page will show you every chart you have saved, including all filters and timescales that have been selected. From this page you can quickly review all charts, temporarily adjust their timescales and filters to quickly see other information, as well as download each individual chart as a CSV directly from this page. Don't worry, though - your saved charts will also still show in their original locations just as they have in the past. Content Level Statistics Later on, in Invision Community 4.5, we introduced an improved Topic View that included various statistical information about the topic including the top comments, popular days, top commenters, and more. This, however, was only limited to topics in the forums, and not the rest of the community. In our June release, we have taken this and expanded it to content in every application. This includes Blog Entries, Gallery Albums, Gallery Images, and more. Each content item (such as a topic, blog entry or image) will show a new button for those with moderator permissions which opens a full statistics and analytics modal, providing expanded statistical information related to that particular piece of content specifically. Clicking this new button opens up the statistics and analytics modal. Our Classic customers will see the following view: Cloud Powered Historical View Tracking For our Invision Community cloud customers, we have expanded our infrastructure to allow for storing historical views for all content. On the previously mentioned Statistics and Analytics modal, a chart will be shown that outlines the amount of views that content has gotten every single day over a period of time, to allow you to see when specifically content was popular. This chart allows you to view trends for up to a year in the past. Additionally, we have expanded this to content containers Forums, Downloads Categories, Blogs, Blogs Categories, Gallery Categories, and more will all report their own historical view trends. Finally, these trends can be exported as a CSV file for your own personal processing if desired - and if needed, you can choose to only include certain types of content if you are focusing on one particular section. We hope these changes help you to identify trends from within your own community to help you promote and grow it further. The features and changes presented here are available in the following packages: Saved charts and content item level statistics: Beginner, Creator, Creator Pro, Team, Business, Enterprise, Community Classic (Self Hosted). Saved charts, content item level statistics, analytic report generation, content level historical view tracking, container level historical view tracking: Beginner, Creator, Creator Pro, Team, Business, Enterprise. If you do not see your product or package listed, please contact us to talk about upgrading your Invision Community.Просмотр полной статьи
  23. View File (NE) Highlight changes in edit history Pretty much what it says in the name - this will highlight the differences between edits made by users, as long as you have the 'Edit log' setting set to store the edits. PHP requirements: v7.3 or later See the following for the background: See the 'Additional information' for support details. This application makes use of Caxy Interactive's 'PHP-HTMLDIFF' library, which is available for use under the GNU GENERAL PUBLIC LICENSE (version 2). No modifications have been made to the source code of this library Website: https://github.com/caxy Repository: https://github.com/caxy/php-htmldiff License: https://github.com/caxy/php-htmldiff/blob/master/LICENSE Submitter Haimrafael Submitted 05/20/23 Category Applications  
  24. Version 1.0.6

    0 downloads

    Pretty much what it says in the name - this will highlight the differences between edits made by users, as long as you have the 'Edit log' setting set to store the edits. PHP requirements: v7.3 or later See the following for the background: See the 'Additional information' for support details. This application makes use of Caxy Interactive's 'PHP-HTMLDIFF' library, which is available for use under the GNU GENERAL PUBLIC LICENSE (version 2). No modifications have been made to the source code of this library Website: https://github.com/caxy Repository: https://github.com/caxy/php-htmldiff License: https://github.com/caxy/php-htmldiff/blob/master/LICENSE
    Free
  1. Load more activity
×
×
  • Create New...

Important Information

Privacy Policy