Shamim Hasan

Forum Replies Created

Viewing 15 posts - 1,831 through 1,845 (of 2,484 total)
  • Author
    Posts
  • in reply to: New message form shortcode autopopulate to specific user #13660
    Shamim Hasan
    Keymaster

    Please see https://www.shamimsplugins.com/docs/front-end-pm/shortcode/fep_shortcode_new_message_form/ for details of this shortcode. “To” argument support user_nicename (Not first name/last name etc).

    Where are you adding this shortcode? In php template or in post editor? post editor can not process php code. To pass variable you have to add this in php template or anywhere where php code can be parsed. If you add in php template let me know full code of this shortcode so that i can correct for you if you have any error.

    in reply to: How to add receptian id to message body #13657
    Shamim Hasan
    Keymaster

    You can pass {{receiver}} and it will show receiver name. If you want to send receiver id then you need some php code. You can use fep_eb_email_legends filter hook to add your own legend.

    in reply to: Few Users are not added in Group #13633
    Shamim Hasan
    Keymaster

    It should not take any time if not cached by any other plugin or server.

    in reply to: Few Users are not added in Group #13627
    Shamim Hasan
    Keymaster

    Are you using any caching plugin? If yes, try deactivating it.
    If not work, please give me access to your website so that i can try. Full backup your website before giving me access.

    in reply to: Unread, unread messages and excerpt issues. #13624
    Shamim Hasan
    Keymaster

    Currently there is no separate class for unread messages. I will try to add in next version. If you need urgently you can override messagebox.php template to achieve this. Instruction to override template in https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/

    Excerpt is intended to have same length ( 100 characters ). but some messages does not have that much characters. So it become uneven. You can use fep_get_the_excerpt filter hook to return ever length as you want.

    in reply to: Few Users are not added in Group #13615
    Shamim Hasan
    Keymaster

    which few users not added to group? Are they shown as suggestion when you type their name in members field?
    did you select them from suggestion field to add?
    I did not understand your second question. what is batch of Group Users?

    This link may help a little. https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/group-messaging/

    in reply to: Notice: Undefined offset: 0 #13593
    Shamim Hasan
    Keymaster

    If you deactivate dokan, is this notice go away? If yes please let dokan developer know this. You can give them this link so that they understand where the issue is. https://github.com/shamim2883/front-end-pm/blob/75eb5f4b1ca72910f499e4733e376f20e8896577/functions.php#L1584

    For temporary solution you can replace $args[0] with @$args[0] in functions.php on line 1584

    Shamim Hasan
    Keymaster

    Are you using any custom code for this plugin? Or customized directory template? By default it shows one avatar per user.

    in reply to: Need help integration into forum #13567
    Shamim Hasan
    Keymaster

    Please use following code in you theme’s (child theme’s if any) functions.php

    add_action('asgarosforum_custom_profile_content', function( $user_object ){
        echo do_shortcode( '[fep_shortcode_message_to to="'. $user_object->user_nicename .'"]' );
    });
    
    in reply to: Some minor Changes . #13552
    Shamim Hasan
    Keymaster

    I have updated above code. Please update your code with this one.
    CSS in theme depended. It is better if you use developer option of your browser to live change your css and determine what you need and add accordingly.

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

    I found the issue. UM remove wpautop function hook from content in its page.
    You can bypass this using following code ( I may include this code in next version of UM integration extension)

    add_action( 'template_redirect', function(){
    	if ( is_ultimatemember() && isset( $_GET['profiletab'] ) && 'fep-um' == $_GET['profiletab'] ) {
    		add_filter( 'the_content', 'wpautop' );
    	}
    }, 15);
    

    Let me know.

    in reply to: Need help integration into forum #13524
    Shamim Hasan
    Keymaster

    I am really sorry you did not received my replies. Both of the time i replied, may be ended in spam folder.

    Please use following code in you theme’s (child theme’s if any) functions.php

    add_action('asgarosforum_after_post_author', function( $user_id, $post_counter ){
        echo do_shortcode( '[fep_shortcode_message_to to="'. fep_get_userdata( $user_id, 'user_nicename', 'id') .'"]' );
    }, 10, 2);
    
    in reply to: Message & Announcement Formatting issue discovered #13521
    Shamim Hasan
    Keymaster

    Thank you for your details reply.
    I setup my test website with UM integration and can reproduce this.
    I will investigate this and try to find out what causes this and get back to you.

    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);
    
Viewing 15 posts - 1,831 through 1,845 (of 2,484 total)