hoffcamp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Form Manager] Making an Email form with more than one reply:to'sThe best way would be to hook into the ‘fm_form_submission’ action. This is something I added recently. You can use the template here so that updates to form manager don’t overwrite your changes. Just modify the code and upload it as a new plugin.
So here are the details:
1) Give the list item a nickname, ’email-list’. For now I’ll assume the list has the items ‘Sales’, ‘General’, ‘Refunds’.
2) Inside the fm_custom_submission_action function, put the following:global $fm_display; $formInfo = $args['form']; $postData = $args['data']; $subject = fm_getSubmissionDataShortcoded($formInfo['email_subject'], $formInfo, $postData); $message = $fm_display->displayDataSummary('email', $formInfo, $postData); $headers = 'From: '.fm_getSubmissionDataShortcoded($formInfo['email_from'], $formInfo, $postData)."\r\n". 'Reply-To: '.fm_getSubmissionDataShortcoded($formInfo['email_from'], $formInfo, $postData)."\r\n". 'MIME-Version: 1.0'."\r\n". 'Content-type: text/html'."\r\n";This code will load the e-mail settings for the current form, basically just the ‘Subject’ and ‘From’ fields as you have them set in the form editor. You could replace these with whatever you want, but make sure to keep the MIME-Version and Content-type parts in the $headers variable or else you won’t be able to have HTML in the message body.
3) Add the following to the end of the same function:
$addressArray = array( 'Sales' => "user@user.com", 'General' => "user2@user.com", 'Refunds' => "somebody@something.com", ); fm_sendEmail($addressArray[$postData['email-list']], $subject, $message, $headers);This is the key part, where you specify an e-mail address to send to based on the value of the ’email-list’ item. Make sure to put a comma after each item in the $addressArray variable like in the example.
Good luck!
Forum: Plugins
In reply to: [Form Manager] Can No Longer Use Form ManagerAlso, are you having trouble with the main Form Manager settings / advanced settings, or the settings page for an individual form?
Okay I’ll try to track down the problem.
There should be a technical description of the error. Could you copy and paste it?
Forum: Plugins
In reply to: [Form Manager] Can No Longer Use Form ManagerYou shouldn’t have to add any capabilities, just make sure all of the ones that begin with ‘form_manager’ are checked. Also make sure you are using the latest version of Members, should be 0.2. If all of the capabilities are checked, then try disabling other plugins to see if it is a conflict with another plugin, and I’ll try to come up with a fix.
Forum: Plugins
In reply to: [Form Manager] Can No Longer Use Form ManagerOkay, there are some capabilities that I added in the newest version that I’m thinking aren’t set in your roles. I apologize for that if that is the case, I will put a big red warning message to the admin if I add new capabilities in the future.
Forum: Plugins
In reply to: [Form Manager] Can No Longer Use Form ManagerAre you using the Members plugin?
Forum: Fixing WordPress
In reply to: [Form Manager] Customizing a Form LayoutI don’t think there is an easy way to do that.
You could make a custom display template, and within the loop add a test for the fields you are talking about. Then you could display those fields however you want and use the normal display method as a default.
Forum: Plugins
In reply to: [Form Manager] email Notifications short codesFor the emails, give the field for the user’s email address a nickname, something like ‘user-email’. This is done under the ‘form extra’ tab when editing a form. Then, on the main form editor page, put ‘[item user-email]’ for the From field under E-Mail Notifications. If you want to use the fancier e-mail format, like ‘Joe Schmoe <jschmoe@email.com>’, then you would also give the ‘name’ field a nickname, like ‘user-name’, and then put ‘[item user-name] <[item user-email]>’ in the From field.
As for the widget question, there isn’t a form widget. The best you could do would be to modify your theme to hardcode a form in the sidebar. Put
fm_doFormBySlug('whatever');where you would want the form to appear, where ‘whatever’ is your form’s slug.Forum: Fixing WordPress
In reply to: [Form Manager] rearranging elements — not seeing itActually, I would give you the exact same advice. Deactivate the other plugins you are running just to make sure it is not a conflict. Then let me know and I’ll have a better idea of what is causing the problem.
Forum: Plugins
In reply to: [Form Manager] overwrite fm-summary-multi.php?No, that file is overwritten each time you update the plugin anyway. The best way is to upload a new file to your server.
Unfortunately this is something I’m still working on. I’ll post on this thread once I have it figured out. Did you try changing the file write method?
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] Submit ButtonSorry I’ve been out of town for the past couple days.
The easiest way would be to add some CSS to your theme:
#fm_form_submit{ float:left; margin-left:50px; }This will put the submit button 50px from the left of the form.
If your theme doesn’t have an easy way to add custom CSS, you could make a ‘note’ element in your form, put it at the very top, remove the label, and check the ‘html’ button. Then put the following in the note:
<style> #fm_form_submit{ float:left; margin-left:50px; } </style>It looks like your theme is missing wp_footer().
Hey mcode, I just checked the link you posted and it requires a password.