Urgent – Disable design feature in code or via backend ( Group messages killed )


Home Forums Front End PM PRO Urgent – Disable design feature in code or via backend ( Group messages killed )

This topic is: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21010
    Andrew Perryman
    Participant

    Hi Shamim,

    I have a real problem with the group mail and the user deletion of a message within that group…

    When someone in a group carries out housekeeping deleting mails in particular the group messages via the website in the message centre itself, it sets the group message as un reply-able (you do not have permissions etc..).

    I know this is by design however all our membership love the piping mail aspect and the ability to reply without logging in via a simple reply to the mail prompt the get in their own mailboxes.

    This has caused a real headache as when someone deletes a message with good intentions to keep things clean it kills any other conversation in that group immediately. We have a few people in all groups and it cause a real coms hell.. 🙂

    Can you provide a php snippet to place in my function file to disable this feature so if someone in that group deletes a message directly it does not stop the others from replying in the groups they are assigned to?

    You can imagine the complaints I am getting when people are replying via the piping mail facility and the messages are going nowhere.

    It has taken me ages to gain the membership confidence to use this system and it will turn them off if this is allowed to continue.

    So maybe there should be a checkbox to allow people the choice to disable this feature or use it if they wish in the backend? Just seeds of thought.

    In the meantime I eagerly await a php solution to my problem to help overcome this issue.

    Kind regards

    Andrew

    #21014
    Shamim Hasan
    Keymaster

    Add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'fep_current_user_can', function( $can, $cap, $id ){
    	if( 'send_reply' !== $cap || $can ) {
    		return $can;
    	}
    	if( ! is_user_logged_in() || fep_is_user_blocked() ) {
    		return $can;
    	}
    	if( ! $id || fep_get_message_status( $id ) !== 'publish' ) {
    		return $can;
    	}
    	if ( in_array( get_current_user_id(), fep_get_participants( $id ) ) ) {
    		$can = true;
    	}
    
    	return $can;
    }, 10, 3);
    
    #21037
    Andrew Perryman
    Participant

    Shamim.. you are a star ????

    I have tested it and it works a treat.. ????.

    Thank for you lightning support response..

    I have created a custom plug in to place all my PHP fep amendments in and it works perfectly from the plugin too.

    As said before, only as a seed of thought, maybe a dashboard checkbox to give a choice to turn this on or off would be great in the next version.

    Andrew.

Viewing 3 posts - 1 through 3 (of 3 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.