rustav Posted August 3, 2016 Report Share Posted August 3, 2016 Просмотр файла Read That Topic/Announcement 2.0.3 С помощью данного приложения можно отобразить всплывающее сообщение для определённых групп, которое будет "заставлять" прочитать какую-то тему перед использованием форума. У всплывающего окна имеется только один вариант для закрытия → перейти в требуемую тему) Настройка проста и интуитивно понятна Добавил rustav Добавлено 03.08.2016 Категория Интерфейс Язык Язык: Английский 666fox666 1 Quote Link to comment Share on other sites More sharing options...
avangcom Posted February 23, 2022 Report Share Posted February 23, 2022 please send update BlackShot 1 Quote Link to comment Share on other sites More sharing options...
BlackShot Posted April 12, 2022 Report Share Posted April 12, 2022 On 2/23/2022 at 5:58 AM, avangcom said: please send update Would be lovely! 😄 Quote Link to comment Share on other sites More sharing options...
by_ix Posted April 12, 2022 Report Share Posted April 12, 2022 avangcom BlackShot в чём проблема? Quote Link to comment Share on other sites More sharing options...
BlackShot Posted April 12, 2022 Report Share Posted April 12, 2022 (edited) 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 April 12, 2022 by BlackShot Quote Link to comment Share on other sites More sharing options...
BlackShot Posted April 12, 2022 Report Share Posted April 12, 2022 @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 Quote Link to comment Share on other sites More sharing options...
by_ix Posted April 12, 2022 Report Share Posted April 12, 2022 BlackShot Read That Topic 2.1.0.tar BlackShot 1 Quote Link to comment Share on other sites More sharing options...
BlackShot Posted April 12, 2022 Report Share Posted April 12, 2022 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. 😄 by_ix 1 Quote Link to comment Share on other sites More sharing options...
by_ix Posted April 12, 2022 Report Share Posted April 12, 2022 BlackShot если главный админ захочет, он обновит этот. не вижу смысла создавать ещё один. BlackShot 1 Quote Link to comment Share on other sites More sharing options...
BlackShot Posted April 12, 2022 Report Share Posted April 12, 2022 (edited) 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 April 12, 2022 by BlackShot by_ix 1 Quote Link to comment Share on other sites More sharing options...
avangcom Posted April 12, 2022 Report Share Posted April 12, 2022 @by_ix Has this version been updated or modified ??? Quote Link to comment Share on other sites More sharing options...
by_ix Posted April 12, 2022 Report Share Posted April 12, 2022 avangcom простое обновление под 4.6, ничего нового не добавлял. avangcom 1 Quote Link to comment Share on other sites More sharing options...
avangcom Posted April 12, 2022 Report Share Posted April 12, 2022 благодарю вас by_ix 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.