Home › Forums › Plugin Support › Integrating with Constant Contact
Tagged: integrations
- This topic has 4 replies, 2 voices, and was last updated 11 years ago by
cfv.
-
AuthorPosts
-
June 24, 2014 at 3:30 pm #5766June 24, 2014 at 7:53 pm #5769
Support
MemberHello,
We are happy to know, you love the plugin. May be you can add a checkbox(from third party plugin) to UMP front-end registration. To try that, please install “User Meta Advanced” add-on (http://user-meta.com/add-ons/user-meta-advanced/ ). Go to User Meta >> Advanced
Checkd every checkbox from group “User Registration” under “Integrate Filter/Action Hooks”.Thanks.
June 25, 2014 at 3:31 pm #5774cfv
MemberThank you! I activated U-M Advanced and followed your instructions.
However, I can’t come up with a combination of settings for a check box that seem to work. As far as I can tell, this is the function that matters within Constant Contact:
function constant_contact_make_checkbox($setting = '', $fieldid = '', $fieldname='', $title = '', $value = 'yes', $checked = false, $disabled = false) { echo constant_contact_get_checkbox($setting, $fieldid, $fieldname, $title, $value, $checked,$disabled); } function constant_contact_get_checkbox($setting = '', $fieldid = '', $fieldname='', $title = '', $value = 'yes', $checked = false, $disabled = false) { $checkbox = ' <input type="checkbox" id="'.$fieldid.'" name="'.$fieldname.'" value="'.$value.'"'; if($checked || !empty($setting)) { $checkbox .= ' checked="checked"'; } if($disabled) { $checkbox .= ' disabled="disabled"';} $checkbox .= ' class="checkbox" /> <label for="'.$fieldid.'">'.__($title,'constant-contact-api').'</label>'; return $checkbox; }
I really appreciate any help on this…
June 25, 2014 at 8:57 pm #5776Support
MemberWhat you can integrate, it depends on plugin “Constant Contact” too. UM Advanced have most of the filter/action hooks which are being used by WordPress default system. So if your plugin use these hook it is easy to add them by just toggling the checkbox. Otherwise you will need to use UMP hook and call custom function inside the hook. http://user-meta.com/documentation/advanced/ , here you can find UMP hooks. “user_meta_after_form” might be helpful for you. Thanks.
June 26, 2014 at 5:54 pm #5790cfv
MemberResolved. I enabled the advanced plugin and hooks as described above. Then it was a matter of getting the key value and name settings right.
It doesn’t unsubscribe users when they uncheck th ebox, but I think that is the constant contact plugin’s issue.
-
AuthorPosts
- You must be logged in to reply to this topic.