Shamim Hasan

Forum Replies Created

Viewing 15 posts - 1,861 through 1,875 (of 2,460 total)
  • Author
    Posts
  • in reply to: On text entered, the list is updated #12795
    Shamim Hasan
    Keymaster

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

    add_action( 'fep_display_before_directory', function(){
    	?><script type="text/javascript">
    	jQuery(document).ready(function($){
    		var delay = (function(){
    		  var timer = 0;
    		  return function(callback, ms){
    		    clearTimeout (timer);
    		    timer = setTimeout(callback, ms);
    		  };
    		})();
    
    		$('.fep-directory-search-form-field').keyup(function() {
    			delay(function(){
    		      $('#fep-directory-search-form').submit();
    		  }, 1000 );
    		});
    	});
    	</script><?php
    });
    
    in reply to: Select all functionality #12793
    Shamim Hasan
    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.

    in reply to: Select all functionality #12787
    Shamim Hasan
    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.

    in reply to: New Features #12784
    Shamim Hasan
    Keymaster

    Thank you for your nice suggestion.
    This feature may be included in future version. But cannot give you time when this may include.

    in reply to: Select all functionality #12765
    Shamim Hasan
    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”.

    in reply to: how do i setup Front End PM Pro in a chile theme? #12762
    Shamim Hasan
    Keymaster

    Both of your understand is correct.
    You can only change templates file in /wp-content/themes/spacious-child/front-end-pm/

    in reply to: how do i setup Front End PM Pro in a chile theme? #12736
    Shamim Hasan
    Keymaster

    1. Plugin must be installed in plugin directory (normally /wp-content/plugins/)
    2. wp-content/themes/spacious-child/front-end-pm/ can contain any files from front-end-pm-pro/templates directory

    in reply to: CSS selector for "Message read" info. #12729
    Shamim Hasan
    Keymaster

    Currently there is no direct hook in that place. Next version will be released next week and you will be able to change this with direct hook.

    If you need this changed within this week let me know. I can provide some code to change this. But that will be indirect, if you are not too much hurry, i prefer you wait for next release.

    in reply to: Custom language files deleted at update to Pro-version #12726
    Shamim Hasan
    Keymaster

    It should not delete any file.
    I will try to investigate it more.
    What is your language code?
    did you put your language file in wp-content/languages/plugins folder?

    in reply to: Trouble with CSS on View Messages screen #12715
    Shamim Hasan
    Keymaster

    1. Use .fep-message-title-heading.participants{font-weight:normal;} for participant style
    2. there is no direct tag for “Read by”. May be next version i will try to add a tag.

    in reply to: how do i setup Front End PM Pro in a chile theme? #12710
    Shamim Hasan
    Keymaster

    Please follow step by step
    1. Remove all changes you have made for this plugin.
    2. Inside your child theme create a folder called “front-end-pm”. So full path will be /wp-test/wp-content/themes/spacious-child/front-end-pm/
    3. in this folder copy “viewmessage.php” and change this file as you need ( do not change file name)

    in reply to: how do i setup Front End PM Pro in a chile theme? #12683
    Shamim Hasan
    Keymaster

    Are you trying to customize this plugin’s template in your child theme? Here is instruction https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/

    in reply to: Email Notifications being sent to Pending Members #12660
    Shamim Hasan
    Keymaster

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

    add_filter('fep_get_user_option', function( $value, $option, $default, $userid ){
        global $ultimatemember;
        if( ! $userid )
        $userid  = get_current_user_id();
    
        if( 'allow_ann' == $option && ! $ultimatemember->user->is_approved( $userid ) ){
            $value = 0;
        }
        return $value;
    }, 10, 4);
    
    Shamim Hasan
    Keymaster

    I have updated “Front End PM – Ultimate Member Integration”. Please update that extension and remove this custom code. Then use original {{message_url}} and {{announcement_url}}. try and let me know.

    Shamim Hasan
    Keymaster

    I have corrected above code. Please use this code and try.
    Let me know.

Viewing 15 posts - 1,861 through 1,875 (of 2,460 total)