• Resolved Law

    (@laucoste)


    Hi,

    This plugin is great.

    I’d like to custom the link inside sent email when a new message or new announcement is available for the user.

    I mean in ‘class-fep-emails.php’ file, how to custom fep_query_url in order to send, for example, to : “/my-messages-folder”, instead of default “messagebox”.

    With that example, how to change the line in the code ?

    Best regards,
    Law

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    May be i did not understand your question. What will happen when that link is clicked by the user? Which page they will be redirected? What content will be there?

    Or you want to change email content and add your custom link there?

    Thread Starter Law

    (@laucoste)

    Hi,

    May be i did not understand your question. What will happen when that link is clicked by the user? Which page they will be redirected? What content will be there?

    => That’s not about that

    Or you want to change email content and add your custom link there?

    => Yes, exactly. #Solution1 I just need to put my custom link instead of the one starting with fep_query_url

    #Solution 2 : Or, if you prefer, replace the URL suffix in the email /?fepaction=messagebox by simply /, that will allow redirect to the inbox (no distinction needed with “announcements” as I don’t use them).

    regards

    Plugin Author Shamim Hasan

    (@shamim51)

    You can do that very easily in PRO version. You can edit email content directly from settings page of this plugin and add/edit any link you want.

    Please see this feature in https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/email-beautify/

    Thread Starter Law

    (@laucoste)

    Hi,

    Oh, ok thank you. But I don’t need such a big tool. It’s just about changing the style of an URL.

    regards,
    Law

    Plugin Author Shamim Hasan

    (@shamim51)

    Then you can hard code your url in class-fep-emails.php. So instead of fep_query_url( 'messagebox' ) use https://www.example.com/message (your website message page url)

    Thread Starter Law

    (@laucoste)

    HI,

    Thanks for your reply, can you just confirm that the line :

    $message .= fep_query_url( 'messagebox' ) . "\r\n";

    must be replaced by :

    $message .= https://www.example.com/message . "\r\n";

    and that it won’t cause any issue ?

    Regards,
    Law

    Plugin Author Shamim Hasan

    (@shamim51)

    It is correct. User will get your provided link in their email.

    Thread Starter Law

    (@laucoste)

    Hi,

    Sorry, this synthax breaks my site…

    regards
    Law

    Plugin Author Shamim Hasan

    (@shamim51)

    Use $message .= "https://www.example.com/message" . "\r\n";

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom link into email : To Inbox or Announcement’ is closed to new replies.