WordPress.org

Ready to get started?Download WordPress

Forums

Flamingo
[resolved] Can't find where to edit code to change Inbound Messages fields. (7 posts)

  1. djtiny95
    Member
    Posted 1 year ago #

    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/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. djtiny95
    Member
    Posted 1 year ago #

    Awesome, thanks!

  4. BigWilliam
    Member
    Posted 9 months ago #

    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]"
  5. Eric3D
    Member
    Posted 7 months ago #

    Takayuki, can you put these instructions in the FAQ?

  6. nightbook
    Member
    Posted 6 months ago #

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

  7. ebarcena
    Member
    Posted 3 months ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.