sprocker
Forum Replies Created
-
Thanks, but when I put my galleryxxx.php file in that location the website is no longer showing the gallery – it states [Not a valid template].
All I am trying to achieve is showing the title of the image along with the thumbnail – is there an easier way to do this other than editing the gallery.php file?
Thanks
So ashamed…..syntax error – been studying code since I was 13 🙁 there is just no excuse!!!
You have had 5* off me many years ago!
Cheers
I think there was a problem with the links html…..I have reconstructed it and it works fine now!
Sorry to have bothered you….
Many thanks for your prompt response and GREAT plugin!!!
It seems to have something to do with the “breadcrumbs” I have created at the top of the page – when these are removed it works fine!
Are you able to advise what is causing this?
Thanks
Sorry – now disabled
Thank you
http referrer is just storing https://www.google.co.uk/ so is not showing what page the form was submitted on.
I really don’t want to create and then have to manage 30 forms+ to ensure there is one form per page – so no, I don’t feel using a rule is the solution.
I have had to disable the email from your plugin and just use the ones from Contact Form 7 as they are able to give me the page the form was submitted on using [_post_title] in the message body.
I urge you to look at including [_post_title] in your variables….knowing what page inspired the client to contact you us a very important part of optimising your website.
Thanks
Thank you for your suggestions – but the HTTP Referrer is just showing just https://www.google.co.uk/ – again no parameters.
Contact Form 7 is able to record the Page Title by using [_post_title]
Is there no way to include this in the email that is generated by your plugin?
Can you explain what you mean by “use the UTM mechanism for additional tagging”
As I am sure you are aware, it is important to establish what pages inspire the client to contact the company so we really need to record the page the client was on when they completed the form.
Any help appreciated.
Thanks
Seems to have started recording the parameters again now….thanks anyway
wflog was the root of my problem, I could not delete so I renamed and then the plugin activated without issue.
Many thanks for your help,
DebI have the same issue – did you find a fix?
to put it another way…..
if I want to find the value of the first name field I used $_POST[‘FirstName’] and it worked fine.
What would I need to use to find the value of the UTM Source ?
Thanks
function upicrm_hook($lead_id) {
$UpiCRMLeads = new UpiCRMLeads();
$UpiCRMUIBuilder = new UpiCRMUIBuilder();
$UpiCRMFieldsMapping = new UpiCRMFieldsMapping();
$getLeads = $UpiCRMLeads->get_by_id($lead_id); //get lead data
$listOption = $UpiCRMUIBuilder->get_list_option(); //get UI options & existing fields
$getNamesMap = $UpiCRMFieldsMapping->get_all_by($getLeads->source_id, $getLeads->source_type); //get lead fields mapping$sql_field = “”;
$sql_value = “”;
foreach ($listOption as $key => $list_option) {
foreach ($list_option as $key2 => $field_name) {
$value = $UpiCRMUIBuilder->lead_routing($getLeads, $key, $key2, $getNamesMap, true);
$sql_field.= “{$field_name},”;
$sql_value.= “‘{$value}’,”;
}
}
$sql_field = rtrim($sql_field, “,”);
$sql_value = rtrim($sql_value, “,”);foreach ($listOption as $key => $list_option) {
foreach ($list_option as $key2 => $field_name) {
$value = $UpiCRMUIBuilder->lead_routing($getLeads, $key, $key2, $getNamesMap, true);
$arr[$field_name] = $value;
}
}// $query = “INSERT INTO TableName ({$sql_field}) VALUES ({$sql_value})”;
// mysql_query($query);$FNAME = $_POST[‘FirstName’];
$LNAME = $_POST[‘Surname’];
$EMAIL = $_POST[‘your-email’];
$TELNO = $_POST[‘Phone’];
$notes = $_POST[‘your-message’];
$Source = “24”;$EnqDate = date(‘Y-m-d H:i:s’);
$ContactDate = $_POST[‘date-377’];
$BTTC = $ContactDate . ” at ” . $_POST[‘ContactTime’];$con=mysqli_connect(“localhost”,”dbname”,”password”,”dbdetails”);
// Check connection
if (mysqli_connect_errno())
{
echo “Failed to connect to MySQL: ” . mysqli_connect_error();
}mysqli_query($con,”INSERT INTO
dbname.Customers(ID,EnqDate,EnqTime,FNAME,MiddleNames,LNAME,ReportWriter,Adviser,DOB,TELNO,MobileTel,OtherTel,ADD1,ADD2,ADD3,ADD4,ADD5,PCODE,EMAIL) VALUES (NULL, ‘$EnqDate’, NULL, ‘$FNAME’, ‘$MiddleNames’, ‘$LNAME’, NULL, NULL, ‘$DOB’, ‘$TELNO’, ‘$MobileTel’, NULL, ‘$ADD1’, ‘$ADD2’, ‘$ADD3’, ‘$ADD4’, ‘$ADD5’, ‘$PCODE’, ‘$EMAIL’);”);mysqli_close($con);
}
add_action( ‘upicrm_after_new_lead’, ‘upicrm_hook’ );
no, did not work, sorry….but I used
$_POST[‘FirstName’] for my values and that did….how is the UTM posted?
Thanks
That is great…..but I already have a table with set columns already set up and this can not be changed.
I have the code for $query = “INSERT INTO TableName ({$sql_field})
I need to be able to get the each field from the submitted form as a separate variable so I can use it in the correct place in my insert code.
Foe example, my form has FirstName, Surname, your-email, Phone, your-message, and I want to track the source – I need to set
$FNAME =
$LNAME =
$EMAIL =
$TELNO =
$notes =
$utmSource =I can then use this in my insert string and I am done!
Sorry – been away and only just got chance to get back to this….
OK, so I add this code to my functions.php
function upicrm_hook($lead_id) {
$UpiCRMLeads = new UpiCRMLeads();
$UpiCRMUIBuilder = new UpiCRMUIBuilder();
$UpiCRMFieldsMapping = new UpiCRMFieldsMapping();
$getLeads = $UpiCRMLeads->get_by_id($lead_id); //get lead data
$listOption = $UpiCRMUIBuilder->get_list_option(); //get UI options & existing fields
$getNamesMap = $UpiCRMFieldsMapping->get_all_by($getLeads->source_id, $getLeads->source_type); //get lead fields mappingforeach ($listOption as $key => $list_option) {
foreach ($list_option as $key2 => $field_name) {
$value = $UpiCRMUIBuilder->lead_routing($getLeads, $key, $key2, $getNamesMap, true);
echo “{$field_name}: {$value}
“;
}}
}How do I then get my values from the posted form into my insert script:
connect to other db
INSERT INTO TableName (field1, field2, field3, field4, field4, field6, field7) VALUES (‘$field1’, ‘$field2’, ‘$field3’, ‘$field4’, ‘$field5’, ‘$field6’, ‘$field7’ )”);Thanks
Deb