lia.spoerl

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • in reply to: Submit button on message page rest_forbidden #43921
    lia.spoerl
    Participant

    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

    in reply to: Submit button on message page rest_forbidden #43904
    lia.spoerl
    Participant

    I also get redirect to this url which is where the above message shows: /wp-json/front-end-pm/v1/view-message/267

    in reply to: Create a new email folder #43836
    lia.spoerl
    Participant

    I 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

    in reply to: Create a new email folder #43834
    lia.spoerl
    Participant

    Hi,

    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

    in reply to: Create a new email folder #43802
    lia.spoerl
    Participant

    Hi,

    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

    in reply to: Email sending interval issue #43759
    lia.spoerl
    Participant

    I did try disabling those 2 plugins, however it didn’t solve the issue.

    lia.spoerl
    Participant

    Ok. Would this create a lot of wp admin ajax requests?

    in reply to: Trying to get id from $authordata #43531
    lia.spoerl
    Participant

    I figured it out myself. Thanks

    in reply to: Trying to get id from $authordata #43528
    lia.spoerl
    Participant

    Hi,

    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

    in reply to: Trying to get id from $authordata #43526
    lia.spoerl
    Participant

    I 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 3

    Is there a way to prevent this error?

    Thanks

    in reply to: Styling the messages box #43515
    lia.spoerl
    Participant

    I will look into it. Thanks

    in reply to: Error codes when snippet is activated #43510
    lia.spoerl
    Participant

    That fixed it. Thanks

    in reply to: Make all links in message content unclickable #43508
    lia.spoerl
    Participant

    Thank, it has solved the issue.

    in reply to: Error codes when snippet is activated #43494
    lia.spoerl
    Participant

    Actually, that didn’t fix the issue…sorry

    in reply to: Error codes when snippet is activated #43492
    lia.spoerl
    Participant

    I was able to fix the error code by using is_object() to check on the variable

Viewing 15 posts - 1 through 15 (of 16 total)