lia.spoerl
Forum Replies Created
-
AuthorPosts
-
lia.spoerlParticipant
For now I enabled the below.
I wonder, Is there a better solution to this though?
add_filter( ‘fep_form_submit_button’, function( $button, $where ){
if( ‘reply’ == $where ){
// $fep_message_id = fep_get_the_id();
// $website = site_url( ‘/messages/’, ‘https’ ) . ‘?fepaction=viewmessage&fep_id=’ . fep_get_parent_id($fep_message_id);
$button = ‘<button type=”submit” onclick=”setTimeout(location.reload.bind(location), 1500);” class=”fep-button” name=”fep_action” value=”‘. esc_attr( $where ) .'”>Reply</button>’;
}
return $button;
}, 10, 2 );Thanks
lia.spoerlParticipantI also get redirect to this url which is where the above message shows: /wp-json/front-end-pm/v1/view-message/267
lia.spoerlParticipantI just checked and then limit does count the messages in archive.
Is it possible to prevent this as I’d like an option for my users to keep any important conversations for future reference, without having to worry about any limits.Thanks
lia.spoerlParticipantHi,
Yes, I’m aware of that one.
It’s just that it’s not really fit for the purpose I’m looking for. It would be handy to have another folder for organisation purposes.On another note, does the email limits take into account the emails in the Archive folder?
Thanks
lia.spoerlParticipantHi,
I really just need one more folder. That’s all.
It would help with organising of emails.
Would you consider that for future versions?
Thanks
lia.spoerlParticipantI did try disabling those 2 plugins, however it didn’t solve the issue.
September 21, 2021 at 6:25 pm in reply to: Possible to check if current user and post author have exchanged messages? #43686lia.spoerlParticipantOk. Would this create a lot of wp admin ajax requests?
lia.spoerlParticipantI figured it out myself. Thanks
lia.spoerlParticipantHi,
I just noticed that when the last user to reply is not in the employer role, the friend request button disappears.
I guess I need to check both participants instead and filter the one with the employer role and then get that users id.
Which hook would I need to use?
Thanks
lia.spoerlParticipantI have gotten this code to work:
add_action( ‘‘fep_display_after_reply_message’, function(){
$authordata = get_userdata( fep_get_message_field( ‘mgs_author’ ) );
if( in_array( ’employer’, $authordata->roles ) ){
echo do_shortcode(‘[uwp_add_friend user_id=”‘. $authordata->ID . ‘”]’);
}
});But, now I’m also getting a php error log:
Notice: Undefined variable: parent_id in /www/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()’d code on line 3
Notice: Trying to get property ‘user_id’ of non-object in /www/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()’d code on line 3Is there a way to prevent this error?
Thanks
lia.spoerlParticipantI will look into it. Thanks
lia.spoerlParticipantThat fixed it. Thanks
lia.spoerlParticipantThank, it has solved the issue.
lia.spoerlParticipantActually, that didn’t fix the issue…sorry
lia.spoerlParticipantI was able to fix the error code by using is_object() to check on the variable
-
AuthorPosts