Færdiggjort

Simple Wordpress Change

I have a user form which is submitted from our site. Here is the code that makes it up:

<?php

if($_POST)

{

$yourname = $_POST['inq_name'];

$youremail = $_POST['inq_email'];

$inq_phone = $_POST['inq_phone'];

$frnd_comments = $_POST['inq_msg'];

$pid = $_POST['pid'];

$post_title = 'ID).'">'.$post->post_title.'';

$to_name = get_post_meta($post->ID,'name',true);

$to_email = get_post_meta($post->ID,'email',true);

if($to_email=='')

{

$to_email = get_option('admin_email');

}

///////Inquiry EMAIL START//////

global $upload_folder_path;

$clientdestinationfile = get_bloginfo( 'template_directory', 'false' )."/library/notification/[url removed, login to view]";

$message1 = implode('',file($clientdestinationfile));

//$message1 = file_get_contents($clientdestinationfile);

$filecontent_arr1 = explode('[SUBJECT-STR]',$message1);

$filecontent_arr2 = explode('[SUBJECT-END]',$filecontent_arr1[1]);

$subject = $filecontent_arr2[0]. __(' for ').'"'.$post->post_title.'"';

$client_message = $filecontent_arr2[1];

$yourname_link = __('From : ').$yourname.__('Phone : ').$inq_phone.'Send from - '.get_option('blogname').'.';

/////////////customer email//////////////

$search_array = array('[#$to_name#]','[#$post_title#]','[#$frnd_subject#]','[#$frnd_comments#]','[#$your_name#]');

$replace_array = array($to_name,$post_title,$frnd_subject,nl2br($frnd_comments),$yourname_link);

$client_message = str_replace($search_array,$replace_array,$client_message);

/*echo "From : $youremail Name : $yourname ";

echo "To : $to_email Name : $to_name ";

echo "Subject $subject ";

echo "$client_message";

exit;*/

if($to_email)

{

sendEmail($youremail,$yourname,$to_email,$to_name,$subject,$client_message,$extra='');

}

//////Inquiry EMAIL END////////

$url = get_permalink($post->ID);

if(strstr($url,'?'))

{

$url = $url."&send_inquiry=success";

}else

{

$url = $url."?send_inquiry=success";

}

wp_redirect($url);

}

?>

I need you to add this to it:

So that it still works and this javascript is processed. That's it - $30!

Looks like the Google Conversion snippet didn't show up, anyhow I"ll send it to the winning bidder. Basically all you're doing is adding a Google AdWords Conversion snippet to this.

Evner: PHP

Se mere: url change, str, change url, wordpress change url site, change notification php, wordpress change url, javascript array post, php post array, simple makes, change start, simple library, php wordpress javascript, _post exit, wordpress url change, php form post array, change form post, wordpress notification, php form array post, wordpress global post, simple notification

Om arbejdsgiveren:
( 81 bedømmelser ) Lethbridge, Canada

Projekt ID: #4506061

Tildelt til:

webley

ready to start..

$35 USD in 3 dage
(7 bedømmelser)
2.8

5 freelancere byder i gennemsnit $40 på dette job

shaz123

consider it is done

$34 USD in 3 dage
(13 bedømmelser)
4.8
immediateseo

I can edit your code or just write a new form whichever will serve better if it is not very complex I will charge you 50.00 please see PM

$55 USD in 2 dage
(0 bedømmelser)
2.0
deepakc147

Hello. Interesting proposition. I'm ready to work.

$44 USD på 1 dag
(3 bedømmelser)
0.0
wd4you

Your project seems to be a simple one which I can do quickly. By the way, the JS is not showing in your project post. Regards Philip

$30 USD in 2 dage
(0 bedømmelser)
0.0