Support » Plugin: Flamingo » Can't find where to edit code to change Inbound Messages fields.

  • Resolved djtiny95

    (@djtiny95)


    Hi all, I am using Flamingo for a somewhat different sort of function than a contact form and it’s working perfectly except that I need to change the variables that give the Message in Flamingo a Subject and From.

    I have read previous threads here where people have explained how to do this but I think the code might have changed in a recent update?

    in “contact-form-7/modules/flamingo.php” I see,

    `$email = wpcf7_flamingo_get_value( ’email’, $contactform );
    $name = wpcf7_flamingo_get_value( ‘name’, $contactform );
    $subject = wpcf7_flamingo_get_value( ‘subject’, $contactform );`

    Which is similar to what others were talking about but not exactly the same and I managed to break it while trying to edit it.

    Basically all I want to do is be able to change what variable the plugin pulls from, for example, I do not use “[your-subject]” in my Subject line, I use some default text as well as a date variable. I also don’t use an e-Mail field and I have to use a different variable for [your-name] so that it displays correctly within the message on Flamingo.

    Thank you!

    https://wordpress.org/plugins/flamingo/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    You don’t need to edit any code. Just put these into the Additional Settings field:

    flamingo_email: “aaaaaaaaaaaaaaaa”
    flamingo_name: “bbbbbbbbbbbbbbbb”
    flamingo_subject: “ccccccccccccccc”

    You can also use mail-tags in the contents.

    Awesome, thanks!

    Thanks this works great!

    I was wondering if there was a variable I can use to have “flamingo_subject” always be the title of the form? Kind of a DRY thing. So currently I’m using this:

    flamingo_email: "[your-email]"
    flamingo_name: "[first-name] [last-name]"
    flamingo_subject: "[VARIABLE HERE THAT SHOWS THE FORM TITLE]"

    Takayuki, can you put these instructions in the FAQ?

    Thanks for this, very helpful information. Would love to see it documented.

    What about the parameters for the first and last name. On the Flamingo “Edit Contact” screen the full name field populates correctly but the first and last name fields stay blank.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can't find where to edit code to change Inbound Messages fields.’ is closed to new replies.