Shamim Hasan

Forum Replies Created

Viewing 15 posts - 1,846 through 1,860 (of 2,486 total)
  • Author
    Posts
  • in reply to: Add Meta Data fields to the Directory #13499
    Shamim Hasan
    Keymaster

    You can add following code in your theme’s (child theme’s if any) functions.php (Change as required)

    add_filter('fep_directory_table_columns', function( $columns ){
    	$columns['cus_data'] = 'cus_data';
    	return $columns;
    });
    
    add_action( 'fep_directory_table_column_content_cus_data', function( $user ){
    	echo "Your custom data"; //Change here what you want to show
    });
    
    in reply to: Some minor Changes . #13479
    Shamim Hasan
    Keymaster

    1. You can override viewmessage.php template to achieve what you want. Instruction in https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/

    2.+ 3. add following code in your child theme’s functions.php

    add_filter('fep_message_table_columns', function( $columns ){
    	$columns['cus_count'] = 'count';
    	$columns['cus_date'] = 'date'; 
    	return $columns;
    });
    
    add_action( 'fep_message_table_column_content_cus_count', function(){
    	$args = array(
    		'post_type' => 'fep_message',
    		'post_status' => 'publish',
    		'post_parent' => fep_get_parent_id( get_the_ID() ),
    		'posts_per_page' => -1,
    		'order'=> 'ASC',
    		'fields' => 'ids'
    	 );
         
    	 echo count( get_posts( $args ) ) + 1;
    });
    
    add_action( 'fep_message_table_column_content_cus_date', function(){
    	the_time( 'M d, Y' );
    });
    
    add_action( 'fep_message_table_column_content_author', function(){
    	echo fep_user_name( get_the_author_meta('ID') );
    });
    
    add_filter( 'fep_formate_date', function( $h_time, $date, $d ){
        return $date;
    }, 10, 3);
    
    in reply to: Listing #13437
    Shamim Hasan
    Keymaster

    It seems you are in wrong forum. This is messaging plugin.

    Shamim Hasan
    Keymaster

    Please go to https://www.shamimsplugins.com/checkout/purchase-history/ then click “View Licenses” > “Manage Sites”. Then Deactivate site which you are not using anymore.
    Then go to your wordpress site license page. remove license key then “Save changes” and input your license key and again “Save Changes”.

    Let me know.

    in reply to: Role to Role Block , Unable to access #13398
    Shamim Hasan
    Keymaster

    Please open browser console (for Firefox F12) and see if there any javascript error.
    Let me know.

    in reply to: Group message #13395
    Shamim Hasan
    Keymaster

    It is intended behavior that users will get all messages of his group. Most of the messaging system done by this rule. Eg. if you open a facebook group message and later add any user, he will receive all messages previously sent also.

    in reply to: Email #13365
    Shamim Hasan
    Keymaster
    in reply to: Trouble with CSS on View Messages screen #13355
    Shamim Hasan
    Keymaster

    Try following code

    .front-end-pm-form .fep-button {
        margin-left: 50%;
    }
    
    in reply to: Message & Announcement Formatting issue discovered #13349
    Shamim Hasan
    Keymaster

    You were correct in interpretation of the problem. I also did the same but could not reproduce this. in screenshot-2 your line breaks are stripped out but in my test i cannot reproduce this. This means may be some plugin and/or theme code is changing its behavior. Can you please disable all plugins except this and change theme to default theme and test?

    in reply to: Message & Announcement Formatting issue discovered #13339
    Shamim Hasan
    Keymaster

    I can not reproduce this.
    Please give me screenshot of your editor with message/announcement and resulting message/announcement after send. So that i can see what is changed and try to reproduce.

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

    Try following code

    .front-end-pm-form .fep-button {
        float: right;
    }
    
    in reply to: Hide attachment in front end #13319
    Shamim Hasan
    Keymaster

    I see that option is misleading. This will send email to all users from that selected role(s) only.
    So check that checkbox and try.
    Let me know.

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

    Try following code

    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);
    
    in reply to: Hide attachment in front end #13274
    Shamim Hasan
    Keymaster

    I see you unchecked “Send email?”. If you unchecked this, this will not send email when an announcement is published. Try checked and test.
    Are you using any SMTP plugin?

    in reply to: Hide attachment in front end #13266
    Shamim Hasan
    Keymaster

    Can your website send email? eg. registration, lost password email?
    If you send a message, is that notification email sent to your email?
    Can you please check and see all fields are filled and give me a screenshot of Front End PM PRO > Settings > Emails? Also please check “From Email” is same domain email of your website and email exists in your server. Some host may block email sending if email not exists.

Viewing 15 posts - 1,846 through 1,860 (of 2,486 total)