Select all functionality


Home Forums Front End PM PRO Select all functionality

This topic is: Not Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12745
    Edgar Portelli
    Participant

    Hi,

    Is it possible to somehow select all recipients instead of ticking one by one?

    Thank you

    #12751
    Edgar Portelli
    Participant

    Also, is it possible to send the same message to more than one person by selecting All?

    #12765
    shamim
    Keymaster

    Please add following code in your theme’s (child theme’s if any) functions.php

    add_filter( 'fep_directory_output', function( $directory ){
    	$checkbox = '<label><input type="checkbox" class="fep-cus-select-all" />'.__('Select all').'</label>';
    	$checkbox .= '<script type="text/javascript"> jQuery(document).ready(function(){';
    	$checkbox .= 'jQuery("#fep-table .fep-cus-select-all").change(function(){';
    	$checkbox .= 'jQuery( \'#fep-table input[type="checkbox"]\' ).prop("checked", this.checked);';
    	$checkbox .= '})}); </script>';
    	
    	return str_replace( '<div id="fep-table" class="fep-table fep-odd-even">', '<div id="fep-table" class="fep-table fep-odd-even">' . $checkbox, $directory);
    });
    

    It will show a checkbox in “Directory” to select all users from directory. Then from dropdown select “Send message”.

    #12778
    Edgar Portelli
    Participant

    That worked perfectly, thanks.

    Is it possible for this to be added in the message box page as well? The Select All?

    Also, how can I translate the text?

    #12787
    shamim
    Keymaster

    Please wait for next version. It will be added in plugin, so you do not need any custom code for this. Next version will be released next week.

    #12790
    Edgar Portelli
    Participant

    How can I translate the functionality?

    #12793
    shamim
    Keymaster

    When release next version, you will be able to translate like any other string. To translate above code just change Select all to your language.

Viewing 7 posts - 1 through 7 (of 7 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.