Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Please check your website now.
You had translated “No matches found” to “Ingen treff funnet” with an extra line breaks at the top which breaks your javascript.Shamim HasanKeymasterYour approach is almost correct. Please see https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/role-to-role-block/. Select “To Role” to “All Roles”
Last part of that doc is
If you block for all roles, eg. You set “From Role” as “Subscriber” and “To Role” as “All Roles” and “Block For” as New Message” then “Directory” and “To” field will be hidden to “Subscriber” role users as they can not send message to any users.
If you set admin in Dashboard > Front End PM PRO > Settings > Recipient then users will be able to send message to those admins if they are blocked by these rules also.
Shamim HasanKeymasterDid you changed anything just before that? Any update to core/theme/plugin?
Can you create a test account and send credentials to me so that i can see? Use https://www.shamimsplugins.com/sensitive-information/ to send credentials.Shamim HasanKeymasterMake sure you have added after
<?php
tag. if still not work please enable debug (https://codex.wordpress.org/Debugging_in_WordPress) to see actual error message.Let me know.
Shamim HasanKeymasterYour code seems ok.
Where you are adding this code?
Please see your server error log to see what error it shows there.Shamim HasanKeymasterYou need to find role slug to use here.
eg. Slug of Subscriber is subscriber (lower cased). So you need to find slug of your all roles. Also use quote in both side. Eg'subscriber'
Shamim HasanKeymasterGroup slug is case sensitive. make sure you have used same group slug as you set in group settings page. I think it will be
$user_groups['instructors'] = 'Instructors';
Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_directory_arguments', function( $args ){ $role_users_to_hide = array( 'subscriber', 'author' ); //here add as many as you want if ( isset( $args['role__not_in'] ) ) { $args['role__not_in'] = array_merge( $args['role__not_in'], $role_users_to_hide ); } else { $args['role__not_in'] = $role_users_to_hide; } return $args; }, 99);
change/add as many roles slug as you want in place of subscriber, author
January 30, 2019 at 1:13 am in reply to: How to Add Attachment Field in fep_shortcode new_message_form shortcode #21139Shamim HasanKeymasterCurrently attachment is not supported there. You can use
fep_form_fields
hook to add attachment field there but in that case you will not be able to ajax submit that form.Shamim HasanKeymasterIf you edit core plugin code, it will be lost when you update this plugin. It is always better to use hooks.
You can use
fep_before_form_fields
to check if this error present and can replace with your desire error message.Shamim HasanKeymasterAs this is an old topic, it is always better to create a new topic so that i do not miss.
You can use
fep_get_option
to give permission only to admins to send group message.Shamim HasanKeymasterI am working on a new version.
Date not confirmed yet. May be after 2 weeks.Shamim HasanKeymasterCurrently read by’s order is same as participants added order.
But your suggestion is good. We can show read by’s order same as they read. Next version i will modify this.January 24, 2019 at 2:52 am in reply to: Urgent – Disable design feature in code or via backend ( Group messages killed ) #21014Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_current_user_can', function( $can, $cap, $id ){ if( 'send_reply' !== $cap || $can ) { return $can; } if( ! is_user_logged_in() || fep_is_user_blocked() ) { return $can; } if( ! $id || fep_get_message_status( $id ) !== 'publish' ) { return $can; } if ( in_array( get_current_user_id(), fep_get_participants( $id ) ) ) { $can = true; } return $can; }, 10, 3);
Shamim HasanKeymasterHi Kelly,
If you still have the problem please create a new topic as this topic is resolved and your question may lost without solving.By this time you can recheck if you followed https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/email-piping/ step by step correctly.
-
AuthorPosts