• Hello,

    I am trying to use front end pm for a second hand shop.
    Where people can sell and buy things.
    I created a contact button outside of the front end pm menu on every item page.

    Short code used:
    [fep_shortcode_message_to to=”{current-post-author}” subject=”{current-post-title}” text=”Contact”]

    Only problem is that this keeps creating new conversations.
    I need a button that only creates 1 chat and then goes back to that chat if pressed again.

    Does any one have any idea how I can make it work like this?

    Kind regards
    Frank Vermeulen

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Frank Vermeulen

    (@redubbledd)

    Could some one please tell me if this is possible or not?

    Plugin Author Shamim Hasan

    (@shamim51)

    By default this is not designed that way. If you want to achieve that, you will need to use custom logic before redirect to check if they already have any messages before. If yes, redirect to that message page.

    Thread Starter Frank Vermeulen

    (@redubbledd)

    Thanks for telling me.

    Could you tell me where a good place is to write my custom logic to check if there is already a chat?

    also I personally don’t see the point of making a new conversation with the same person every time or at least not with the same subject.

    Would it not be better to put this logic in for everyone?

    Plugin Author Shamim Hasan

    (@shamim51)

    You can use fep_filter_message_before_send hook to check if they have any existing messages between them and take action accordingly.

    Thread Starter Frank Vermeulen

    (@redubbledd)

    How can I use:
    ‘fep_filter_message_before_send’ To check for any existing messages?
    nothing I have tried seems to works with this.

    Could you give me an example on how to use this?
    Thanks!

    Thread Starter Frank Vermeulen

    (@redubbledd)

    Do I need to put ‘fep_filter_message_before_send’ into the short code? or somewhere else?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Button to create 1 conversations and should ‘t keep creating new conversations’ is closed to new replies.