Posted 3 августа, 20168 yr comment_110957 Просмотр файла Read That Topic/Announcement 2.0.3 С помощью данного приложения можно отобразить всплывающее сообщение для определённых групп, которое будет "заставлять" прочитать какую-то тему перед использованием форума. У всплывающего окна имеется только один вариант для закрытия → перейти в требуемую тему) Настройка проста и интуитивно понятна Добавил rustav Добавлено 03.08.2016 Категория Интерфейс Язык Язык: Английский
12 апреля, 20222 yr comment_179740 On 2/23/2022 at 5:58 AM, avangcom said: please send update Would be lovely! 😄
12 апреля, 20222 yr comment_179770 2 hours ago, by_ix said: avangcom BlackShot в чём проблема? A few things: The message uses an old IPS style, which makes the background blueish instead of white There's no button to "Force users to read topic/announcement" in topics or announcements, like in the app's screenshots CSFR protection needs to be added to its code (which can easily be done, but...) Edit: Actually, I just realized the button shows under the moderator tools, not under the common post options, lol Edit 2: Okay, the button does show correctly, but it throws an error message when we try to use it. 🙃 Edited 12 апреля, 20222 yr by BlackShot
12 апреля, 20222 yr comment_179773 @by_ix I think I found the culprit for that error. It's the "SELECT_SQL_CALC_FOUND_ROWS" command on line 120 in read.php. It is a deprecated function and doesn't work anymore. This is the current expression: $select = \IPS\Db::i()->select( '*', 'core_members', $_SESSION['rtta_pside'], 'member_id ASC', array( is_array( $data ) ? $data['done'] : 0, $cycle ), NULL, NULL, \IPS\Db::SELECT_SQL_CALC_FOUND_ROWS ); $total = $select->count( TRUE ); Do you know how to replace SELECT_SQL_CALC_FOUND_ROWS with a working method? References: https://invisioncommunity.com/developers/docs/fundamentals/accessing-the-database-r166/https://invisioncommunity.com/forums/topic/459696-flag-ipsdbselect_sql_calc_found_rows-not-working/?do=findComment&comment=2839109
12 апреля, 20222 yr comment_179777 38 minutes ago, by_ix said: BlackShot Read That Topic 2.1.0.tar 74.5 kB · 2 downloads Thanks!! That version seems to work just fine! Would be a great idea if you posted this for others under Files. 😄
12 апреля, 20222 yr comment_179778 BlackShot если главный админ захочет, он обновит этот. не вижу смысла создавать ещё один.
12 апреля, 20222 yr comment_179779 1 minute ago, by_ix said: BlackShot if the main admin wants, he will update this one. I see no reason to create another one. True, but he hasn't logged in since 2020, lol It's okay though, whoever is looking for an updated version will come through your post. Edited 12 апреля, 20222 yr by BlackShot
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.