Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Please let me know the role slug of those users (“business users” role slug) who have business listing.
Shamim HasanKeymasterYou want to display only if message user is given user role or who is seeing that user is given user role?
Which role you want to display?Shamim HasanKeymasterPlease add following code in your theme’s (child theme’s if any) functions.php
add_action( 'fep_display_after_message', function(){ echo '<a href="' . esc_url( home_url( 'business-directory/' ) ). get_the_author_meta('user_nicename') . '">' . get_the_author_meta('display_name') . '</a>'; });
It will add a link to user’s business directory in bottom of every message.
Shamim HasanKeymasterthree arguments are sent from fep_action_message_after_send action.
You can use fep_get_message_with_replies( $id ) to get message with replies of given id.
Please see functions.php of this plugin to see code.Shamim HasanKeymasterThank you again.
For clarification, If you do not update your license, the plugin will still works fine BUT you will not receive update. When you will go to update along with other plugin updates through WordPress you will see error for this plugin.
Shamim HasanKeymasterPlease add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_filter_message_before_send', 'fep_cus_send_url', 999 ); function fep_cus_send_url( $message ) { if( empty( $message['message_content'] ) || $message['post_parent'] ) return $message; $message['message_content'] .= '<div>'; $message['message_content'] .= esc_url( $_SERVER['HTTP_REFERER'] ); $message['message_content'] .= '</div>'; return $message; }
Let me know.
Shamim HasanKeymasterYou can use
fep_filter_message_before_send
filter to add$_SERVER['HTTP_REFERER']
to the message.Shamim HasanKeymasterNo. May be you had removed from wrong place.
I also changed some code which is not related to this. In your code you are showing only your vendors in directory, but your code was wrong, i just corrected that.Shamim HasanKeymasterPlease check now.
Shamim HasanKeymasterThen your first code should should work. Please change your code to what you used before ( with to=”{current-author}” )
Can you please create an account for me so that i can see?Shamim HasanKeymastertry removing to=”{current-author}” part and let me know if that works.
December 17, 2017 at 9:21 pm in reply to: Turning bulk action and filter drop down to link/button #8727Shamim HasanKeymasterEvery actions and filters there are lots of coding. There are hook everywhere. So if you know coding you can easily create custom actions and filters.
Shamim HasanKeymasterYes, this is correct behavior, when someone click “login” in that red box s/he will be redirected to login page and when login, s/he will be redirected to message page.
You can even add
add_filter( 'fep_using_auth_redirect', '__return_true' );
in your theme’s (child theme’s if any) functions.php so that you will be redirected to login page automatically if not logged in. So no need to click login.You can also set who can access message system in Dashboard > Front End PM PRO > Settings > Security
Shamim HasanKeymasterCan you please give me your message page url and create a test user for me?
Shamim HasanKeymasterIf they are not logged in they should be given a link to login, after successful login they should see message.
Please check following
1. set “Front End PM Page” in Dashboard > Front End PM PRO > Settings > General
2. login page url is correctLet me know.
-
AuthorPosts