Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Adriano Faria Posted August 27, 2016 Posted August 27, 2016 You allows to extend the moderator form (in my case, from FORUMS app) to add new permissions: But you "hardcode" the moderator permissions on templates (for all apps, AFAIK). Example for FORUMS: {{if $topic->canPin() or $topic->canUnpin() or $topic->canFeature() or $topic->canUnfeature() or $topic->canHide() or $topic->canUnhide() or $topic->canMove() or $topic->canLock() or $topic->canUnlock() or $topic->canDelete() or $topic->availableSavedActions() or $topic->canMerge() or $topic->canUnarchive() or \IPS\Member::loggedIn()->modPermission('can_view_moderation_log')}} <li> <a href='#elTopicActions_menu' id='elTopicActions' class='ipsButton ipsButton_link ipsButton_medium ipsButton_fullWidth' data-ipsMenu>{lang="moderator_actions"} <i class='fa fa-caret-down'></i></a> <ul id='elTopicActions_menu' class='ipsMenu ipsMenu_auto ipsHide'> So, unless the moderator has any of mod permissions above, it won't display the new permission in the Moderation Actions select: JiigSaaw, Square Wheels, clubedomarea and 1 other 4
bfarber Posted October 3, 2016 Posted October 3, 2016 You make a good point. I will raise this internally to see if we can improve the template in this case. Adriano Faria 1
Adriano Faria Posted December 8, 2016 Author Posted December 8, 2016 On 03/10/2016 at 2:19 PM, bfarber said: You make a good point. I will raise this internally to see if we can improve the template in this case. HI Brandon. Fell again on this today in a plugin. Any idea if and when will be implemented? clubedomarea and TSP 2
teraßyte Posted December 8, 2016 Posted December 8, 2016 Had the same problem myself a while ago. Since there was already a topic about it I didn't post another new one though. TSP and clubedomarea 2
bfarber Posted December 9, 2016 Posted December 9, 2016 I can't say when it will be implemented right now yet, no.
Adriano Faria Posted May 5, 2017 Author Posted May 5, 2017 On 03/10/2016 at 2:19 PM, bfarber said: You make a good point. I will raise this internally to see if we can improve the template in this case. On 09/12/2016 at 11:43 AM, bfarber said: I can't say when it will be implemented right now yet, no. It's still hardcoded on 4.2, Brandon. Isn't it now a good time for a change?
Adriano Faria Posted October 16, 2017 Author Posted October 16, 2017 On 09/12/2016 at 11:43 AM, bfarber said: I can't say when it will be implemented right now yet, no. This is still hardcoded, Brandon: {{if ( $topic->canPin() or $topic->canUnpin() or $topic->canFeature() or $topic->canUnfeature() or $topic->canHide() or $topic->canUnhide() or $topic->canMove() or $topic->canLock() or $topic->canUnlock() or $topic->canDelete() or $topic->availableSavedActions() or $topic->canMerge() or $topic->canUnarchive() or $topic->canRemoveArchiveExcludeFlag() or \IPS\Member::loggedIn()->modPermission('can_view_moderation_log') ) or ( $topic->hidden() == -2 AND \IPS\Member::loggedIn()->modPermission('can_manage_deleted_content') )}} <li> <a href='#elTopicActions_menu' id='elTopicActions' class='ipsButton ipsButton_link ipsButton_medium ipsButton_fullWidth' data-ipsMenu>{lang="moderator_actions"} <i class='fa fa-caret-down'></i></a> <ul id='elTopicActions_menu' class='ipsMenu ipsMenu_auto ipsHide'> ... Any ETA?
bfarber Posted October 16, 2017 Posted October 16, 2017 I'm afraid I can't speak as to whether this will be changed or not, but it's still something on our internal discussion tracker. Sometimes it's a little harder to get things that have no real-world impact (but help third party developers) to the top of the list as you can imagine. AndyF and Adriano Faria 2
iacas Posted November 1, 2017 Posted November 1, 2017 Hopefuly this can be looked at as a small change worth taking the time to do in a 4.2.x update. It would greatly help site customization and plugins in some specific arrangements.
Adriano Faria Posted November 8, 2020 Author Posted November 8, 2020 4 years later of the original request: iacas 1
Recommended Posts