Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
April 24, 2018 at 10:41 pm in reply to: New message form shortcode autopopulate to specific user #13660Shamim HasanKeymaster
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.
Shamim HasanKeymasterYou 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.Shamim HasanKeymasterIt should not take any time if not cached by any other plugin or server.
Shamim HasanKeymasterAre 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.Shamim HasanKeymasterCurrently 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.Shamim HasanKeymasterwhich 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/
Shamim HasanKeymasterIf 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 1584April 21, 2018 at 8:54 pm in reply to: In Directory displaying 2 profile photo background icon (avatar) #13570Shamim HasanKeymasterAre you using any custom code for this plugin? Or customized directory template? By default it shows one avatar per user.
Shamim HasanKeymasterPlease 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 .'"]' ); });
Shamim HasanKeymasterI 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.Shamim HasanKeymasterI 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.
Shamim HasanKeymasterI 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);
Shamim HasanKeymasterThank 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.Shamim HasanKeymasterYou 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 });
Shamim HasanKeymaster1. 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);
-
AuthorPosts