sprocker
Forum Replies Created
-
just tried bit got “Failed to send your message. Please try later or contact the administrator by another method.” from the contact form so I sent an email direct to the email at the bottom of your page – I trust you get that one?
Deb x
may be a little more, I think I will be able to do it from what you have said, but it will be a lot of trial and error……how much would you charge to sort some code to add to my functions.php or a plugin for me if I gave you the correct DB details?
Thanks
would really appreciate some further guidance on how to implement my code and how to use the form fields….
Thanks
Debthanks for this – just got round to having a look….
Can you confirm he best way to use this….
do I add this to my functions.php
add_action( 'upicrm_after_new_lead', 'upicrm_hook' );
connect to other db
INSERT INTO TableName (field1, field2, field3, field4, field4, field6, field7) VALUES (‘$field1’, ‘$field2’, ‘$field3’, ‘$field4’, ‘$field5’, ‘$field6’, ‘$field7’ )”);if so what variables do I use for the text input fields?
Thanks
Forum: Fixing WordPress
In reply to: Hook for user-edit.phpI do not want it to be sent automatically….
My client adds the user details at differing times by different departments – only when they have entered all the info do they need something on the “update User” screen to generate an email to the new user.
Forum: Fixing WordPress
In reply to: Hook for user-edit.phpSorry, I don’t thinkg I have explained very well…..I need to use this code to post a form to the “Welcome Email” plugin to generate the Welcome email directly from the Edit User page.
I have added it in manually but each WordPress update over writes it so I would like to know what hook to use to add it from the functions.php file so I don’t have to keep reading it after each update.
<form action=”https://domainname.com/wp-admin/users.php?page=re-send-welcome-email/re-send-welcome-email.php” method=”POST”>
<h3>» Send welcome email for this user:
<input type=”submit” class=”button-primary” value=”Send e-mail” /></h3>
<input type=”hidden” name=’user-name’ id=’user-name’ value=”<?php echo esc_attr($profileuser->user_login); ?>”>
<input type=”hidden” name=’user’ id=’user’ value=”<?php echo esc_attr($profileuser->user_login); ?>”>
<input type=”hidden” name=’first-name’ id=’first-name’ value=”<?php echo esc_attr($profileuser->first_name) ?>”>
<input type=”hidden” name=’last-name’ id=’last-name’ value=”<?php echo esc_attr($profileuser->last_name) ?>”>
</form>
<hr>Forum: Fixing WordPress
In reply to: Hook for user-edit.phplogin username, first name and last name should do it…..
Forum: Fixing WordPress
In reply to: Hook for user-edit.phpIt regenerates a Welcome email for that client you are editing….I can’t use a link as it needs to be “post” ed to generate the email
Forum: Fixing WordPress
In reply to: Hook for user-edit.phpyes – that is the problem, the code I want to insert is another form on the edit page to generate an email….this is why I need to find some way of getting a hook to put my form before the user edit form on user-edit.php page….
Hope that make sense….
fab – thanks…..
Any news on the new verison?
Thanks, Deb
Forum: Fixing WordPress
In reply to: Hook for user-edit.phptried all of those and still can not get my form to appear after the title on the page but before the edit user form.
Any suggestions?
Thanks
Forum: Fixing WordPress
In reply to: Hook for user-edit.phpI have now tried loads but not getting the code placed where I need it….
Does any one know what hook would put my code just before the form for Personal Options?
Thanks
awesome – thank you!
No, sorry I don’t think so…..
I think I need to be able to do one of these two options:
1. add an insert sql statement to the other db using the fields form the contact form ie
connect to other db
INSERT INTO TableName (field1, field2, field3, field4, field4, field6, field7) VALUES (‘$field1’, ‘$field2’, ‘$field3’, ‘$field4’, ‘$field5’, ‘$field6’, ‘$field7’ )”);or
2. Post a string that will add the content to the db (I have this set up for another lead gen client) ie
$textsring = ‘URL?field1=’ . $field1 . ‘&field2=’ . $field2 . ‘&field3=’….etc’;
$ch = curl_init($textsring);
curl_exec ($ch);
curl_close ($ch);Hope that helps?