Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Suppose you are writing a blog post and now you want your users to send a message to you about that blog post. You can add this link in that blog post. Now when a user will click that link they will redirect to message page with your name in the “To” field so that they will not need to search your name. They can just write subject and message and send to you.
I believe you are using version 5.1+.There are 2 shortcodes to easily achieve this. I suggest you use one of those instead of using link directly. You can get link of those shortcodes in little lower of that docs page https://www.shamimsplugins.com/docs/front-end-pm/customization/user-name-pre-populate-new-message/.
Shamim HasanKeymasterIn that case user will have to remember all users username. Also they will have to write that code exactly which will be wrong in most of the cases.
In addition to that this will also introduce bot issue, spam messages can be sent easily.
This is a security issue as well, as from email can be spoofed.Shamim HasanKeymasterIt can be moved back to inbox, but it seems that option is not populated when load messages. You can go to archive then refresh that page (click address bar and press enter) then check that message and select restore from bulk action.
I will add that option always in next version.
July 20, 2020 at 8:06 pm in reply to: will my settings be saved autometicly when I upgrade to pro? #39440Shamim HasanKeymasterIt will be transferred automatically.
Shamim HasanKeymaster@oskar1 i do not see any code of this plugin in your contact form. Did you followed https://www.shamimsplugins.com/docs/advanced-nocaptcha-recaptcha/getting-started-advanced-nocaptcha-recaptcha/implement-in-contact-form-7/ ?
If still not working please create a separate topic so that i can support you better.
July 17, 2020 at 11:23 am in reply to: Please solve Captcha correctly – Checkout page (Woocomerce) #39352Shamim HasanKeymasterWhat issue you are facing?
Can you share your woocommerce checkout url?July 14, 2020 at 10:06 am in reply to: How to link the participants name and their avatar to their profile? #39285Shamim HasanKeymasterThank you. That code was for only “Message Box” page. To show in single message page you will need to override
view-message-content.phptemplate (instruction in https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/) then add your profile link with the names.If you need my assistance to modify the template for your needs you can contact through https://www.shamimsplugins.com/hire/
July 14, 2020 at 9:09 am in reply to: How to link the participants name and their avatar to their profile? #39274Shamim HasanKeymasterPlease remove 43-38 code, I have already given you latest code.
It should link all names (marked in this screenshot only https://www.shamimsplugins.com/support/topic/how-to-link-the-participants-name-and-their-avatar-to-their-profile/#post-39233) to their profile.
Let me know if those names are linked. If not i will need your website access to set it for you.July 13, 2020 at 11:01 pm in reply to: How to link the participants name and their avatar to their profile? #39266Shamim HasanKeymasterDid you removed previous code then added latest code? You should remove previous code.
Let me know.Shamim HasanKeymasterThank you.
When UserA will send an email, his email address will be in “From” email. In this method he will message to himself. We will need to find a way to determine UserB to whom that message will be sent.Shamim HasanKeymasterGlad it is working.
Sorry, we cannot send a new message from a new email. We track email by a key in the subject by default. As new message it will not have key. So to which user this email will go? If you have any suggestion you can let me know. I will try to implement that.July 12, 2020 at 10:06 pm in reply to: How to link the participants name and their avatar to their profile? #39241Shamim HasanKeymasteradd following code in your theme’s (child theme’s if you are using) functions.php
add_action( 'fep_message_table_column_content_author', function(){ if( 'threaded' === fep_get_message_view() ){ ?><span class="fep-message-author"><a href="https://yoursite.com/<?php echo fep_get_userdata( fep_get_message_field( 'mgs_last_reply_by' ), 'user_nicename', 'id' );?>/"><?php echo fep_user_name( fep_get_message_field( 'mgs_last_reply_by' ) ); ?></a></span><span class="fep-message-date"><?php echo fep_get_the_date( 'mgs_last_reply_time' ); ?></span><?php } else { ?><span class="fep-message-author"><a href="https://yoursite.com/<?php echo fep_get_userdata( fep_get_message_field( 'mgs_author' ), 'user_nicename', 'id' );?>/"><?php echo fep_user_name( fep_get_message_field( 'mgs_author' ) ); ?></a></span><span class="fep-message-date"><?php echo fep_get_the_date( 'created' ); ?></span><?php } });July 12, 2020 at 7:49 pm in reply to: How to link the participants name and their avatar to their profile? #39233Shamim HasanKeymasterSo you want to show link to profile only in this attachment marked names, right?
Attachments:You must be logged in to view attached files.July 12, 2020 at 12:02 pm in reply to: How to link the participants name and their avatar to their profile? #39228Shamim HasanKeymasteradd following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_filter_user_name', function( $name, $id ){ if ( $name && fep_get_the_id() ) { $name = '<a href="https://yoursite.com/'. fep_get_userdata( $id, 'user_nicename', 'id' ) . '/">' . $name . '</a>'; } return $name; }, 10, 2);July 12, 2020 at 11:42 am in reply to: How to link the participants name and their avatar to their profile? #39224Shamim HasanKeymaster -
AuthorPosts