alexxis Posted August 16, 2020 Posted August 16, 2020 59 minutes ago, Adriano Faria said: Did you notice issues only now or did you just upgraded? I just install your application this morning. When seeing those issues with the version 4.2.1, I decided to try the 4.2.0 version. And it worked. But 4.2.1 not 😞 If it is not convenient to you to test it on your computer, since you probably have been upgraded to the IPS 4.5, so it's ok, I will test the latest version of the application once I will be updating my board to the IPS 4.5.
Adriano Faria Posted August 16, 2020 Author Posted August 16, 2020 Yes, I’m on 4.5 but I need to know it’s not a problem. I can downgrade my test install to 4.4. Send a PM and we’ll sort it out.
alexxis Posted August 16, 2020 Posted August 16, 2020 All is good now: the version 4.2.2 is also compatible with the IPS 4.4.10. So I installed it, and the problem described above does not appear now. All is working as it should work 🙂 👍 Adriano Faria 1
alexxis Posted March 27, 2021 Posted March 27, 2021 Hi Adriano, Could you please consider to add a setting to NOT show the button in the member's profile, so the only way to ban members will be through Admin Panel? Since this feature is usually used pretty seldom, so there is no use to see that button in member profiles every time we visit users. I understand, that this button in profiles can be useful for some boards, so a separate setting for it will be fine to have 🙂 I am talking about this button:
Adriano Faria Posted March 27, 2021 Author Posted March 27, 2021 (edited) Remove the moderator permission from those you don’t want to show the button. You will still be able to ban on ACP. Edited March 27, 2021 by Adriano Faria
alexxis Posted March 27, 2021 Posted March 27, 2021 4 hours ago, Adriano Faria said: Remove the moderator permission from those you don’t want to show the button. You will still be able to ban on ACP. Yes, I was awaiting this answer. But all the Administrators will be still able to see that very seldom button in profiles, and if there are several Administrators, it could become annoying to them 😞 I personally also do not want to see that button, so I need to remove the data from the template manually. 😞
Adriano Faria Posted March 27, 2021 Author Posted March 27, 2021 Sorry, I won’t add a setting for this.
Adriano Faria Posted March 27, 2021 Author Posted March 27, 2021 (edited) You should be able to remove it with a custom css: a.ipsButton[data-ipsdialog-title="Ban From Forums"]{ display:none !important; } Edited March 27, 2021 by Adriano Faria alexxis 1
alexxis Posted March 28, 2021 Posted March 28, 2021 Oh God, sorry, I totally forgot about custom.css! 😞 Yes, this way works perfect, so of course there is no need to implement any settings for it! Thank you very much!
Adriano Faria Posted March 31, 2021 Author Posted March 31, 2021 What's New in Version 4.2.4 Fix a couple of issues regarding reputation from banned forums being displayed on Activity Streams and profile
Afrodude Posted March 31, 2021 Posted March 31, 2021 (edited) 2 hours ago, Adriano Faria said: What's New in Version 4.2.4 Fix a couple of issues regarding reputation from banned forums being displayed on Activity Streams and profile OutOfRangeException: (0) #0 /srv/forums/init.php(893) : eval()'d code(23): IPS\Patterns\_ActiveRecord::load(0) #1 /srv/forums/system/Content/Search/Results.php(632): IPS\Content\Search\banfromforums_hook_bmffReactions->addReputationExtraItem(Array, Array) #2 /srv/forums/applications/core/modules/front/discover/streams.php(380): IPS\Content\Search\_Results->addExtraItems(Array, NULL, 1617210221, NULL) #3 /srv/forums/system/Dispatcher/Controller.php(101): IPS\core\modules\front\discover\_streams->manage() #4 /srv/forums/applications/core/modules/front/discover/streams.php(57): IPS\Dispatcher\_Controller->execute() #5 /srv/forums/system/Dispatcher/Dispatcher.php(152): IPS\core\modules\front\discover\_streams->execute() #6 /srv/forums/index.php(13): IPS\_Dispatcher->run() #7 {main} Now all members can't access topics on any forums. Each time you click on any topic you can't show the content of the topic doesn't show anything. Edited March 31, 2021 by Afrodude
Adriano Faria Posted March 31, 2021 Author Posted March 31, 2021 (edited) 59 minutes ago, Afrodude said: Now you all members can't access topics on any forums. Each time you click on any topic the topic doesn't show anything. Do you have FTP? I'll provide a quick fix. If it works, I'll update the file. Disable the app. Not sure what's going on and I can't work on this today anymore. Will take a look tomorrow in the morning. Bah! Stupid me.... just submitted a fix and requested it to be urgent. Hope they review it today yet. If you're reading this and DID NOT update yet, just don't do it and wait for version 4.2.4.1. Edited March 31, 2021 by Adriano Faria
Adriano Faria Posted April 1, 2021 Author Posted April 1, 2021 What's New in Version 4.2.4.1 Fix the "white page" when viewing topics.
Adriano Faria Posted April 22, 2021 Author Posted April 22, 2021 What's New in Version 4.2.5: Script optimization to avoid errors in logs when a topic was deleted/merged (guests only)
Pavel Chernitsky Posted April 25, 2021 Posted April 25, 2021 Hey, can you possibly add an option to only restrict a member from posting? So, no banning, no hiding the topics, and pretty much none of all the other very useful stuff this app can do. I only want to tell annoying members that "we don't want to hear what you have to say on the matters discussed here" 😅
Adriano Faria Posted April 25, 2021 Author Posted April 25, 2021 No. That’s not the goal of this resource. Pavel Chernitsky 1
Afrodude Posted July 18, 2021 Posted July 18, 2021 @Adriano Faria after testing PHP 8 on my site this application crashing the website completely with error "HTTP ERROR 500". I have testing all application one by one, and there's no error logs to show you. Adriano Faria 1
Adriano Faria Posted July 18, 2021 Author Posted July 18, 2021 28 minutes ago, Afrodude said: @Adriano Faria after testing PHP 8 on my site this application crashing the website completely with error "HTTP ERROR 500". I have testing all application one by one, and there's no error logs to show you. I just submitted a fix for this. Now it's wait to be reviewed and approved. Afrodude 1
Afrodude Posted August 16, 2021 Posted August 16, 2021 @Adriano Faria I have a lot of this error whenever members using the search "template_error" OutOfRangeException (0) #0 /srv/forums/system/Theme/Theme.php(926) : eval()'d code(26): IPS\_Content::loadAndCheckPerms(389314) #1 /srv/forums/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\banfromtopics_hook_bftSearch->searchResult(Array, Array, Array, Array, 1, Object(IPS\Http\Url\Friendly), Object(IPS\Http\Url\Friendly), Object(IPS\Http\Url\Friendly), '\n\n<span class="...', 0, Object(IPS\Http\Url\Friendly), '\n\n\t<div class='...', false, 'expanded', false, Array) #2 /srv/forums/system/Content/Content.php(1721): IPS\Theme\_SandboxedTemplate->__call('searchResult', Array) #3 /srv/forums/applications/forums/sources/Topic/Post.php(275): IPS\_Content::searchResult(Array, Array, Array, Array, Array, NULL, false, 'expanded', false, false, Array, Array) #4 /srv/forums/init.php(902) : eval()'d code(49): IPS\forums\Topic\_Post::searchResult(Array, Array, Array, Array, Array, NULL, false, 'expanded', false, false, NULL, Array) #5 /srv/forums/system/Content/Search/Result/Content.php(94): IPS\forums\Topic\banfromforums_hook_bmffSRAS::searchResult(Array, Array, Array, Array, Array, NULL, false, 'expanded', false, false, NULL, Array) #6 /srv/forums/uploads/cache/template_81_5c11d8cc2e9a7d976520d54dda7bc0e9_search.php(2883): IPS\Content\Search\Result\_Content->html() #7 /srv/forums/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_search->resultStream(Object(IPS\Content\Search\Results), '<ul class='ipsP...', Object(IPS\Http\Url\Friendly), NULL, 5428) #8 /srv/forums/uploads/cache/template_81_5c11d8cc2e9a7d976520d54dda7bc0e9_search.php(2946): IPS\Theme\_SandboxedTemplate->__call('resultStream', Array) #9 /srv/forums/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_search->results('["office","2019...', 'e56026cda5382f4...', Object(IPS\Content\Search\Results), '<ul class='ipsP...', Object(IPS\Http\Url\Friendly), 5428) #10 /srv/forums/uploads/cache/template_81_5c11d8cc2e9a7d976520d54dda7bc0e9_search.php(3023): IPS\Theme\_SandboxedTemplate->__call('results', Array) #11 /srv/forums/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_search->search('["office","2019...', 'e56026cda5382f4...', Object(IPS\Content\Search\Results), '<ul class='ipsP...', Object(IPS\Http\Url\Friendly), Array, '\n\n\n<form accept...', 5428) #12 /srv/forums/applications/core/modules/front/search/search.php(787): IPS\Theme\_SandboxedTemplate->__call('search', Array) #13 /srv/forums/applications/core/modules/front/search/search.php(109): IPS\core\modules\front\search\_search->_results() #14 /srv/forums/system/Dispatcher/Controller.php(101): IPS\core\modules\front\search\_search->manage() #15 /srv/forums/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() #16 /srv/forums/index.php(13): IPS\_Dispatcher->run() #17 {main} Is it related to this application ?
Adriano Faria Posted August 16, 2021 Author Posted August 16, 2021 1 minute ago, Afrodude said: Is it related to this application ? Will check. Afrodude 1
Adriano Faria Posted August 16, 2021 Author Posted August 16, 2021 45 minutes ago, Afrodude said: @Adriano Faria I have a lot of this error whenever members using the search "template_error" OutOfRangeException (0) #0 /srv/forums/system/Theme/Theme.php(926) : eval()'d code(26): IPS\_Content::loadAndCheckPerms(389314) #1 /srv/forums/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\banfromtopics_hook_bftSearch->searchResult(Array, Array, Array, Array, 1, Object(IPS\Http\Url\Friendly), Object(IPS\Http\Url\Friendly), Object(IPS\Http\Url\Friendly), '\n\n<span class="...', 0, Object(IPS\Http\Url\Friendly), '\n\n\t<div class='...', false, 'expanded', false, Array) #2 /srv/forums/system/Content/Content.php(1721): IPS\Theme\_SandboxedTemplate->__call('searchResult', Array) #3 /srv/forums/applications/forums/sources/Topic/Post.php(275): IPS\_Content::searchResult(Array, Array, Array, Array, Array, NULL, false, 'expanded', false, false, Array, Array) #4 /srv/forums/init.php(902) : eval()'d code(49): IPS\forums\Topic\_Post::searchResult(Array, Array, Array, Array, Array, NULL, false, 'expanded', false, false, NULL, Array) #5 /srv/forums/system/Content/Search/Result/Content.php(94): IPS\forums\Topic\banfromforums_hook_bmffSRAS::searchResult(Array, Array, Array, Array, Array, NULL, false, 'expanded', false, false, NULL, Array) #6 /srv/forums/uploads/cache/template_81_5c11d8cc2e9a7d976520d54dda7bc0e9_search.php(2883): IPS\Content\Search\Result\_Content->html() #7 /srv/forums/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_search->resultStream(Object(IPS\Content\Search\Results), '<ul class='ipsP...', Object(IPS\Http\Url\Friendly), NULL, 5428) #8 /srv/forums/uploads/cache/template_81_5c11d8cc2e9a7d976520d54dda7bc0e9_search.php(2946): IPS\Theme\_SandboxedTemplate->__call('resultStream', Array) #9 /srv/forums/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_search->results('["office","2019...', 'e56026cda5382f4...', Object(IPS\Content\Search\Results), '<ul class='ipsP...', Object(IPS\Http\Url\Friendly), 5428) #10 /srv/forums/uploads/cache/template_81_5c11d8cc2e9a7d976520d54dda7bc0e9_search.php(3023): IPS\Theme\_SandboxedTemplate->__call('results', Array) #11 /srv/forums/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_search->search('["office","2019...', 'e56026cda5382f4...', Object(IPS\Content\Search\Results), '<ul class='ipsP...', Object(IPS\Http\Url\Friendly), Array, '\n\n\n<form accept...', 5428) #12 /srv/forums/applications/core/modules/front/search/search.php(787): IPS\Theme\_SandboxedTemplate->__call('search', Array) #13 /srv/forums/applications/core/modules/front/search/search.php(109): IPS\core\modules\front\search\_search->_results() #14 /srv/forums/system/Dispatcher/Controller.php(101): IPS\core\modules\front\search\_search->manage() #15 /srv/forums/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() #16 /srv/forums/index.php(13): IPS\_Dispatcher->run() #17 {main} Is it related to this application ? No error here but you seem to have an old file in your system files. I should have changed the file at some point. The file in your error is applications/banfromforums/hooks/bftSearch.php. This isn't used anymore. The error happens in the searchResult method, which now is in the applications/banfromforums/hooks/bmffSRAS.php file. Delete applications/banfromforums/hooks/bftSearch.php if you have FTP access.
Afrodude Posted August 16, 2021 Posted August 16, 2021 (edited) 10 minutes ago, Adriano Faria said: No error here but you seem to have an old file in your system files. I should have changed the file at some point. The file in your error is applications/banfromforums/hooks/bftSearch.php. This isn't used anymore. The error happens in the searchResult method, which now is in the applications/banfromforums/hooks/bmffSRAS.php file. Delete applications/banfromforums/hooks/bftSearch.php if you have FTP access. Done file is deleted. Edited August 16, 2021 by Afrodude
Afrodude Posted August 16, 2021 Posted August 16, 2021 (edited) @Adriano Faria correction I deleted the wrong file bmffSRAS.php, but I restored it. The file bftSearch.php it doesn't exist And bft is related to your other application ban from topic (bft), and I posted the error on the wrong topic my bad!!! Edited August 16, 2021 by Afrodude
Afrodude Posted August 24, 2021 Posted August 24, 2021 Thank you Adriano for your great work everywhere not just on this application. I do have some feature suggestions: Add option for more than one type of ban. Now the only ban option is to completely ban from accessing the topic, and I suggestion to have three type of bans: The normal complete ban not accessing the the forum. Restrict from posting content on the selected forum/forums. Can view the forum, but can't add a reply. Moderate Content. Can see and post on the selected forum/forums, yet the content will need a staff approval. It would be nice if we have those features with this great application.
Recommended Posts