Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 27, 20168 yr 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:
October 3, 20168 yr You make a good point. I will raise this internally to see if we can improve the template in this case.
December 8, 20168 yr Author 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?
December 8, 20168 yr Had the same problem myself a while ago. Since there was already a topic about it I didn't post another new one though.
May 5, 20177 yr Author 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?
October 16, 20177 yr Author 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?
October 16, 20177 yr 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.
November 1, 20177 yr 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.